Changeset 535

Show
Ignore:
Timestamp:
03/06/06 13:40:56 (3 years ago)
Author:
donncha
Message:

Added docs on configuring PHP to turn off register globals and not display errors

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/README.txt

    r13 r535  
    33 
    44WordPress MU is a multi user version of WordPress. 
    5  
     5If you're not comfortable editing PHP code, taking care of a complex 
     6webserver and database system and being pro-active about following 
     7developments of this project then run, don't walk, to  
     8http://wordpress.com/ and sign yourself and your friends up to free blogs. 
     9It's easier in the long run and you'll save yourself a lot of pain 
     10and angst. 
    611 
    712Install 
     
    2328"AllowOverride None" 
    2429and change it to 
    25 "AllowOverride FileInfo
     30"AllowOverride FileInfo Options
    2631 
    27 Maintenance 
    28 =========== 
    29 If you have PEAR Cache, it'll be used to significantly speed up 
    30 things. However, this generates cached files which have to be cleared 
    31 from time to time. 
    32 Uncomment the code in wp-inst/maintenance.php and make sure it's  
    33 protected by IP checks or username/passwords. You should call this 
    34 script at least once a day, and maybe more depending on how busy 
    35 your server is. 
     32PHP 
     33=== 
     34For security reasons, it's very important that PHP be configured as follows: 
     351. Don't display error messages to the browser. This is almost always 
     36turned off but sometimes when you're testing you turn this on and forget 
     37to reset it. 
     382. GLOBAL variables must be turned off. This is one of the first things 
     39any security aware admin will do. These days the default is for it to 
     40be off! 
     41 
     42The easiest way of configuring it is via the .htaccess file that is 
     43created during the install. If you haven't installed WPMU yet then edit 
     44the file htaccess.dist in this directory and add these two lines at the 
     45top: 
     46 
     47php_flag register_globals 0 
     48php_flag display_errors 0 
     49 
     50This is NOT included in that file by default because it doesn't work on 
     51all machines. If it doesn't work on your machine, you'll get a cryptic 
     52"500 internal error" after you install WPMU. To remove the offending lines 
     53just edit the file ".htaccess" in your install directory and you'll see 
     54them at the top. Delete and save the file again. 
     55Read here for how to enable this: http://ie.php.net/configuration.changes 
     56 
     57If you don't want to edit your .htaccess file then you need to change your 
     58php.ini. It's beyond the scope of this README to know exactly where it is 
     59on your machine, but if you're on a shared hosted server you probably 
     60don't have access to it as it requires root or administrator privileges 
     61to change. 
     62If you do have root access, try "locate php.ini" or check in: 
     63/etc/php4/apache2/php.ini 
     64/usr/local/lib/php.ini 
     65Once you have opened your php.ini, look for the sections related to  
     66register_globals and display_errors. Make sure both are Off like so: 
     67display_errors = Off 
     68register_globals = Off 
     69 
     70You'll have to restart Apache after you modify your php.ini for the  
     71settings to be updated. 
    3672 
    3773Support Forum: