LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Web Server question (https://www.linuxquestions.org/questions/linux-newbie-8/web-server-question-526588/)

fmcgenesis 02-07-2007 09:29 PM

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?

wahming 02-07-2007 10:10 PM

Sorry, but I'm not quite sure what information you're looking for. You might want to be a lil more specific

IBall 02-07-2007 11:23 PM

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

fmcgenesis 02-07-2007 11:35 PM

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.

fmcgenesis 02-09-2007 07:27 PM

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?

penguiniator 02-10-2007 11:00 AM

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.

fmcgenesis 02-10-2007 07:16 PM

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?

penguiniator 02-10-2007 10:33 PM

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

penguiniator 02-10-2007 10:39 PM

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.

fmcgenesis 02-11-2007 10:19 PM

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?

penguiniator 02-12-2007 12:21 AM

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.

billymayday 02-12-2007 12:54 AM

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


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