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

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

cd /usr/local
tar xzvf php-4.2.3.tar.gz
cd php-4.2.3
./configure --with-zlib --with-mysql --with-apxs --with-xml
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/

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

Printed from Linux Compatible (