Hi,
I want to create a php program to restart httpd and mysql services....
<?php
$output=shell_exec('/etc/init.d/httpd restart');
echo $output;
exit;
?>
when i run this program i m getting below 3 errors :-
/etc/init.d/httpd: line 15: ulimit: open files: cannot modify limit: Operation not permitted
/etc/init.d/httpd: line 16: ulimit: open files: cannot modify limit: Operation not permitted
httpd: Could not open configuration file /usr/local/apache/conf/httpd.conf: Permission denied
================================================
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
/etc/init.d/httpd: line 13: ulimit: open files: cannot modify limit: Operation not permitted
================================================
Syntax error on line 884 of /usr/local/apache/conf/httpd.conf:
SSLCertificateKeyFile: file '/etc/ssl/private/domain.com.key' does not exist or is empty
================================================
Can any one guide me how to solve this problem ?
Thank you.



LinkBack URL
About LinkBacks
Reply With Quote




