diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-07-28 13:02:20 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-07-28 13:02:20 +0000 |
commit | 35bb6109b4f718e91775b6457d5e8acfc3094def (patch) | |
tree | d2d1542ec334733fd6946c89266f8869ad8d0a23 | |
parent | 6aef1f41c5a0a8ae2e3ff9a9e60c0ca12702bb42 (diff) | |
download | wordpress-mu-35bb6109b4f718e91775b6457d5e8acfc3094def.tar.gz wordpress-mu-35bb6109b4f718e91775b6457d5e8acfc3094def.tar.xz wordpress-mu-35bb6109b4f718e91775b6457d5e8acfc3094def.zip |
Chmods wouldn't have helped anyway.
Added a warning message to Cpanel users.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@86 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r-- | index.php | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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> |