apedraza Posted April 13, 2007 Posted April 13, 2007 Hi, folks... I used osCommerce to set up a shop for someone who is, and I'm trying to be gentle, very technologically challenged. I cannot let him loose on the full Admin module or I'd be spending all my time fixing what he breaks. The only thing I need him to have access to is the Customers and Reports menus. What I did was copy the whole admin/ directory to another one at the same level (in catalog/) that I named owner/. I then protected the directory with a password, and I made sure it had the same permissions (755), just like the regular admin/. I go and open it up and it asks me for login as it's supposed to, however, once that's done I get this error message: Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /homepages/xx/xxxxxxxxxxx/htdocs/xxxx/catalog/owner/includes/functions/database.php on line 19 Unable to connect to database server! Any and all help will be appreciated! Thanks... :thumbsup: Andres
bill110 Posted April 13, 2007 Posted April 13, 2007 I've never done this so this is a guess. You may need to define the new directory in the admin/includes/configure.php file and also if you copied the entire admin folder then there will be a configure.php file there that you will need to change also. Don't know if both admin and owner directories need to be defined in both or which combination will work. My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
apedraza Posted April 14, 2007 Author Posted April 14, 2007 I've never done this so this is a guess. You may need to define the new directory in the admin/includes/configure.php file and also if you copied the entire admin folder then there will be a configure.php file there that you will need to change also. Don't know if both admin and owner directories need to be defined in both or which combination will work. Thanks a million! Once I edited the ../owner/includes/configure.php file so that the DEFINEs pointed to 'owner' instead of 'admin', all started working. I will now edit the 'owner' menu to have only those options I want my client to access. Thanks again... Best, Andres
Recommended Posts
Archived
This topic is now archived and is closed to further replies.