Difference between revisions of "Useful Commands"

From SME Server
Jump to navigationJump to search
Line 2: Line 2:
  
 
=== Apache Related Commands ===
 
=== Apache Related Commands ===
 +
Expand <b>httpd.conf</b>:
 +
 +
expand-template /etc/httpd/conf/httpd.conf
 +
 +
Restart <b>httpd:</b>
 +
 +
/etc/init.d/httpd-e-smith restart
 +
 
To leave Apache reads the distributed configuration file <b><u>.htaccess</u></b> per ibay:
 
To leave Apache reads the distributed configuration file <b><u>.htaccess</u></b> per ibay:
  

Revision as of 16:24, 13 March 2007

Useful Commands

Apache Related Commands

Expand httpd.conf:

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

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