PDA

Visualizza la versione completa : connessione ssh web


lle
08-10-2006, 11:44
ciao ho due computer in rete uno con windows e l'altro con linux, ma solo testuale..
accedo da windows a linux via ssh con putty, filezilla, wnscp.
ma avrei bisogno di accederci via web, via browser per poter visulizzare il php.
ho provato a scrivere su browser di windows http://indirizzo_ip_linux, http://indirizzo_ip_linux:80, http://indirizzo_ip_linux:22, ma non funziona...chiaramente sto andando a tentativi!!
qualcuno di voi sa come si fa?

grazieeeeeee

moskitoita
08-10-2006, 11:50
hai installato un web server tipo apache???

GreyFox86
08-10-2006, 11:51
Devi avere apache con il modulo per php installato ed attivo per poter far agire da webserver.
E' installato? Se si, in esecuzione? (pstree | grep apache)

lle
08-10-2006, 11:56
ho installato apache.
apachectl start:
[Thu Sep 28 21:06:26 2006] [warn] module php4_module is already loaded, skipping
httpd (pid 556) already running
va bene?

lle
08-10-2006, 11:58
se faccio pstree | grep apache non succede nulla. cosa ho fatto di male? :dh:

GreyFox86
08-10-2006, 12:04
Vuol dire che non ci sono processi attivi di nome apache, ovvero che apache non attivo.
Magari apache termina poco dopo che lo hai lanciato a causa di una cattiva configurazione, prova a leggere il log degli errori (per apache2 si trova in /var/log/apache2/error_log)

lle
08-10-2006, 12:07
in error_log c' questo ma per me arabo:
[Fri Sep 22 02:22:01 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Sep 22 02:22:03 2006] [notice] Apache/2.0.59 (Trustix Secure Linux/Linux) configured -- resuming normal operations
[Sun Sep 24 23:55:35 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/share/php/gd.so' - /usr/share/php/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/share/php/zlib.so' - /usr/share/php/zlib.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/share/php/pspell.so' - /usr/share/php/pspell.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/share/php/gd.so' - /usr/share/php/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/share/php/zlib.so' - /usr/share/php/zlib.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/share/php/pspell.so' - /usr/share/php/pspell.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Sun Sep 24 23:55:37 2006] [notice] Apache/2.0.59 (Trustix Secure Linux/Linux) configured -- resuming normal operations
[Mon Sep 25 00:37:33 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/share/php/gd.so' - /usr/share/php/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/share/php/zlib.so' - /usr/share/php/zlib.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/share/php/pspell.so' - /usr/share/php/pspell.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/share/php/gd.so' - /usr/share/php/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/share/php/zlib.so' - /usr/share/php/zlib.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/share/php/pspell.so' - /usr/share/php/pspell.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Mon Sep 25 00:37:36 2006] [notice] Apache/2.0.59 (Trustix Secure Linux/Linux) configured -- resuming normal operations
[Thu Sep 28 03:22:11 2006] [notice] SIGHUP received. Attempting to restart

lle
08-10-2006, 12:25
se digito: chkconfig --list | grep httpd
httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
quindi il demone attivo? :confused:

GreyFox86
08-10-2006, 12:54
ma che distro usi? non conosco quei comandi di avvio...

lle
08-10-2006, 13:08
uso trustix 2.2.

che dice il file error_log? ci capisci qualcosa?

Loading