How can I install PHP on my RaQ3 server?
Posted on: 01/01/2004 06:00 PM

Telnet/SSH to your server and type \\"su -\\" to login as root. Then run the follow commands:

cd /usr/local
wget http://at.php.net/distributions/php-4.2.3.tar.gz
tar xzvf php-4.2.3.tar.gz
cd php-4.2.3
./configure --with-zlib --with-mysql --with-apxs --with-xml
make
make install
cp php.ini-dist /usr/local/lib/php.ini
cd /etc/httpd/conf
pico srm.conf

Find #AddType application/x-httpd-php .phtml and add after that the follow line: AddType application/x-httpd-php .php .php3 .php4 .phtml
Find the DirectoryIndex line and add index.php

Save the file and open httpd.conf (pico http.conf)
Find the LoadModule php4_module line and change the path to /usr/lib/apache/libphp4.so

Save the file and restart apache with: /etc/rc.d/init.d/httpd restart


Printed from Linux Compatible (http://www.linuxcompatible.org/knowledgebase/entry/how_can_i_install_php_on_my_raq3_server.html)