LinuxQuestions.org
Review your favorite Linux distribution.
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 05-18-2006, 04:04 PM   #1
crillegs
LQ Newbie
 
Registered: Nov 2005
Posts: 8

Rep: Reputation: 0
Apache Server setup problem...


Hi LinuxQuestions.org


I've decided to set up an Apache Server and install PHP 5 into that, running Fedora Core 4. My problem is that (and Im a real noob) I can't find a proper tutorial that actually makes PHP 5 works with the APache server. My Apache server is running, and I can see my HTML code, but not my PHP.

Can you find some nice tutorial or give me a simple description on how to make Apache "aware" of that PHP 5 is installed

Best Regards

Christian Sorensen
 
Old 05-18-2006, 04:20 PM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
How did you install these packages. If you compiled from source, take a look at the docs at php.net for how to configure apache to work with php5.
 
Old 05-18-2006, 09:52 PM   #3
markw8500
Member
 
Registered: Jul 2005
Posts: 104

Rep: Reputation: 15
Did you double check your code... Because when I started to use php, I found that the reason why I couldnt see any of my php files was because of stupid mistakes in my code...
Try this code and save it as phptest.php

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php
echo "Hello World";
?>
</body>
</html>

If this code works, then everything should be running ok with your server...
 
Old 05-19-2006, 07:23 AM   #4
crillegs
LQ Newbie
 
Registered: Nov 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Double checking

I thought of the same thing at first, but I've triple checked it, and it works on one of my friends PHP servers, so I can't be my code that is wrong
 
Old 05-22-2006, 11:00 AM   #5
markw8500
Member
 
Registered: Jul 2005
Posts: 104

Rep: Reputation: 15
Did you install it yourself or was php already installed...

You can also check out:
http://www.redhat.com/docs/manuals/d...rog/c7614.html
 
Old 05-23-2006, 01:57 PM   #6
stephenb
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Rep: Reputation: 0
are you installing php5?
 
  


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 virtual server setup GeneralChaos Linux - Software 6 09-27-2005 10:12 AM
setup of apache server to host own domain captain skywave Suse/Novell 0 02-22-2005 01:40 PM
apache web server setup eastsuse Linux - Newbie 8 11-22-2004 02:10 PM
Setup the apache server ust Linux - Software 5 11-13-2003 05:32 AM
Setup linux-apache server to access documents on NT server josephswagner Linux - Software 11 04-11-2003 08:35 AM


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

Main Menu
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