• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

CRON Safe_Mode restriction

C

cgraham149

Guest
I am on a virtual dedicated server. I changed my vhost.conf file to this:

Code:
<Directory "/home/httpd/vhosts/domain.com/httpdocs">
    php_admin_flag safe_mode off
</Directory>

My Cron job (performed by root) is this:

Code:
*/59 * * * * /usr/bin/php /home/httpd/vhosts/domain.com/httpdocs/administrator/components/com_feedgator/cron.feedgator.php

cron.feedgator.php is owned by apache.

However, my Cron email reports the following errors:

Code:
Warning:  main(): SAFE MODE Restriction in effect.  

The script whose uid is 48 is not allowed to access 

/home/httpd/vhosts/domain.com/httpdocs/administrator/components/com_feedgator/../../../globals.php owned by uid 0 in 

/home/httpd/vhosts/domain.com/httpdocs/administrator/components/com_feedgator/cron.feedgator.php on line 20

Do I need to add another directory in the vhost.conf file to make this work, adjust path, or is this a file permissions issue? Any ideas on what I might be doing wrong?
 
Back
Top