SeidenGroup / siteadd

siteadd makes adding PHP-based websites to Apache simple
GNU General Public License v3.0
2 stars 1 forks source link

Allow changing the web server root directory #13

Open NattyNarwhal opened 2 years ago

NattyNarwhal commented 2 years ago

User request, this is a very rare situation, but it does exist, and Apache can handle it.

Places to change:

% git grep /www/
README.md:-apache -d /www/rpmserver -f conf/httpd.conf
README.md:Site directory (logs, htdocs, conf): /www/rpmserver
README.md:transform-php-config -T ./my-template -d /www/mysite/phpconf
README.md:toggle-db -t both -d /www/sitename/phpconf/conf.d
addsite.sh:     echo "      PHP INIs will then be in /www/sitename/phpconf."
addsite.sh:if [ -n "$OLD_SITENAME" ] && [ ! -d "/www/$OLD_SITENAME/htdocs" ]; then
addsite.sh:APACHEDIR="/www/$SITE_NAME"
addsite.sh:-apache -d /www/$SITE_NAME -f conf/httpd.conf$AUTOSTART
addsite.sh:     cp -R "/www/$OLD_SITENAME/htdocs/"* "$APACHEDIR/htdocs/"
dspsite.sh:APACHEDIR="/www/$SITE_NAME"
rmsite.sh:APACHEDIR="/www/$SITE_NAME/"
# refs to /var/www/ in stock php ini
transform-php-config.sh:export APACHEDIR=/www/BOGUS