Nasıl bu PHP çalıştırabilirsiniz?
sudo /etc/init.d/apache2 restart
Bunun iyi bir fikir olduğunu sanmıyorum.
Ayrıca, aşağıdaki tartışmalara bir göz atın:
http://stackoverflow.com/questions/425717/can-php-restart-apache
http://www.linuxforums.org/forum/linux-security/3068-using-php-restart-apache.html
Sen Exec komutunu kullanabilirsiniz. http://ch.php.net/manual/en/function.exec.php
Sudo kullanmak istiyorsanız, sadece / etc / sudoers dosyasına (genellikle www) altında Apache çalıştıran kullanıcıyı ekleyin.