summaryrefslogtreecommitdiffstats
path: root/usr/local/www/restart_httpd.php
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-07-03 15:35:44 +0000
committerBill Marquette <billm@pfsense.org>2005-07-03 15:35:44 +0000
commitcab0986cba091ab07debabca1c44ab4bffd14e28 (patch)
treeffc9798df9ede3a3880ca1758e0f7ecd95fc3ff9 /usr/local/www/restart_httpd.php
parent5b243f4ea7750ebbdd82bb391a47963626872b4e (diff)
downloadpfsense-cab0986cba091ab07debabca1c44ab4bffd14e28.zip
pfsense-cab0986cba091ab07debabca1c44ab4bffd14e28.tar.gz
Set *.php to 755 before restarting mini_httpd
Diffstat (limited to 'usr/local/www/restart_httpd.php')
-rwxr-xr-xusr/local/www/restart_httpd.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/restart_httpd.php b/usr/local/www/restart_httpd.php
index e049ee8..39a7e91 100755
--- a/usr/local/www/restart_httpd.php
+++ b/usr/local/www/restart_httpd.php
@@ -39,9 +39,12 @@ include("head.inc");
<p class="pgtitle"><?php echo $pgtitle; ?></p>
+Forcing all PHP file permissions to 0755...
+<?php flush(); sleep(1); system('chmod 0755 /usr/local/www/*.php'); ?>
+Done.<br>
Restarting mini_httpd...
<?php flush(); sleep(1); system_webgui_start(); ?>
-Done.
+Done.<br>
<?php
include("fend.inc");
OpenPOWER on IntegriCloud