From 35bb6109b4f718e91775b6457d5e8acfc3094def Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 28 Jul 2005 13:02:20 +0000 Subject: 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 --- index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'index.php') 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 "

Please ensure that the webserver can write to this directory.

"; + print "

If you use Cpanel then read this post. Cpanel creates files that I need to overwrite and you have to fix that.

"; print "

If all else fails then you'll have to create it by hand:"; print "