Directory and File Permissions

So you are ready to get started with the install. You have uploaded the package and extracted it somewhere on your remote site, now what. First thing we need to do is CHMOD some files. CHMOD is the Unix command (available on Linux too) that you use to change the read-write-execute privileges for your files and directories.

When your site is hosted on a non-Unix Operating System, you need to use the commands from that OS. Eg. on Windows you use the Windows Explorer or the IIS Controlcenter when you have access to the server or you use the control panel that your provider made available for controling your site. We keep talking about CHMOD in this manual and tell you what settings need to be made.

Use CHMOD for setting access privileges for your files and directories. You will need to check and change the following if necessary. If you are new to CHMOD settings, you can set them with your FTP program that you used to upload the files to your site.

In the following section of this chapter, we provide you with directions on setting the priviledges on your directories and files. Those directions create a situation, several people might call "insecure". But, we know this from experience, a lot of shared hosting providers need you to set it this way because the webserver doesn't run on a per user basis but run as an anonymous user. Your visitor and you as admin all execute the scripts as anonymous user aka user "world".

When you are convinced that your site needs the utmost security, please contact your hostingprovider and ask him for specialized settings for the directory and file permissions for your website.

Directory Permission details

CHMOD these directories to 777. This means they need to have read, write & execute permissions for the owner, the group and the world.

  • admin/myphpnuke
  • admin/original
  • attachments
  • cache
  • gallery/gallery
  • gallery/gallery/Art
  • gallery/temp

File Permission Details

CHMOD these files to 666. This means they need to have read-write permission for the owner, for the group and for the world.

  • dbconf.php
  • admin/blockcenter/config.php
  • admin/download/config.inc.php
  • admin/emailuser/html.inc.php
  • admin/gallery/config.php
  • admin/guestbook/config.php
  • admin/myphpnuke/config.php
  • admin/myphpnuke/config_old.php
  • admin/original/dbconfig.php
  • admin/original/dbconfig_old.php
  • admin/original/config.php
  • admin/original/config_old.php
  • admin/rand_banners/config.php

This is the MOST important step in the install. If you skip this step you will be unable to complete the install successfully, and you will also have problems running MPN. Please double-check these settings before posting questions on the MPN forum.