LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problems with PHP on Apache (https://www.linuxquestions.org/questions/linux-software-2/problems-with-php-on-apache-384638/)

Super Tijano 11-19-2005 11:04 AM

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?

fouldsy 11-19-2005 11:28 AM

Try
Code:

apachectl configtest
to let Apache run through it's config file and tell you the problem. Probably can't find the PHP extensions + libraries in the correct place.

Super Tijano 11-19-2005 11:42 AM

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?

Super Tijano 11-19-2005 01:21 PM

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.