PHP Not Working

Started by polodon242, February 22, 2020, 07:47:57 PM

Previous topic - Next topic

polodon242

Im not sure if missed something but with everything on default im able to view .html files with no problem but when i try to view a .php file extension im just getting a white blank page. Can someone help me with what maybe causing this issue or what to enable or install?



polodon242


polodon242

in my error_log is the below message

[Fri Feb 21 16:43:54.214346 2020] [mpm_event:notice] [pid 2145:tid 139752354682752] AH00489: Apache/2.4.39 (Unix) configured -- resuming normal operations
[Fri Feb 21 16:43:54.264129 2020] [core:notice] [pid 2145:tid 139752354682752] AH00094: Command line: '/usr/local/apache/bin/httpd'
[Fri Feb 21 22:26:54.391154 2020] [mpm_event:notice] [pid 2145:tid 139752354682752] AH00491: caught SIGTERM, shutting down

Sandeep

check
/usr/local/apache/domlogs/DOMAIN.COM.error.log

polodon242

Okay ive managed to get everything sorted but now im facing a 403 Forbidden Error "You don't have permission to access / on this server.". What would be the best way to fix and correct this?

pixelpadre

you can turn off mod sec and firewall and that will tell you if that is the problem

Also, have you tried user accounts. Fix permissions.?

pixelpadre

Also most likely htaccess is your problem.  rename it and try loading the page.

polodon242

When fixing the permission, should i leave it set to nobody with the options checked?
    User: nobody or nextuser
    Fix Account Permission: Checked
    Internal Server Error: Checked
    Remove AddHandler: Unchecked

I've disabled Mod Security via uninstall and left OWASP old to on.

polodon242

#9
Now im facing a 404 Not Found Error if i disable the .htaccess file but if i enable it im facing a 500 Internal Server Error.

pixelpadre

#10
do the fix permissions again but do not use nobody.  and click on the first box.

polodon242

Okay ive managed to get everything up 100% now thanks!