Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP5 and Apache2 will not work on AMD64[PARTIAL SOLUTION]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Simon Dawson
n00b
n00b


Joined: 18 Sep 2005
Posts: 14
Location: Lingfield, England

PostPosted: Fri Apr 21, 2006 6:35 pm    Post subject: PHP5 and Apache2 will not work on AMD64[PARTIAL SOLUTION] Reply with quote

:? I have installed both Apache2 and PHP5. Apache works - I can parse an HTML file with no problems, but when I try a .php or a .php5 file all it does is offer to download it. As far as I can see the symlinks are all ok and the modules exist and /etc/apache2/modules.d/70_mod_php5.conf exists, httpd.conf has the ServerRoot "/usr/lib64/apache2" DocumentRoot "/var/www/html" set correctly and Include /etc/apache2/modules.d/*.conf' is set. apache2 has APACHE2_OPTS="-D PHP5". libphp5.so exists in /usr/lib64/apache2/modules

Why do the php files not get intercepted and processed by the modules? Does anybody have any ideas? I have tried unmerging and re-emerging a number of times but never getting anywhere nearer a solution. Am I missing something really obvious and being a bit of a dunce?

70_mod_php5.conf seems to be Ok and sets the correct application type. Is there any way I can check Apache to see if it is reading and importing the specified modules. I have looked in the log files and that doesn't offer anything. Help please!!!


Last edited by Simon Dawson on Sat Apr 22, 2006 10:32 am; edited 1 time in total
Back to top
View user's profile Send private message
Simon Dawson
n00b
n00b


Joined: 18 Sep 2005
Posts: 14
Location: Lingfield, England

PostPosted: Sat Apr 22, 2006 10:30 am    Post subject: PHP5 and Apache2 will not......on AMD64 [PARTIALLY SOLVED] Reply with quote

I have partially solved this.

I dug a bit deeper in the forums and discovered many people seem to have the same problem. I have tracked it down to the fact that APACHE2_OPTS is not being read and therefore the PHP5 variable is not being defined. As I know, on this server at least, that I always want PHP5 this is not a problem as I have just commented out the <IfDefine PHP5> and the </IfDefine> at the top and bottom of the file....now it gets read and the php module is loaded.

As to why the APACHE2_OPTS is not being set....I have no idea.

Hope this helps someone else. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum