LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-04-2005, 04:38 PM   #1
TFredrickson80
LQ Newbie
 
Registered: May 2005
Posts: 8

Rep: Reputation: 0
Linux Web Server....Newb


Hi. I've recently installed Fedora Core 3 on one of my secondary computers. It works so far and i can access my website from the outside world. But I have a Form set up on one page action is sendform.php method is post (sends to my yahoo address) anyway i keep getting the error that the PHP file couldnt be found. Is there a special folder these need to go into? And if there is and it happens to work is there anything else i need to set up as far as my server goes?
 
Old 05-04-2005, 04:41 PM   #2
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
double check your php/html for typos. remember its case sensitive. theres not special folder, php files can sit in the same directories as the rest of your web pages.
 
Old 05-04-2005, 05:32 PM   #3
TFredrickson80
LQ Newbie
 
Registered: May 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Ok double checked. It's now finding the page although its displayed blank when i have echo's in it. Could it be the version of Apache im running? or something else maybe I try not to over look anything if at all possable.
 
Old 05-04-2005, 05:40 PM   #4
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
to test and see if php is working correctly create a page called test.php, in it write:
Code:
<?php 

phpinfo(); 

?>
browse to that page in your web browser and if it opens successfully and displays the specs of your php configuration then your apache/php are configured correctly. in that case, youll have to go back and double check your code because thats where your problem is.

if the test.php cannot be displayed then you have an issue with your php installation.
 
Old 05-04-2005, 05:44 PM   #5
TFredrickson80
LQ Newbie
 
Registered: May 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Heh i thought about the phpinfo() and was like duh... so i ran it and it keeps wanting to open it with... open office writer.org after which it just shows me the code. I access the site from my XP machine and type in the URL for the test page and it comes up blank... When i installed Linux as a server i installed all the server software was i supose to configure something?
 
Old 05-04-2005, 05:48 PM   #6
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
the only configuration ive had to do after the default installation was enable register_globals

find your php.ini file (probably /etc/php.ini)
open it with your text editor and find the line register_globals = Off
set it to register_globals = On
save the file and restart the apache service

service httpd restart maybe? i dont know how it works in fedora, you could just find the script in /etc/init.d and restart it that way.

after you restart apache with register_globals on try the test.php page again from your xp machine through your web browser.
 
Old 05-04-2005, 06:05 PM   #7
TFredrickson80
LQ Newbie
 
Registered: May 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Still a blank page. Guess i could install a different Version of Apache and possably PHP on it... Would rather not do that though..
 
Old 05-04-2005, 06:12 PM   #8
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
ive never used fedora but on my redhat 9 and suse default web server installs php has always worked just fine. i have no clue why it wouldnt work for you but maybe you could just install a new php rpm and give it another try. that should be a pretty painless installation. Here's file for Fedora core 3: ftp://rpmfind.net/linux/fedora/core/...3.9-3.i386.rpm
or you could just reinstall the package off of your installation disks. (if you used installation cds)
 
Old 05-04-2005, 06:51 PM   #9
TFredrickson80
LQ Newbie
 
Registered: May 2005
Posts: 8

Original Poster
Rep: Reputation: 0
In the process of installing apache 2.0.54. I so hope i dont screw this up completely and have to reinstall linux
 
Old 05-04-2005, 07:16 PM   #10
TFredrickson80
LQ Newbie
 
Registered: May 2005
Posts: 8

Original Poster
Rep: Reputation: 0
As i feared! I have to reinstall... Ah well... Dumping the Fedora Core and going with Linux 8 Hope i have better luck
 
Old 05-04-2005, 07:34 PM   #11
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
that doesnt make sense. just installing the apache rpm should completely screw up your fedora installation... if youre referring to redhat 8 then the defualt web server installation should work. seeing as how ive used that one myself. however redhat 8 is mad old like whoa so make sure youre sitting behind a firewall and get whatever updates are available. good luck.
 
Old 05-04-2005, 08:02 PM   #12
TFredrickson80
LQ Newbie
 
Registered: May 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Im sure installing the RPM wouldnt have messed it up but i installed apache 2.0.54 off the apache site and followed the instructions in my PHP 5 book which didnt work out to well... so i had two httpd configuration files... i basicly had two of everything with limited drive space. My Instructor said he ran into the same problem with his Fedora core 3 Httpd not likeing PHP so i figured Linux 8 is tryed and true. May as well...

Firewall... My router has one built in. Any other suggestions you can make for that? Antivirus software i can get for it? How to install it...
 
Old 05-04-2005, 09:38 PM   #13
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,059

Rep: Reputation: 295Reputation: 295Reputation: 295
There's no such thing as Linux 8. If you mean Red Hat 8 it's so old that you really shouldn't be using it for a new sever install. Even Fedora legacy isn't supporting it any more, which will make getting necessary security updates tricky.

You should be able to make Apache and PHP work easily in fedora. Did you verify you have the PHP RPMs installed? Can you check your httpd.conf to make sure that the PHP module is actually being loaded? You might want to read over the install directions at www.php.net as they will give you some idea of what to look for.
 
  


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
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
Newb: Pointing my domain name to my linux server once here Linux - Networking 2 09-08-2003 04:57 PM
Installing Curl on Server. Linux Newb! Maxplayer14 Linux - Software 3 09-06-2003 10:47 AM
Setup a linux server, DNS, WEB, FTP, and Mail Server Help watermelon_lee Linux - Networking 1 08-26-2003 03:09 AM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 02:38 AM


All times are GMT -5. The time now is 04:55 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