Apache2 and php5 not working
Hey everybody,
I've recently bought a 1and1 server and re-imaged it with FC 4 and plesk 8. I've recently seen that php scripts don't execute.. they just popup to be downloaded (firefox) or show blank page (IE) I've tried to correct that by adding the correct mime types but with no joy. I just figured out that..if I can't really find the problem I'll just dezinstall all myslq, php and apache files and reinstall from scratch using tarballs.. but here's the problem... 1and1 does not provide the license key for plesk so If I allow for it to be dezinstalled (it requires the php rpm) I won't be able to use it. What puzzles me is that plesk uses .php3 extensions and still it can operate.. while on my vhost php doesn't work... Cheers |
hi,
for apache to handle php files, 3 lines are required: This one in the main server configuration block, as the LoadModule dorective only apply to server config context: Quote:
and these 2 line could be added to server configuration context or to a virtual host config context: Quote:
make sure those apache directives applied to your apache configuration, no need for reinstalling I think, also your pleask will become non consistent when you do so. |
Off of another forum may apply to you--
I figured it out. Apparently, the apache conf plesk generates turns php off globally, and then turns on for each virtual host in a "IfModule sapi_apache2.c" block. And sapi_apache2 isn't available in apache 2.2 any more - not in the build I got through yum anyway. So for now, I just commented out the IfModule lines, and php is back on! |
All times are GMT -5. The time now is 05:51 AM. |