Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- You can test to make sure u r using the new php.ini by running phpinfo(); If you want multiple php.inis, then use .htaccess files to set the PHPRC variable to the directory that the php.ini file you want to use is in.
- File structure from ROOT directory
- Code: Select all
- [SIZE="1"][FONT="Courier New"].
- |-- site1.com
- | `-- htdocs
- | | |-- cgi-bin
- | | | `-- dl.cgi
- | | `-- index.html
- | |-- phpsessions
- | |-- php.ini
- | `-- .htaccess
- |-- site2.org
- | `-- htdocs
- | | |-- cgi-bin
- | | | `-- dl.cgi
- | | `-- index.html
- | |-- phpsessions
- | |-- php.ini
- | `-- .htaccess
- `-- site3.net
- `-- htdocs
- | |-- cgi-bin
- | | `-- dl.cgi
- | `-- index.html
- |-- phpsessions
- |-- php.ini
- `-- .htaccess[/FONT][/SIZE]
- Remember to chmod 640 all .htaccess files, chmod 600 your php.ini files, chmod 600 your php flies, and chmod 705 your cgi scripts.. if you don't want ftp users to be able to change the file than chmod 400.
Add Comment
Please, Sign In to add comment