Jump to content

Apache 2 and PHP 4 on Mandrake 9.1


bromar
 Share

Recommended Posts

What changes (if any) are needed to /etc/httpd/conf/httpd2.conf for PHP4? Is there any other files that need to be changed?

 

The /etc/httpd/conf/httpd.conf file contains references to PHP but not the httpd2.conf file and when port 80 is hit by a web browser a message is displayed stating that it doesn't understand a application/x-httpd-php file.

 

packages installed are:

apache2-2.0.47-1.9.91mdk

apache2-common-2.0.47-1.9.91mdk

apache2-mod_php-2.0.44_4.3.1-2mdk

apache2-modules-2.0.47-1.9.91mdk

 

Thanks

Mark

Link to comment
Share on other sites

you have to modify the file:

/etc/httpd/conf/httpd.conf (probably is somewhere else, but this address seems right to me ;)

and remove tha # from this lines:

#Addtype application/x-httpd-php .php

#Addtype application/x-httpd-php-source .phps

and it will look like this:

Addtype application/x-httpd-php .php

Addtype application/x-httpd-php-source .phps

 

then save and exit

after editing that file you have to restart yor apache daemon

/etc/httpd/bin/apachectl stop

/etc/httpd/bin/apachectl start

apachectl may be at another location, be careful on that..

 

hope this helps you ;)

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