Version 1 (modified by 17 years ago) ( diff ) | ,
---|
How do I setup an suExec directory for a member?
Only MFPL admins have permission to take this step. If you would like suExec enabled for your site, please follow our suExec FAQ.
Run the following script, replacing $USER with the username provided by the member.
# Ensure suexec is enabled (reload apache if necessary) user=$USER a2enmod suexec base=/var/www/members-cgi-bin if [ ! -d "$base" ]; then mkdir "$base"; fi sitepath=$(getent passwd | grep ^bigbangparty | cut -d: -f6 | cut -d/ -f1,2,3,4,5,6) site=$(echo "$sitepath" | cut -d/ -f6) if [ ! -d "$base/$site" ]; then mkdir "$base/$site"; fi chown "$user" "$base/$site" fi if [ ! -h "$sitepath/cgi-bin/suexec" ]; then ln -s "$base/$site" "$sitepath/cgi-bin/suexec" fi
Note:
See TracWiki
for help on using the wiki.