0

I can't seem to get this to work, not sure why.

I've looked at the steps provided here.

I don't get any errors, so I've no idea why it doesn't work. The file also has 777 permissions, but still no luck.

I'm running on Ubuntu 16.04.4 and PHP 7.0.2

2
  • NEVER USE 777 Commented Apr 25, 2018 at 2:08
  • @EliasSoares Understandable, I'll be the only one to ever access this file tho. Commented Apr 25, 2018 at 2:17

1 Answer 1

2

Does the command /sbin/service apache2 restart work from the cli?

try entering the php interactive environment via php -a and run that statement: exec('/sbin/service apache2 restart');

You'll be able to get an error message in there. Try instead:

exec('service apache2 restart');

or

exec('apachectl restart');
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.