LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 02-07-2007, 09:29 PM   #1
fmcgenesis
LQ Newbie
 
Registered: Feb 2007
Posts: 12

Rep: Reputation: 0
Web Server question


Hi guys,

I'm trying to setup my own web server using fedora core 5.

I need the server to handle DNS & multiple domains and subdomains.

It also needs to be able to run PHP and mySQL.

What would you guys suggest to be my best bet?
 
Old 02-07-2007, 10:10 PM   #2
wahming
Member
 
Registered: Jan 2007
Posts: 133

Rep: Reputation: 15
Sorry, but I'm not quite sure what information you're looking for. You might want to be a lil more specific
 
Old 02-07-2007, 11:23 PM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
Welcome to LQ!

Apache should be able to do all this.

You really need to give us more info so we can give you more specific answers

--Ian
 
Old 02-07-2007, 11:35 PM   #4
fmcgenesis
LQ Newbie
 
Registered: Feb 2007
Posts: 12

Original Poster
Rep: Reputation: 0
Sorry about not being specific, I'll try though.

Right now I have a shared hosting with Cpanel. I want to be able to host my sites on my own server.

For example, I have two domains, right now with the hosting company;
domain1.com points to /home/user/public_html/domain1
domain2.com points to /home/user/public_html/domain2

I can install linux, setup apache and i'll probably be able to easily setup mysql.

I'm not clear on setting up DNS server on the machine so I change DNS in my enom account to my IP address.

Also email handling would be something I don't know how to do.

Hope that helps making it a bit more clear.
 
Old 02-09-2007, 07:27 PM   #5
fmcgenesis
LQ Newbie
 
Registered: Feb 2007
Posts: 12

Original Poster
Rep: Reputation: 0
Ok I'll post it here from my other thread;

I have a webserver running on fedora core 5 and when I try to load a php file, like index.php, browser tries to save the file instead of displaying it - html files display fine. Any other external sites work fine. What would cause this and how would I fix it?
 
Old 02-10-2007, 11:00 AM   #6
penguiniator
Member
 
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
You have to make sure php is installed. Then you have to make sure Apache is loading the php modules. It sounds like that is your problem. Otherwise, Apache would pass the php files to the php interpreter for processing and you would get back an html file instead of a prompt to save the file.
 
Old 02-10-2007, 07:16 PM   #7
fmcgenesis
LQ Newbie
 
Registered: Feb 2007
Posts: 12

Original Poster
Rep: Reputation: 0
I think I did install php, how do I know if I have installed it and if it is installed how do I tell apache to use it?
 
Old 02-10-2007, 10:33 PM   #8
penguiniator
Member
 
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
make sure there is a line in apache's httpd.conf similar to:

LoadModule php4_module modules/libphp4.so

If not, add one appropriate to your version of php and restart apache as root with: apache2ctl graceful
 
Old 02-10-2007, 10:39 PM   #9
penguiniator
Member
 
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
Once you restart apache create a php file with the line: phpinfo();
Then place it in your web server's document root directory and try loading it into your web browser:
http://127.0.0.1/phpinfo.php.

If you get a nice page listing all of the settings for php, it worked.
 
Old 02-11-2007, 10:19 PM   #10
fmcgenesis
LQ Newbie
 
Registered: Feb 2007
Posts: 12

Original Poster
Rep: Reputation: 0
that would be my problem. I don't have the line in my httpd.conf and I can't find any file containing php in the modules folder.

How would I install php from the Fedora Core cd?
 
Old 02-12-2007, 12:21 AM   #11
penguiniator
Member
 
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
You might want to have a look at http://www.fedorafaq.org/fc5/. It can help with how to install additional software on Fedora Core 5.
 
Old 02-12-2007, 12:54 AM   #12
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You could save yourself some time and simply install with yum (from command line type yum install php).

Even if you install from disk it's probably due an update, so I'd go straight to yum
 
  


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
Web Server Question Hawnted Linux - Newbie 11 08-04-2006 02:15 PM
Yet Another N00b Question, want to create my own DNS/Web Server Rage2132 Linux - Networking 6 04-25-2005 08:04 AM
Apache Web Server question Jezter Linux - Software 5 01-02-2005 07:30 PM
Linux Newbie Question! (Web Server Related) ste_brough Linux - Distributions 1 02-03-2004 09:24 AM
Web server question dm_dead_man Linux - General 8 05-30-2002 08:28 PM


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