Pages

How to set up ( Fedora php ruby on rails )

Showing posts with label public_html. Show all posts
Showing posts with label public_html. Show all posts

Saturday, August 8, 2009

How to set up ( Fedora php ruby on rails )

How to setup up fedora php ruby on rails


This blog is about post installation of fedora. This blog will help you about setting up audio and video on feodra operating system. Fedora is not shipped with audio video code that we use in our daily life. like avi , mpeg , wmv , wma and many others but now you can play every thing on feodra.

How to play audio video on fedora
Other thing that is here about development tools help like installing ruby on rails on fedora 10 and 11 . and other thing is after installation giving you choice of different servers. To setup fedora with apache will never be easy before now just few commands you can run rails application on apache server.

How to install ruby on rails on fedora

how to setup user directory or how to setup web server user home directory know as public_html.

How to setup apache server user home directory
Playing windows files on fedora now quite easy

How to play Windows media on fedora
one Thing else fedora have no SUDO configure by default and so its a great setting that you must have .
How to configure SUDO user on fedora

Monday, August 3, 2009

how to set up apache user home directory (Public_html)

Apache 2 user home directory


First create a directory with name public_html in your home directory (user directory


[ismail@localhost ~]$ mkdir public_html

Now open you apache server config file and edit to enable public_html for that uncomment UserDir public_html and comment UserDir disabled and also uncomments the lines below from where Directory start to ends


[ismail@localhost ~]$ sudo vi /etc/httpd/conf/httpd.conf



Now next step to save the configuration file and setting up permissions on public_html folder in your home directory. Our home directory need permission of 711 and public_html permission of 755 that we set by following commands.



[ismail@localhost ~]$ chmod 711 ~ismail/

where ismail is username you have your own you username you can check that by issuing command


[ismail@localhost ~]$ whoami

Alright now next step is to set permission of public_html


[ismail@localhost ~]$ chmod 755 public_html/

If SElinux is turned on you have to give extra permission on public_html folder


[ismail@localhost ~]$ sudo chcon -t httpd_sys_content_t public_html

last thing we have to do is comment welcome file in the following location


[ismail@localhost ~]$ vi /etc/httpd/conf.d/welcome.conf
Comment this whole file

Now we good to go just restart you web server


[ismail@localhost ~]$ sudo service httpd restart

Now open you web browser to test our public_html


[ismail@localhost ~]$ firefox localhost/~ismail &

or just simple type in your url


http://localhost/~ismail/



Last thing i wanna tell you is in whole this tutorial ismail was my username