Here are two shell scripts

From SME Server
Jump to navigation Jump to search

Copy the lines below to to a file, change the [YourWebApp] to your application name and run them from the command line

  • [YourWebApp]-php5.sh
 mv ~/90[YourWebApp] /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/;
 expand-template /etc/httpd/conf/httpd.conf;
 svc -t /service/httpd-e-smith;
  • [YourWebApp]-php4.sh
 cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/;
 mv 90[YourWebApp] /root/;
 cd ~/;
 expand-template /etc/httpd/conf/httpd.conf;
 svc -t /service/httpd-e-smith;