Jump to content

Mdk 10.1 + apache2 + php5 - php won't execute


isaac_golding
 Share

Recommended Posts

I went and looked for the same general reference from step #11 and found the following: This was found in /etc/httpd/conf.d/70_mod_php5.conf and was referenced by httpd2.conf

 

 

 

<IfDefine HAVE_PHP5>
 <IfModule !mod_php5.c>
   LoadModule php5_module    extramodules/mod_php5.so
 </IfModule>
</IfDefine>

<IfModule mod_php5.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 .php5
   AddType application/x-httpd-php .phtml
   AddType application/x-httpd-php-source .phps
</IfModule>

 

 

So just for fun i added :

LoadModule php5_module    extramodules/mod_php5.so

directly into httpd2.conf and received the following error:

 

service httpd restart

Starting httpd2: Syntax error on line 214 of /etc/httpd/conf/httpd2.conf:

Only first PHPINIDir directive honored per configuration tree - subsequent ones ignored

                                                                [FAILED]

 

 

so php5 is loading. I'm just getting the file offered to me as a downloadable file instead of it being executed. :wall:

 

Further info is as follows. The web server loads. The generic mandrake welcome page loads when viewing http://localhost so images and html pages work fine. Only php seems to be dead in the water.

 

My entire apache and php5 package list is below.

 

 

PHP5 RPMS

apache2-mod_php5 2.0.50_5.0.2-1mdk  System/Servers  The PHP5 HTML-embedded scripting language for use with apache2.

libphp5_common5 5.0.2-1mdk  Development/Other Shared library for PHP5

php5-ctype 5.0.2-1mdk    System/Servers  Ctype extension module for PHP

php5-ftp 5.0.2-1mdk    System/Servers  FTP extension module for PHP

php5-gettext 5.0.2-1mdk  System/Servers  Gettext extension module for PHP

php5-ini 5.0.2-1mdk    Development/Other INI files for PHP

php5-pcre 5.0.2-1mdk    System/Servers  PCRE extension module for PHP

php5-posix 5.0.2-1mdk    System/Servers  POSIX extension module for PHP

php5-session 5.0.2-1mdk  System/Servers  Session extension module for PHP

php5-sysvsem 5.0.2-1mdk  System/Servers  SysV sem extension module for PHP

php5-sysvshm 5.0.2-1mdk  System/Servers  SysV shm extension module for PHP

php5-yp 5.0.2-1mdk  System/Servers  NIS (yp) extension module for PHP

 

APACHE RPMS

apache-conf 2.0.50-4mdk  System/Servers  Configuration files for Apache

apache2 2.0.50-7.2.101mdk  System/Servers  The most widely used Web server on the Internet.

apache2-common 2.0.50-7.2.101mdk  System/Servers  Files common for apache2 and apache2-mod_perl installations

apache2-mod_php5 2.0.50_5.0.2-1mdk  System/Servers  The PHP5 HTML-embedded scripting language for use with apache2.

apache2-modules 2.0.50-7.2.101mdk  System/Servers  Standard modules for apache2

 

 

 

If more information is needed please let me know. I'm not an expert but im getting there. :-)

Edited by isaac_golding
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...