Problems with PHP on Apache
I've been wanting to learn PHP for some time now, but the problem is that I wanted to do it on my server, rather than pay someone else.. So, what I've managed to do so far is buy a bunch of books about Apache2 and PHP.
Apache is installed and running (correctly, I'm pretty sure). I've tried to change the config file, with no luck. I added this: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps (where it said AddType) And LoadModule php5_module modules/libphp5.so (under the LoadModule part). It still doesn't work! When I try to open a test PHP file, Firefox asks me which application I would like to use to open it. :cry: By the way I'm running Fedora Core 4, if it helps any. What should I do? |
Try
Code:
apachectl configtest |
Alright, I tried it, and I got:
[Sat Nov 19 12:41:06] [warn] module php5_module is already loaded, skipping Syntax OK What does it mean? |
Nevermind! I got it. The problem was that my file was on Desktop, while it should have been in /var/www/html
Thanks. |
All times are GMT -5. The time now is 11:12 PM. |