superyupkent Posted March 30, 2004 Report Share Posted March 30, 2004 Hi everyone, When I install my MDK 10 CE I found out that evcen with apache 2 and php 4 running it isnt possible to have php pages served. I found out that the php module in apache is missing. Can anyone tell me how this can be solved? thanks Quote Link to comment Share on other sites More sharing options...
Dr. Ephemeron Posted March 30, 2004 Report Share Posted March 30, 2004 (edited) Install apache2-mod_php-2.0.48_4.3.4-1.mdk with rpmdrake Edited March 30, 2004 by Dr. Ephemeron Quote Link to comment Share on other sites More sharing options...
superyupkent Posted March 30, 2004 Author Report Share Posted March 30, 2004 Thanks Dr. But appearantly that has already been installed. I think the problem lies in the dact that apache 2 doesnt recognise this php stuff. Even though in http2.conf there is an Include 70_mod_php.conf It simply wants to save .php files rather than serving them. Quote Link to comment Share on other sites More sharing options...
Guest anon Posted March 30, 2004 Report Share Posted March 30, 2004 Check your /etc/php.ini and make sure this part is set to ON, Enable the PHP scripting language engine under Apache. engine = On Quote Link to comment Share on other sites More sharing options...
tyme Posted March 30, 2004 Report Share Posted March 30, 2004 (edited) 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 March 30, 2004 by tyme Quote Link to comment Share on other sites More sharing options...
superyupkent Posted March 30, 2004 Author Report Share Posted March 30, 2004 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 Quote Link to comment Share on other sites More sharing options...
tyme Posted March 31, 2004 Report Share Posted March 31, 2004 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. Quote Link to comment Share on other sites More sharing options...
illogic-al Posted March 31, 2004 Report Share Posted March 31, 2004 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? Quote Link to comment Share on other sites More sharing options...
Dr. Ephemeron Posted March 31, 2004 Report Share Posted March 31, 2004 (edited) What is the path to the PHP scripts yer trying to run Alex? Edited March 31, 2004 by Dr. Ephemeron Quote Link to comment Share on other sites More sharing options...
illogic-al Posted March 31, 2004 Report Share Posted March 31, 2004 oh and has apache sucessfully started? you should make sure you can see http://localhost Quote Link to comment Share on other sites More sharing options...
superyupkent Posted April 1, 2004 Author Report Share Posted April 1, 2004 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 Quote Link to comment Share on other sites More sharing options...
illogic-al Posted April 1, 2004 Report Share Posted April 1, 2004 paste your /etc/fstab file in here? Quote Link to comment Share on other sites More sharing options...
superyupkent Posted April 2, 2004 Author Report Share Posted April 2, 2004 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 Quote Link to comment Share on other sites More sharing options...
illogic-al Posted April 2, 2004 Report Share Posted April 2, 2004 how about trying /dev/hda10 /www ext3 exec 1 2 and seeing if that works. If not change back to original Quote Link to comment Share on other sites More sharing options...
superyupkent Posted April 2, 2004 Author Report Share Posted April 2, 2004 changed default to exec, no change.. still the same (see attachment) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.