Jump to content

Apache 2 doesnt interpret php


superyupkent
 Share

Recommended Posts

I have the following references to php in my httpd file (note i'm running apache2 and php4, but not in mandrake...syntax should be the same, file paths/names may vary) - these are in seperate areas, i'm bunching them together here for space purposes. it should be easy to find where they belong (just look for others like them)

LoadModule php4_module          lib/apache/libphp4.so

 

AddType application/x-httpd-php .php

 

in your case, i would check for the AddType line.

 

( and be sure to restart httpd service afterwards with: service httpd restart )

Edited by tyme
Link to comment
Share on other sites

Well after trying all your suggestions I have to say that nothing has helped me.. Apache2 and Mandrake 10 Community Edition perhaps bite eachother. The strange thing is that a friend of mine has the exact same problem with Mandrake 10, but he chose to install apache 1.3 on his box.

 

engine is switched on, all the essential elements are already in place, mandrake slits the httpd.conf in pieces so the php module is in a separate file. Of course I have checked if the include options were all ok, and also there nothing can be found.

 

Now someone told me that this version 10 is still a Release Candidate, is this true?

 

Alex

Link to comment
Share on other sites

No. if it was a release candidate it would have been labeled such. as this as been discussed in many different places, i'd like to avoid re-iterating the arguement here-but, according to mandrake, it is not a release candidate.

Link to comment
Share on other sites

No.  if it was a release candidate it would have been labeled such.  as this as been discussed in many different places, i'd like to avoid re-iterating the arguement here-but, according to mandrake, it is not a release candidate.

/me giggles. anyhoo! about php.

in the file /etc/httpd/conf.d/70_mod_php.conf

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

as you can see i've opted to have .php, .php4, .phtml and .phps interpreted as php pages

mayhaps something is amiss with your config here?

Link to comment
Share on other sites

Well, since I installed qmail with addons, I would like to make it run together with squirrelmail, the path to squirrelmail would be /www/www/html/webmail/index.php.

 

Furthermore, my apache2 is up and running, no problems there. Also my 70_php file looks exactly the same as illogic-a's.

 

As you can see from teh path posted above, I created a separate partition mounted to /www. Here I moved my /var/www and etc/httpd to. All references in all instances of httpd.conf have been adjusted to make sure everything points in that direction. I've also spent a considerable amount of time in making sure the include command were good and pointing to /conf.d

 

hope this helps

Link to comment
Share on other sites

Here's my fstab:

 

/dev/hda1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda8 /home ext3 defaults 1 2
/dev/hdc8 /home/alex/home ext3 defaults 1 2
/dev/hdc7 /home/alex/var ext3 defaults 1 2
/dev/hdc /mnt/cdrom auto umask=0022,user,iocharset=iso8859-15,codepage=850,noauto,ro,exec 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0022,iocharset=iso8859-15,sync,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hda9 /tmp ext3 defaults 1 2
/dev/hda6 /usr ext3 defaults 1 2
/dev/hda7 /var ext3 defaults 1 2
/dev/hda10 /www ext3 defaults 1 2
/dev/hda5 swap swap defaults 0 0

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...