Forum Moderators: coopster

Message Too Old, No Replies

I'm installing osCommerce but have errors

         

eaglepi

6:00 pm on Oct 12, 2005 (gmt 0)

10+ Year Member



Can someone please tell me how to fix these errors

Warning: fopen(/home/playboy/public_html/catalog/admin/includes/configure.php): failed to open stream: Permission denied in /home/playboy/public_html/catalog/install/templates/pages/install_7.php on line 259

Warning: fputs(): supplied argument is not a valid stream resource in /home/playboy/public_html/catalog/install/templates/pages/install_7.php on line 260

Warning: fclose(): supplied argument is not a valid stream resource in /home/playboy/public_html/catalog/install/templates/pages/install_7.php on line 261
The configuration was successful

dreamcatcher

6:10 pm on Oct 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi eaglepi,

Its a permissions problem, so looks like one of the directories needs chmoding to 777 to make it writeable. The second two errors are related to the first. Try chmoding the 'configure.php' file to 777.

Did you check the installation documentation?

dc

eaglepi

7:50 pm on Oct 12, 2005 (gmt 0)

10+ Year Member



Yes I did check the docs, I also did as it said to chmod the configure.php to 706 which it calls for first and then 777 if that didn't work.

I'll thripe check and see if the chmod didn't take.

Thanks for your reply

dreamcatcher

9:54 am on Oct 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would think the chmoding should do the trick. Did it work?

eaglepi

4:04 pm on Oct 13, 2005 (gmt 0)

10+ Year Member



I'm installing osCommerce and when I try to go to the admin panel I get this error message

Warning: main(includes/application_top.php): failed to open stream: Permission denied in /home/playboy/public_html/catalog/admin/index.php on line 13

Warning: main(includes/application_top.php): failed to open stream: Permission denied in /home/playboy/public_html/catalog/admin/index.php on line 13

Fatal error: main(): Failed opening required 'includes/application_top.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/playboy/public_html/catalog/admin/index.php on line 13

Could someone please tell me what I need to do to correct this, I don't know anything about PHP but if good directions are given I can manage.

Thank you in advance

dreamcatcher

4:19 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As with before the correct permissions are not set on the directories.

dc

eaglepi

4:23 pm on Oct 13, 2005 (gmt 0)

10+ Year Member



I really appreciate everyones help BUT...........

Just telling me that it is a permission problem is not helping me, I already know that.

when I check the configure.php it says it is chomoded to 777

what I need here is someone to help me figure out why I get these errors when I have the file chmoded correctly and what else I can look at to fix it.

jatar_k

4:26 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



what's on line 13 then?

eaglepi

5:00 pm on Oct 13, 2005 (gmt 0)

10+ Year Member




require('includes/application_top.php');

dreamcatcher

5:10 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you running PHP4 or 5? I don`t think oscommerce is compatible with 5 at the moment.

eaglepi

9:41 pm on Oct 13, 2005 (gmt 0)

10+ Year Member



PHP version 4.4.0

jatar_k

9:56 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



and what are the permissions on application_top.php

that is the file it is being denied access to

henry0

9:57 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That error most of the time is a "false one"
I mean it often is a path error in config
pock around. try a few full or relative pathes. Pay attention to beginning and ending "/"

I did not install any OSComm since about 2 years so I do not remember very well!

Go to OSComm forum, there are many OsComm users that do know about that one error,
but again look for a path problem.

eaglepi

10:09 pm on Oct 13, 2005 (gmt 0)

10+ Year Member



osCommerce forums are not responding very well, I have had many more helpful replies here. right now
application_top.php is set to 644

jatar_k

11:00 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



really you could chmod the whole darn thing to 755

depending on who the owner is 644 may be the problem

eaglepi

12:02 am on Oct 14, 2005 (gmt 0)

10+ Year Member



When you say the whole darn thing, what exactly do you mean? that folder or all folders and what will that do for me, I want it to be secure.. When I say "what will that do for me" I don't mean it in a smartass way I just want to know what I'm doing.

Thanks for you help

ChrisKeen

12:19 am on Oct 14, 2005 (gmt 0)

10+ Year Member



What do you have the "SEO friendly" URLs set to in your store configuration?

eaglepi

12:29 am on Oct 14, 2005 (gmt 0)

10+ Year Member



I have nothing set in my store because whenever I try to go to my admin I get

Warning: main(includes/application_top.php): failed to open stream: Permission denied in /home/playboy/public_html/catalog/admin/index.php on line 13

Warning: main(includes/application_top.php): failed to open stream: Permission denied in /home/playboy/public_html/catalog/admin/index.php on line 13

Fatal error: main(): Failed opening required 'includes/application_top.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/playboy/public_html/catalog/admin/index.php on line 13

also I'm not sure what you are talking about with the friendly thing?

ChrisKeen

12:34 am on Oct 14, 2005 (gmt 0)

10+ Year Member



Sorry...I thought you had gotten to admin.

You have to CHMOD on two files:

/catalog/admin/includes/configure.php

and

/catalog/includes/configure.php

Try changing to 777. Let me know if this works.

ChrisKeen

12:36 am on Oct 14, 2005 (gmt 0)

10+ Year Member



On BOTH of them.

eaglepi

12:47 am on Oct 14, 2005 (gmt 0)

10+ Year Member



Both configure.php are chmoded to 777 but I still get this error

Warning: main(includes/application_top.php): failed to open stream: Permission denied in /home/playboy/public_html/catalog/admin/index.php on line 13

Warning: main(includes/application_top.php): failed to open stream: Permission denied in /home/playboy/public_html/catalog/admin/index.php on line 13

Fatal error: main(): Failed opening required 'includes/application_top.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/playboy/public_html/catalog/admin/index.php on line 13

ChrisKeen

12:51 am on Oct 14, 2005 (gmt 0)

10+ Year Member



Sorry, those are the only things that I can think of at this time. I installed osC but had to do it on a dedicated server. The shared hosting that I was using did not work with osC.