diff options
author | Bill Marquette <billm@pfsense.org> | 2005-09-13 03:12:27 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-09-13 03:12:27 +0000 |
commit | fd0709e6253b6f34e1e3bcb4b8ae6efdd4fc023f (patch) | |
tree | ddc61e14bb4057aefd1fc27e08b231a0e78a818b /usr/local/www/restart_httpd.php | |
parent | 3d0d1aa84e2bbecc028ec15c6f5bfff5bc8663c0 (diff) | |
download | pfsense-fd0709e6253b6f34e1e3bcb4b8ae6efdd4fc023f.zip pfsense-fd0709e6253b6f34e1e3bcb4b8ae6efdd4fc023f.tar.gz |
recursively chmod
mount r/w before chmod'ing
Diffstat (limited to 'usr/local/www/restart_httpd.php')
-rwxr-xr-x | usr/local/www/restart_httpd.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr/local/www/restart_httpd.php b/usr/local/www/restart_httpd.php index 39a7e91..70a0f03 100755 --- a/usr/local/www/restart_httpd.php +++ b/usr/local/www/restart_httpd.php @@ -39,8 +39,14 @@ include("head.inc"); <p class="pgtitle"><?php echo $pgtitle; ?></p> +Mounting file systems read/write... +<?php flush(); sleep(1); conf_mount_rw(); ?> +Done.<br> Forcing all PHP file permissions to 0755... -<?php flush(); sleep(1); system('chmod 0755 /usr/local/www/*.php'); ?> +<?php flush(); sleep(1); system('chmod -R 0755 /usr/local/www/*.php'); ?> +Done.<br> +Mounting file systems read only... +<?php flush(); sleep(1); conf_mount_ro(); ?> Done.<br> Restarting mini_httpd... <?php flush(); sleep(1); system_webgui_start(); ?> |