• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Newbie Question: Using PHP in Linux

QReyes

New Member
I just installed RedHat Linux. After creating a simple page with the phpinfo(); in it, how do I view it? Do I also go to http://localhost just like windows? Do I have to put the file somewhere else?

Totally newbie question. Never used Linux before.
 
If the httpd (the server daemon) is already started then you'll be able to access your files via localhost, similar to windows.

As to where to put your files, a little search on the net says that the default dir is /var/www/html. But I think you can make a directory in your users home directory named "public_html" and you can access it via "http://localhost/~username", though don't hold me to that.

Hope this helps!
 
What i prefer:
1. make directory /home/www
2. edit httpd.conf and set documentRoot to /home/www
3.change owner to www
chown -R www:www /home/www
 
And don't forget to upload your default website to /home/www while user website would be placed (by default) in ~user/public_html (each user can create this directory if it doesn't exist).
 
My suggestion is to use FC2. Theres a large community behind it and it has updated kernel and all. Jus a suggestion..
 
Back
Top