Difference between revisions of "Here are two shell scripts"
From SME Server
Jump to navigationJump to search (Created page with '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 ***********************************…') |
|||
Line 1: | Line 1: | ||
Copy the lines below to to a file, change the [YourWebApp] to your application name and run them from the command line | 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/; | mv ~/90[YourWebApp] /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/; | ||
expand-template /etc/httpd/conf/httpd.conf; | expand-template /etc/httpd/conf/httpd.conf; | ||
svc -t /service/httpd-e-smith; | svc -t /service/httpd-e-smith; | ||
− | + | *'''[YourWebApp]-php4.sh''' | |
− | |||
− | |||
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/; | cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/; | ||
mv 90[YourWebApp] /root/; | mv 90[YourWebApp] /root/; |
Latest revision as of 21:51, 7 May 2010
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;