eureka Posted November 13, 2002 Posted November 13, 2002 I've moved the catalog contents and subdirectories directly into the root directory (ie., was http://catalog/*.*, now http://*.*) and renamed my default.php to index.php. Is this a dangerous practice in regards to security? I read something in the PHP manual you shouldn't run directly from the root. Could someone please advise.
mattice Posted November 13, 2002 Posted November 13, 2002 For safety it doesn't make any difference whatsoever. What you have read in the PHP manual was probably about your webserver/php itself/mysql being ran as 'root' (*nix systems) That IS dangerous indeed. Moving the contents of your catalog directory to the webserver-root isn't Mattice "Politics is the art of preventing people from taking part in affairs which properly concern them"
emanresu Posted November 13, 2002 Posted November 13, 2002 We had our intial site in www.schools-soft.co.uk/catalog/default.php but it was a pain. We moved it to the root as changed default.php to index.php and it looked ok but when we started getting 404's we found wew had missed the change in includes/application_top where it asks for define('FILENAME_DEFAULT', 'index.php'); This has partially cured the problem but we found we had to ensure that the index.php in the root was copied to default.php (in the root) to ensure the links to products etc were ok. If anyone would like to enlighten us on what caused the 404's, we'd like to hear from you. Citizen of US Minor Outlying Islands
Recommended Posts
Archived
This topic is now archived and is closed to further replies.