les09 set userdir sm





Configuring User Directories in Apache











The interactions in this eCourse require Javascript to be enabled.



 

Configuring User Directories in Apache


previous|next





Sheila's PHP development team requires a nonroot user environment in which to develop the PHP code. To enable the developers to store PHP code in their owner user directories, Sheila edits the Apache Web Server configuration file /etc/httpd/conf/httpd.conf and sets the UserDir directive.
To enable user directories in the httpd.conf configuration file, Sheila must perform the following changes to the file:




Comment out the line UserDir "disable"



Uncomment the line UserDir public_html



After the changes have been made, Sheila must restart the Apache Web Server by using the following command:
$ apachectl restart
Each developer must create a public_html subdirectory in their $HOME directory. The PHP and HTML files for the application are stored in the public_html directory to be accessible from a browser.
As a browser user, the initial part of the URL entered would be:
http://host/~user/target.html
Here, user is replaced with a registered operating system username.
Watch Sheila configure user directories and restart Apache as the root user. As a nonroot user, Sheila creates the public_html subdirectory and a default index.html file, and uses a browser to access the index.html file.




Show Me and Try It




 









Wyszukiwarka

Podobne podstrony:
les09 install zc4o sm
les09 test apache sm
les09 conf err rep sm
les09 run php app sm
function mcal event set end
function pdf set horiz scaling
Fanuc 6M [SM] PM956 17 3
les09 page handling tm
function ldap set option
Patons Grace Daisies and Stripes Set with Blanket
5217 15492 1 SM Recenzje 03
function pdf set info subject
The Complete Pentium Instruction Set Table (32 Bit Addressing Mode Only)
function cpdf set viewer preferences
set wallpaper
set home location

więcej podobnych podstron