KevySaysBeNice
[H]ard|Gawd
- Joined
- Dec 7, 2001
- Messages
- 1,452
Perhaps this would be better suited for the Programming subforum, but I think this might be more of a server configuration issue and less of a actual programing question.
I'm trying to figure out why a cronjob isn't running as i'd expect (it's a Magento cronjob for what it's worth), so I figured I'd try to run the scheduled task myself cutting out the "cron" part of the job, and I'm having problems.
so, I typed this:
And I get this error:
... which is basically saying that it failed at require(app/Mage.php); The thing is, I have a copy of the production server on our staging environment, and I'm able to run the same exact command in the same exact way, and it runs perfectly. So, I figured perhaps permissions for the "app" folder or the "Mage.php" file were off, but when I compared them, they turned out to be the same for both.
same same!
Also, I'm running both of these commands as a super user (su). I've also tried "sudo php cron.php" (just for fun, because why not I figured) with the same result.
So, does anybody have any ideas as to what might be happening?
Thanks in advance!
I'm trying to figure out why a cronjob isn't running as i'd expect (it's a Magento cronjob for what it's worth), so I figured I'd try to run the scheduled task myself cutting out the "cron" part of the job, and I'm having problems.
so, I typed this:
Code:
php cron.php
And I get this error:
Code:
Warning: require(app/Mage.php): failed to open stream: Operation not permitted in
... which is basically saying that it failed at require(app/Mage.php); The thing is, I have a copy of the production server on our staging environment, and I'm able to run the same exact command in the same exact way, and it runs perfectly. So, I figured perhaps permissions for the "app" folder or the "Mage.php" file were off, but when I compared them, they turned out to be the same for both.
Code:
Production (doesn't work): drwxr-xr-x 6 prod1 nobody 4096 May 11 17:31 app/
Staging (DOES work): drwxr-xr-x 6 stg2 nobody 4096 May 11 17:30 app/
Production (doesn't work): -rw-rw-rw- 1 prod1 nobody 24163 Jan 26 08:35 Mage.php
Staging (DOES work): -rw-rw-rw- 1 stg2 nobody 24163 Jan 26 08:35 Mage.php
same same!
Also, I'm running both of these commands as a super user (su). I've also tried "sudo php cron.php" (just for fun, because why not I figured) with the same result.
So, does anybody have any ideas as to what might be happening?
Thanks in advance!