Click to See Complete Forum and Search --> : Problems installing PHP5


Kanataguy179
12-13-2004, 10:21 PM
I am currently running a default installation of Mandrake 10.0. MY goal is to use the features of PHP5 within my latest project. I was able to successfuly get PHP5 to compile. However once I modified the /etc/httpd/conf.d/70_mod_php.conf my php scripts are not being parsed as desired. I believe my issues relate to the apache file that I modified.

The old file cat'd as:

[root@localhost conf.d]# cat old_70_mod_php
<IfDefine HAVE_PHP4>
<IfModule !mod_php4.c>
LoadModule php4_module extramodules/mod_php4.so
</IfModule>
</IfDefine>

<IfModule mod_php4.c>
PHPINIDir /etc
</IfModule>

<IfModule mod_mime.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
</IfModule>


The new file is:

[root@localhost conf.d]# cat 70_mod_php.conf
<IfDefine HAVE_PHP5>
<IfModule !mod_php5.c>
LoadModule php5_module libexec/libphp5.so
AddType application/x-httpd-php .php .php5 .phtml
</IfModule>
</IfDefine>

<IfModule mod_php5.c>
PHPINIDir /usr/local/lib/
</IfModule>

<IfModule mod_mime.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
</IfModule>


Any help to get me straightened out would be greatly appreciated.

Thanks in advance.

Shaun