summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/index.php b/index.php
index 2a5456f..3b4b26c 100644
--- a/index.php
+++ b/index.php
@@ -141,7 +141,6 @@ function do_htaccess( $oldfilename, $newfilename, $realpath, $base, $url )
$htaccess = str_replace( "BASE", $base, $htaccess );
$htaccess = str_replace( "HOST", $url, $htaccess );
if( touch( $newfilename ) ) {
- chmod( $newfilename, 0666 );
$fp = fopen( $newfilename, "w" );
if( $fp ) {
fwrite( $fp, $htaccess );
@@ -149,7 +148,6 @@ function do_htaccess( $oldfilename, $newfilename, $realpath, $base, $url )
} else {
$err = "could not open $newfilename for writing";
}
- chmod( $newfilename, 0644 );
} else {
$err = "could not open $newfilename for writing";
}
@@ -175,6 +173,7 @@ function do_htaccess( $oldfilename, $newfilename, $realpath, $base, $url )
filestats( $err );
print "<p>Please ensure that the webserver can write to this directory.</p>";
+ print "<p>If you use Cpanel then read <a href='http://mu.wordpress.org/forums/topic/99'>this post</a>. Cpanel creates files that I need to overwrite and you have to fix that.</p>";
print "<p>If all else fails then you'll have to create it by hand:";
print "<ul><li> Download htaccess.dist to your computer and open it in your favourite text editor.</li>
<li> Replace the following text:<ul><li>REALPATH by '$realpath'</li><li>BASE by '$base'</li><li>HOST by '$url'</li></li>