Difference between revisions of "Useful Commands"
From SME Server
Jump to navigationJump to searchLine 31: | Line 31: | ||
*Execution Time: | *Execution Time: | ||
− | + | ||
+ | db configuration setprop php MaxExecutionTime ZZ | ||
+ | expand-template /etc/php.ini | ||
+ | /etc/init.d/httpd-e-smith restart | ||
+ | where <b><u>ZZ</u><b> is the time in seconds. | ||
Line 38: | Line 42: | ||
db configuration setprop php MemoryLimit XX | db configuration setprop php MemoryLimit XX | ||
expand-template /etc/php.ini | expand-template /etc/php.ini | ||
− | /etc/init.d/ | + | /etc/init.d/httpd-e-smith restart |
+ | where <b><u>XX</u><b> is the amount of memory in Mb. |
Revision as of 15:49, 13 March 2007
Useful Commands
Apache Related Commands
- Expand httpd.conf template:
expand-template /etc/httpd/conf/httpd.conf
- Restart httpd:
/etc/init.d/httpd-e-smith restart
- To leave Apache reads the distributed configuration file .htaccess per ibay:
db accounts setprop IBAYNAME AllowOverride All signal-event ibay-modify IBAYNAME
PHP Related Commands
- Expand php.ini template:
expand-template /etc/php.ini
- Configure PHP Basedir Restriction per ibay:
db accounts setprop IBAYNAME PHPBaseDir DIR1:DIR2:DIRn signal-event ibay-modify IBAYNAME
Example
db accounts setprop Primary PHPBaseDir /home/e-smith/files/ibays/Primary:/tmp signal-event ibay-modify Primary
- Execution Time:
db configuration setprop php MaxExecutionTime ZZ expand-template /etc/php.ini /etc/init.d/httpd-e-smith restart
where ZZ is the time in seconds.
- Memory Limit:
db configuration setprop php MemoryLimit XX expand-template /etc/php.ini /etc/init.d/httpd-e-smith restart
where XX is the amount of memory in Mb.