brooksh Posted December 29, 2007 Share Posted December 29, 2007 Currently I am running PHP 4.4.7. safe_mode is off. It was working and now it isn't. I'm assuming it is a server setting, but I can't seem to find it. exec("/usr/local/bin/php ./create_account.php \"domain=$domain\" &2>1"); or exec("/usr/bin/php /home/public_html/create_account.php \"domain=$domain\" &2>1"); I would appreciate any suggestions. Link to comment https://forums.phpfreaks.com/topic/83574-solved-exec-stopped-working/ Share on other sites More sharing options...
nuxy Posted December 29, 2007 Share Posted December 29, 2007 Try to see if it isn't disabled. <?php echo 'Function is ' . ((function_exists('exec')) ? 'enabled' : 'disabled') . '.'; ?> Link to comment https://forums.phpfreaks.com/topic/83574-solved-exec-stopped-working/#findComment-425194 Share on other sites More sharing options...
brooksh Posted December 29, 2007 Author Share Posted December 29, 2007 Yes it is enabled. Link to comment https://forums.phpfreaks.com/topic/83574-solved-exec-stopped-working/#findComment-425198 Share on other sites More sharing options...
brooksh Posted December 29, 2007 Author Share Posted December 29, 2007 I guess by changing from Apache 1.3 to Apache 2.2 it fixed the problem and exec() works now. Link to comment https://forums.phpfreaks.com/topic/83574-solved-exec-stopped-working/#findComment-425213 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.