Home Page › Forums › Network Management › ZeroShell › [solved]php doesn’t works
- This topic is empty.
-
AuthorPosts
-
April 19, 2016 at 10:34 am #44542
odin
MemberPhp doesn’t seems to work, i tried goind on https://xxx.xxx.xxx.xxx/add-ons/phpinfo.php but it gave me http 404.
I checked in /var/www/ and phpinfo.php is there.
Not sure if is a bug or an error i made.April 19, 2016 at 2:02 pm #54128DrmCa
Participantis phpinfo.php under /var/www or under /var/www/add-ons?
April 19, 2016 at 3:44 pm #54129odin
Memberunder /var/www
April 19, 2016 at 4:19 pm #54130DrmCa
ParticipantThen your URL has an extra directory /add-ons
April 19, 2016 at 4:39 pm #54131odin
Memberhttp://xxx.xxx.xxx.xxx/phpinfo.php gives me 404, too.
April 19, 2016 at 4:52 pm #54132DrmCa
ParticipantCan you place a .txt or .html file there and try to access? What would happen?
You’ll need to check the apache command line, run
ps lmax |grep httpd
for any -f key that may override the default config file location. Then check the config file for the apache home directory, it may not be /var/www
With PHP not working you should not be getting a 404 error. I would expect a PHP file to be served as plain text instead. 404 may mean Apache is using a different directory.
April 19, 2016 at 5:05 pm #54133odin
MemberI created a txt file, still 404
this is the output
5 1000 2522 9360 20 0 6968 2820 - S ? 0:00 /usr/local/apache2/bin/httpd -k start
5 1000 2523 9360 20 0 7100 4716 - S ? 0:00 /usr/local/apache2/bin/httpd -k start
5 1000 2524 9360 20 0 7100 4776 - S ? 0:00 /usr/local/apache2/bin/httpd -k start
0 0 7123 598 20 0 2272 580 - S pts/0 0:00 grep httpd
1 0 9360 1 20 0 6836 4880 - S ? 0:00 /usr/local/apache2/bin/httpd -k start
5 1000 9363 9360 20 0 7104 4868 - S ? 0:00 /usr/local/apache2/bin/httpd -k start
5 1000 9364 9360 20 0 7096 4916 - S ? 0:00 /usr/local/apache2/bin/httpd -k start
5 1000 9367 9360 20 0 7104 4748 - S ? 0:00 /usr/local/apache2/bin/httpd -k start
5 1000 11137 9360 20 0 7100 4892 - S ? 0:00 /usr/local/apache2/bin/httpd -k start
5 1000 11160 9360 20 0 7100 4740 - S ? 0:00 /usr/local/apache2/bin/httpd -k start
5 1000 11164 9360 20 0 7100 4732 - S ? 0:00 /usr/local/apache2/bin/httpd -k start
5 1000 11165 9360 20 0 7100 4920 - S ? 0:00 /usr/local/apache2/bin/httpd -k startWhat does it mean the -k?
April 19, 2016 at 5:10 pm #54134DrmCa
ParticipantYour guess is as good as mine in this respect.
-f key is used to override the default config file IIRC.
so your installation should be using the default config locationCan you post the output of
ls -l /var/www
April 19, 2016 at 5:49 pm #54135odin
Memberlrwxrwxrwx 1 root root 29 Apr 19 19:35 /var/www -> /var/register/system/PHP/www/
April 19, 2016 at 8:02 pm #54136DrmCa
ParticipantOh, it is a symbolic link! Post the output of:
ls -l /var/register/system/PHP/www/
-
AuthorPosts
- You must be logged in to reply to this topic.