Introduction:
There are only two RPM's necessary to get Apache and PHP installed on YDL 2.2, both of which are available on the YDL 2.2 install CD, or via FTP. Install these packages and do a couple of simple edits to the Apache configuration file and you can have PHP and Apache running on your system in about 10 short minutes.
Installation Install the Apache and PHP RPM's (packages) by doing the following:
1) Mount the YDL 2.2 CD, if necessary, by changing to root or using sudo:
% mount /mnt/cdrom/2) Install the the Apache web server package:
% rpm -ivh /mnt/cdrom/YellowDog/ppc/apache-1.3.22-3b.ppc.rpm
or
% rpm -ivh ftp://ftp.terrasoftsolutions.com/products/ydl/pub/yellowdog/yellowdog-2.2/ppc/YellowDog/ppc/apache-1.3.22-3b.ppc.rpm3) Now install the PHP package for PHP4 support:
% rpm -ivh /mnt/cdrom/YellowDog/ppc/php-4.1.2-1a.ppc.rpm
or
% rpm -ivh ftp://ftp.terrasoftsolutions.com/products/ydl/pub/yellowdog/yellowdog-2.2/ppc/YellowDog/ppc/php-4.1.2-1a.ppc.rpm
Configuration
1) Open the Apache configuration file as root:
% vi /etc/httpd/conf/httpd.conf2) Find these 4 lines in the file httpd.conf:
<IfModule mod_php4.c>3) Comment out the two lines with the phrase "IfModule" by using a '#' like this:AddType application/xhttpd-php .php .php4 .php3 .phtml</IfModule>
AddType application/xhttpd-php-source .phps
# <IfModule mod_php4.c>4) Save and Close the httpd.conf file.AddType application/xhttpd-php .php .php4 .php3 .phtml# </IfModule>
AddType application/xhttpd-php-source .phps
Activation
1) Start the apache server by executing the following as root:
% /usr/sbin/apachectl start2) Place your HTML and PHP documents in the /var/www/html directory and enjoy.
More Information
http://www.php.net/
http://www.apache.org/
This HOWTO was written by Brent Ely - sfbrent@users.sourceforge.net




