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 

Bug Zeroshell plugin PHP

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



Joined: 29 Sep 2017
Posts: 3

PostPosted: Fri Sep 29, 2017 8:11 am    Post subject: Bug Zeroshell plugin PHP Reply with quote

Carissimi Amici di ZS,

ho installato da poco ZS (3.Cool e ho testato con successo la creazione di VLAN, il Failover e Load Balancing su più canali di comunicazione e il Captive Portal con l'ausilio di ZeroTruth.
Ma adesso volevo aggiungere delle paginette in PHP al sistema per consentirmi di accedere e inviare comandi a dei modem satellitari ma mi sono subito bloccato, infatti dopo aver finito di installare PHP come plugin dal vostro repository ho provato a chiamare phpinfo.php come da voi suggerito ma l'errore che mi da è 404 (page not found). Seguendo vari suggerimenti da questa comunity sono riuscito a spostare il file in una posizione dove è raggiungibile ma il risultato visualizzato sul browser è questo:
<?php
phpinfo();
?>

Cioè il modulo php non è stato caricato da apache2. Sto cercando di capire dove poter aggiungere il modulo e come attivarlo ma sarebbe più facile (anche perchè ne rimane una traccia che gli altri possono utilizzare) se potete spiegarmi come aggiungere manualmente il modulo php su httpd.conf come nelle altre distribuzioni.


Grazie in anticipo per il vostro aiuto e supporto

Saluti

Giuseppe
Back to top
View user's profile Send private message
peppe.chiapparo



Joined: 29 Sep 2017
Posts: 3

PostPosted: Fri Sep 29, 2017 8:28 am    Post subject: Trovato soluzione Reply with quote

Aprite /etc/httpd/conf/httpd.conf

posizionatevi sotto la riga (per chi ha installato Zerotruth)
Include /DB/apache2/htdocs/zerotruth/conf/ssl.conf

oppure se non avete il plugin Zerotruth installato posizionatevi prima della riga:

Listen 8088


E aggiungete la seguente riga (dopo aver installatpo PHP ovviamente):

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

Saluti
Back to top
View user's profile Send private message
Montikore



Joined: 19 Jan 2016
Posts: 64

PostPosted: Fri Sep 29, 2017 8:56 am    Post subject: Reply with quote

could you please write in english?
Back to top
View user's profile Send private message
peppe.chiapparo



Joined: 29 Sep 2017
Posts: 3

PostPosted: Wed Oct 04, 2017 9:06 am    Post subject: Bug Zeroshell plugin PHP - English version Reply with quote

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

Greetings

Giuseppe

Post Posted: Sat Sep 29, 2017 8:28 am Post subject: Found solution Reply with quote Edit / Delete message

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

Greetings

Giuseppe
Back to top
View user's profile Send private message
Montikore



Joined: 19 Jan 2016
Posts: 64

PostPosted: Wed Oct 04, 2017 12:44 pm    Post subject: Reply with quote

thanks
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