www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

Issue with loading PHP plugin

Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell
View previous topic :: View next topic  
Author Message

Joined: 19 Jan 2016
Posts: 64

PostPosted: Wed Oct 04, 2017 12:46 pm    Post subject: Issue with loading PHP plugin Reply with quote

peppe.chiapparo wrote:
Dear Friends of ZS,

I just installed ZS (Release 3.8.0 and I successfully tested the VLAN creation, the Failover over several connectivities, the Load Balancing on multiple communication channels and the Captive Portal thanks to the plugin ZeroTruth).
But when I tried to add PHP pages into the ZS OS in order to send commands (call bash scripts via PHP pages) to satellite modems connected to the ZS but I was immediately blocked after I completed the PHP installation as plugin from the ZS repository. I tried to call phpinfo.php as suggested but i received the error 404 (page not found). Following various suggestions from this community I moved the file (phpinfo.php) to a reachable location but the result displayed on the browser is the following:
<? php
phpinfo ();

It means that the php module has not been loaded by apache2.
I'm trying to figure out where to add the module and how to activate it but it would be easier (also because there is a trace that others can use) if you can explain how to manually add the php module to httpd.conf as in other distributions.

Thanks in advance for your help and support



The solution i found:

Open /etc/httpd/conf/httpd.conf

In the line position below the line (for those who have installed Zerotruth)
Includes /DB/apache2/htdocs/zerotruth/conf/ssl.conf

or if you do not have the Zerotruth plugin installed, the line position is before the line:

Listen 8088

Add the following line (after installing PHP, of course):

Include /db/devel/mnt/var/register/system/AutoUpdate/pkgs/40800/pkg/httpd-php.conf

Save and exit.
Then restart the apache deamon:

service httpd restart


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group