LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 11-19-2005, 12:04 PM   #1
Super Tijano
LQ Newbie
 
Registered: Nov 2005
Distribution: Fedora Core 4
Posts: 3

Rep: Reputation: 0
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.


By the way I'm running Fedora Core 4, if it helps any.

What should I do?
 
Old 11-19-2005, 12:28 PM   #2
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
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.
 
Old 11-19-2005, 12:42 PM   #3
Super Tijano
LQ Newbie
 
Registered: Nov 2005
Distribution: Fedora Core 4
Posts: 3

Original Poster
Rep: Reputation: 0
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?
 
Old 11-19-2005, 02:21 PM   #4
Super Tijano
LQ Newbie
 
Registered: Nov 2005
Distribution: Fedora Core 4
Posts: 3

Original Poster
Rep: Reputation: 0
Nevermind! I got it. The problem was that my file was on Desktop, while it should have been in /var/www/html

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 1.3.33 + PHP 5.02 problems... NuTBoMbS Linux - Software 1 11-09-2004 02:36 AM
problems with apache-1.3.33 php 5 tekneke Linux - Software 0 09-20-2004 01:56 PM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 05:57 PM
Apache and Php problems myguest Linux - Software 6 06-11-2004 10:28 AM
php + apache problems nocturnal Linux - Software 1 07-02-2003 08:50 PM


All times are GMT -5. The time now is 09:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration