PHP installation failed?
-
I just followed the LAMP stack tutorial and added a very simple test page to /usr/share/htdocs to be sure that php is working.
It's not working. I get a "Forbidden" page, saying I don't have permission to access the file.
I'm very new to setting up apache and php, so I have very little idea of where to start looking for the problem. I'm pretty sure I followed the tutorial exactly as it said to do it. What might I have missed?
-
@Chad-Hadsell Can you try reinstalling both
php
andapache
. There seems to be a bug in the installation process. A few users have reported that reinstalling these packages resolve the Forbidden issue.
-
i have found the solution in an older discussion
https://community.onion.io/topic/159/install-lamp-ftp-and-phpmyadmin-on-your-onion-omega*Chris MacKay posted 2 months ago reply quote 2
@Josip-Mlakar said:ScriptAlias /php/ "/usr/bin"
I, too, was able to reproduce this error, after following the instructions to the letter.Upon investigation, I found this in the error_log:
"client denied by server configuration: /usr/binphp-cgi"
I adjusted the line ScriptAlias /php/ "/usr/bin" to be ScriptAlias /php/ "/usr/bin/" (notice the trailing /), and it resolved the issue.
Hope that helps!*
Cheers
Steffen
-
Same problem here just about 4 hours ago.
Thank you @Steffen-E
@administrators Can you please fix this issue in the wiki? Reinstalling is just a waste of time.
-
@Kaesekuchen Ok, the wiki article is updated, sorry about that!
Also, our wiki articles are all written in Markdown and stored in a public GitHub repo, so anyone is welcome to clone the repo and create push requests!