PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > Web Site Design > Content Management Systems > E-commerce and Shopping Carts
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools Search this Thread
Old 9-13-03, 05:59 PM   #1
outerreaches
 
Posts: n/a
Exclamation includes/configure.php Problem

I get this error when I go to my catalog:

Warning: I am able to write to the configuration file: /home/USERNAME/public_html/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

I've tried changing the CHMOD to practically every number combo I can think of (people have suggested 644, 444 and 777 but none have worked). Does anyone know how I can fix this? You can view the page here:

http://www.loosefigurecollector.com/...g/default.php?
 
Old 9-13-03, 06:15 PM   #2
tbonekkt
 
Join Date: Dec 2002
Location: TX
Posts: 12,381
Reputation: 248
Re: includes/configure.php Problem

Quote:
Originally posted by outerreaches
I get this error when I go to my catalog:

Warning: I am able to write to the configuration file: /home/USERNAME/public_html/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

I've tried changing the CHMOD to practically every number combo I can think of (people have suggested 644, 444 and 777 but none have worked). Does anyone know how I can fix this? You can view the page here:

http://www.loosefigurecollector.com/...g/default.php?


In a new PHP file, insert the following:

<?php
chmod('includes/configure.php', 0444);
?>

save as chmod.php and upload to /catalog and /admin (just to be safe). Then access the pages in a browser (www.domain.com/pathto/catalog/chmod.php) and you'll be set.
tbonekkt is offline  
Old 9-14-03, 07:52 AM   #3
outerreaches
 
Posts: n/a
Thank you for your reply! Ok, I made a new PHP file called chmod.php like you suggested throught the File Manager to the following directories:

/www/l/loosefigs/htdocs/osCommerce/catalog/
/www/l/loosefigs/htdocs/osCommerce/catalog/admin

I tried accessing them in a new browser like suggested, but I get an error:

http://www.loosefigurecollector.com/...alog/chmod.php

The problem is still happening. When I go back to look at the script in the chmod.php under catalog, I get the following error:

Warning: file(/www/l/loosefigs/htdocs/osCommerce/catalog/chmod.php): failed to open stream: No such file or directory in /www/l/loosefigs/htdocs/osCommerce/catalog/admin/file_manager.php on line 156

Do I need to change anything in the file_manager.php? Or should I scratch the chmod.php file and upload it through FTP?
 
Old 9-14-03, 07:58 AM   #4
outerreaches
 
Posts: n/a
OH MY LORD IT WORKED!!

I deleted the chmod.php I had put in the /catalog directory, and uploaded a new one through FTP (instead of the file manager) and by golly it WORKED!!

Thank you SO MUCH, I was going crazy over this one! You rock!
 
Old 9-15-03, 01:30 AM   #5
tbonekkt
 
Join Date: Dec 2002
Location: TX
Posts: 12,381
Reputation: 248
Quote:
Originally posted by outerreaches
OH MY LORD IT WORKED!!

I deleted the chmod.php I had put in the /catalog directory, and uploaded a new one through FTP (instead of the file manager) and by golly it WORKED!!

Thank you SO MUCH, I was going crazy over this one! You rock!


Glad I could help.
tbonekkt is offline  
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 08:46 PM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.