So everything was working fine after I changed some permissions of a folder inside /var/www/html
. It was just a random project. IIRC I just did chmod u+x
, that's it.
This created the whole mess, I suppose, i.e. when I open the PHP files now, they are returning blank pages.
Troubleshooting I have done so far:
1) Uninstalled and reinstalled complete LAMP stack.
2) phpinfo()
is working fine.
3) Tried most of the Google solutions regarding permissions, which I'm sure have messed up my /var
or at least /var/www
permissions. Tried every set of secure or insecure permission set I found, but no gain.
4) /var/log/apache2/error.log
- http://pastebin.com/hfztqt0C
5) Tried changing location of Apache directory from /var/www/html
to /home/username/Documents/abc
, but getting 403 Forbidden error. Now this is another problem, as I did apply some quick suggested permissions as per Google's results:
chgrp -R www-data /home/username/Documents
chmod -R 2750 /home/username/Documents
But it didn't work.
Please help me out, reinstalling Ubuntu is of course the last option, but I'd love to solve it by tinkering as it'd surely make me learn new things. If the /var/www
doesn't get solved, then I want to make the Apache dir change work.
Thanks
as my apache ver is 2.4 .
New error log -[http://pastebin.com/LfRL0rq5]
Couple of things from error log are confusing me:
How come root can be denied access for anything ?
One of the most repetitive error in error log is pointing to line 5 in index.php, which is just '$object = new class;' .
I am a comeplte Linux newbie, relying on mighty Google and other experts, so please bear with me if I'm doing something wrong.
Thanks again !!
– Sujay Kirti Jul 24 '15 at 08:07