5

Shell Script from PHP not able to cp or mv or anything

view full story
linux-howto

http://www.unix.com – Hi there, For some reason my maintenance mode shell script is not working. Both shell scripts are chmod +x'd, and owned by apache, running from php using exec(), maintenance.html and htaccessmaintenance are both owned by apache. My code is: Code: #/bin/bash cp maintenance.html /var/www/vhosts/$1/httpdocs/maintenance.html if [ -f /var/www/vhosts/$1/httpdocs/maintenance.html ] then wall 'copied' fi chown apache:psacln /var/www/vhosts/$1/httpdocs/maintenance.html if [ -f /var/www/vhosts/$1/httpdocs/.htaccess ] then chown apache:psacln /var/www/vhosts/$1/httpdocs/.htaccess mv /var/www/v (HowTos)