Sandbox Server/Apache config

From Wikiversity
Jump to navigation Jump to search
## DocRoot for standard websites (only access for admins and roots of the server => chmod 771)
DocumentRoot /www 

## The tools of the users should be under http://<server url>/~<username> 

# Use dir /home/<username>/public_html for files of users which should be on web
UserDir public_html

# Enable cgi in /home/<username>/public_html/cgi-bin
<Directory /home/*/public_html/cgi-bin>
Options ExecCGI
SetHandler cgi-script

configure options[edit]

--enable-so --with-mpm-worker


## PHP config

# Config for PHP5
Action php5-script /usr/bin/php5
AddHandler php5-script .php .php5

# Config for PHP6
Action php6-script /usr/bin/php6
AddHandler php6-script .php6


LoadModule actions_module modules/
LoadModule alias_module modules/
LoadModule cgi_module modules/
LoadModule mime_module modules/
LoadModule rewrite_module modules/
LoadModule userdir_module modules/

--Jan Luca 15:29, 2 January 2010 (UTC)