Webmastersite.net
Register Log In

Generate HTML W/cron
Permission error

Comments on Generate HTML W/cron

mrkarron
Experienced

Usergroup: Customer
Joined: Oct 02, 2003

Total Topics: 33
Total Comments: 97
Posted Dec 14, 2006 - 4:46 PM:

The upgrade from 3.4.0 to 4.0.8 went smoothly and without any problems. I am having a problem (bug) when generating HTML to the ROOT directory using htmlcron.php. When doing so I receive the following output:

Warning: ftp_site() [function.ftp-site]: Could not change perms on /index.html: No such file or directory in /home/couponma/public_html/production/filefunctions.php on line 54

Warning: fopen(/index.html) [function.fopen]: failed to open stream: Permission denied in /home/couponma/public_html/production/filefunctions.php on line 383

Warning: fwrite(): supplied argument is not a valid stream resource in /home/couponma/public_html/production/filefunctions.php on line 383
Cannot write to the file /index.html! You must chmod it to 666.
Warning: fclose(): supplied argument is not a valid stream resource in /home/couponma/public_html/production/filefunctions.php on line 385

Manual generation from admin panel works correctly. Also, if I use the cron to generate html to any directory below root, it works correctly.

Is this a bug or is there something I am not doing correctly? Note that in the admin panel I am leaving the directory setting to blank, which again works with a manual generation, not the htmlcron.php

Ron
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 16, 2006 - 2:23 AM:

If you're generating files to your root directory the directory needs to be 777. The auto ftp can have trouble chmoding the root directory, I've noticed.

The / there could indicate an extraneous leading slash in your html settings, but it's hard to tell from here.
mrkarron
Experienced

Usergroup: Customer
Joined: Oct 02, 2003

Total Topics: 33
Total Comments: 97
Posted Dec 16, 2006 - 8:01 AM:

The problem is that is if I chmod the root to 777, I receive the following error when executing any php file:

[2006-12-16 09:29:36]: error: directory is writable by others: (/home/couponma/public_html)
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 18, 2006 - 5:31 PM:

Then you're on one of the 5% of so of odd servers that requires 755 instead. You need to select 755 at Settings -> System as well.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.