When u see "Another copy of firefox is still running" error,
open a console window and type
find ~ -iname .parentlock | grep mozilla
this will give you a file like this
/home/goutham/.mozilla/firefox/7h0madvl.default/.parentlock
now remove the file using
rm /home/goutham/.mozilla/firefox/7h0madvl.default/.parentlock
That's it!! U're done!!
Friday, November 7, 2008
Thursday, November 6, 2008
Run php as cgi in Apache
Download and intstall apache and php, I recommend using the tarball.
I installed apache in /usr/local/apache
./configure --prefix=/usr/local/apache;make;make install
and php reside in /usr/local/php
./configure --prefix=/usr/local/php/
Now you may edit the config file for apache
vim /usr/local/apache/conf/httpd.conf
you may place your .php file inside the document root directory
for me it is index.php
DocumentRoot "/usr/local/apache/htdocs/"
Inside the Directory section of "/usr/local/apache/htdocs/"
Options ExecCGI
AddType php-script .php #make sure there's no other type defined for .php
#Instead of AddType you may use AddHandler or SetHandler whichever is appropriate. See what is the differece, here.
Action php-script "/myphp-cgi/php-cgi"
Order allow,deny
Allow from all
ScriptAlias /myphp-cgi/ "/usr/local/php/bin/" #Map your php-binary location using ScriptAlias
You have to access the file appending /index.php unless you specify it with DirectoryIndex
I installed apache in /usr/local/apache
./configure --prefix=/usr/local/apache;make;make install
and php reside in /usr/local/php
./configure --prefix=/usr/local/php/
Now you may edit the config file for apache
vim /usr/local/apache/conf/httpd.conf
you may place your .php file inside the document root directory
for me it is index.php
DocumentRoot "/usr/local/apache/htdocs/"
Inside the Directory section of "/usr/local/apache/htdocs/"
AddType php-script .php #make sure there's no other type defined for .php
#Instead of AddType you may use AddHandler or SetHandler whichever is appropriate. See what is the differece, here.
Action php-script "/myphp-cgi/php-cgi"
Order allow,deny
Allow from all
ScriptAlias /myphp-cgi/ "/usr/local/php/bin/" #Map your php-binary location using ScriptAlias
You have to access the file appending /index.php unless you specify it with DirectoryIndex
Subscribe to:
Comments (Atom)