AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Installazione, configurazione e uso di Ubuntu come server: web, ftp, mail, news, proxy, dns e altro.
enrige
Prode Principiante
Messaggi: 85
Iscrizione: mercoledì 23 agosto 2006, 8:23
Località: Genova

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da enrige »

Fatto, ma:

sudo service apache2 start
* Starting web server apache2                                                  Syntax error on line 160 of /etc/apache2/apache2.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
Action 'start' failed.
The Apache error log may have more information.
                                                                        [fail]
Avatar utente
ReMichael
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 4042
Iscrizione: venerdì 30 novembre 2007, 22:02

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da ReMichael »

posta:

Codice: Seleziona tutto

nl /etc/apache2/apache2.conf | grep 160
poi posta anche il contenuto delle cartelle presenti in /etc/apache2. metti il risultato nei tag code (tasto # quando componi il messaggio).
enrige
Prode Principiante
Messaggi: 85
Iscrizione: mercoledì 23 agosto 2006, 8:23
Località: Genova

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da enrige »

Codice: Seleziona tutto

nl /etc/apache2/apache2.conf | grep 160
160	# e.g., www.apache.org (on) or 204.62.129.132 (off).

Codice: Seleziona tutto

apache2.conf  envvars     magic           mods-enabled  sites-available
conf.d        httpd.conf  mods-available  ports.conf    sites-enabled
Avatar utente
ReMichael
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 4042
Iscrizione: venerdì 30 novembre 2007, 22:02

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da ReMichael »

enrige ha scritto:

Codice: Seleziona tutto

nl /etc/apache2/apache2.conf | grep 160
160	# e.g., www.apache.org (on) or 204.62.129.132 (off).
probabilmente la 160 senza conteggiare i commenti.. va beh, quello lo lasciamo a dopo

Codice: Seleziona tutto

apache2.conf  envvars     magic           mods-enabled  sites-available
conf.d        httpd.conf  mods-available  ports.conf    sites-enabled
mi serve sapere il contenuto di ciascuna cartella  :)
enrige
Prode Principiante
Messaggi: 85
Iscrizione: mercoledì 23 agosto 2006, 8:23
Località: Genova

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da enrige »

Non avevo capito:

Codice: Seleziona tutto

enrico@portatile-linux:/etc/apache2/conf.d$ ls
charset  localized-error-pages  other-vhosts-access-log  security

Codice: Seleziona tutto

enrico@portatile-linux:/etc/apache2/mods-available$ ls
actions.conf          cern_meta.load     ident.load           proxy_http.load
actions.load          cgid.conf          imagemap.load        proxy.load
alias.conf            cgid.load          include.load         proxy_scgi.load
alias.load            cgi.load           info.conf            reqtimeout.conf
asis.load             charset_lite.load  info.load            reqtimeout.load
auth_basic.load       dav_fs.conf        ldap.conf            rewrite.load
auth_digest.load      dav_fs.load        ldap.load            setenvif.conf
authn_alias.load      dav.load           log_forensic.load    setenvif.load
authn_anon.load       dav_lock.load      mem_cache.conf       speling.load
authn_dbd.load        dbd.load           mem_cache.load       ssl.conf
authn_dbm.load        deflate.conf       mime.conf            ssl.load
authn_default.load    deflate.load       mime.load            status.conf
authn_file.load       dir.conf           mime_magic.conf      status.load
authnz_ldap.load      dir.load           mime_magic.load      substitute.load
authz_dbm.load        disk_cache.conf    negotiation.conf     suexec.load
authz_default.load    disk_cache.load    negotiation.load     unique_id.load
authz_groupfile.load  dump_io.load       proxy_ajp.load       userdir.conf
authz_host.load       env.load           proxy_balancer.conf  userdir.load
authz_owner.load      expires.load       proxy_balancer.load  usertrack.load
authz_user.load       ext_filter.load    proxy.conf           version.load
autoindex.conf        file_cache.load    proxy_connect.load   vhost_alias.load
autoindex.load        filter.load        proxy_ftp.conf
cache.load            headers.load       proxy_ftp.load

Codice: Seleziona tutto

mods-enabled
VUOTA

Codice: Seleziona tutto

enrico@portatile-linux:/etc/apache2/sites-available$ ls
default  default-ssl  mythweb.conf

Codice: Seleziona tutto

sites-enabled
VUOTA
Avatar utente
ReMichael
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 4042
Iscrizione: venerdì 30 novembre 2007, 22:02

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da ReMichael »

enrige ha scritto: Non avevo capito:

Codice: Seleziona tutto

enrico@portatile-linux:/etc/apache2/conf.d$ ls
charset  localized-error-pages  other-vhosts-access-log  security

Codice: Seleziona tutto

enrico@portatile-linux:/etc/apache2/mods-available$ ls
actions.conf          cern_meta.load     ident.load           proxy_http.load
actions.load          cgid.conf          imagemap.load        proxy.load
alias.conf            cgid.load          include.load         proxy_scgi.load
alias.load            cgi.load           info.conf            reqtimeout.conf
asis.load             charset_lite.load  info.load            reqtimeout.load
auth_basic.load       dav_fs.conf        ldap.conf            rewrite.load
auth_digest.load      dav_fs.load        ldap.load            setenvif.conf
authn_alias.load      dav.load           log_forensic.load    setenvif.load
authn_anon.load       dav_lock.load      mem_cache.conf       speling.load
authn_dbd.load        dbd.load           mem_cache.load       ssl.conf
authn_dbm.load        deflate.conf       mime.conf            ssl.load
authn_default.load    deflate.load       mime.load            status.conf
authn_file.load       dir.conf           mime_magic.conf      status.load
authnz_ldap.load      dir.load           mime_magic.load      substitute.load
authz_dbm.load        disk_cache.conf    negotiation.conf     suexec.load
authz_default.load    disk_cache.load    negotiation.load     unique_id.load
authz_groupfile.load  dump_io.load       proxy_ajp.load       userdir.conf
authz_host.load       env.load           proxy_balancer.conf  userdir.load
authz_owner.load      expires.load       proxy_balancer.load  usertrack.load
authz_user.load       ext_filter.load    proxy.conf           version.load
autoindex.conf        file_cache.load    proxy_connect.load   vhost_alias.load
autoindex.load        filter.load        proxy_ftp.conf
cache.load            headers.load       proxy_ftp.load

Codice: Seleziona tutto

mods-enabled
VUOTA

Codice: Seleziona tutto

enrico@portatile-linux:/etc/apache2/sites-available$ ls
default  default-ssl  mythweb.conf

Codice: Seleziona tutto

sites-enabled
VUOTA
ok, il problema è che non ti ha abilitato nessun modulo.. questa è una situazione brutta, soprattutto perché stiamo facendo tutto a mano, ma d'altronde non vedo alternativa. Ti posto la lista dei miei moduli attivi.. quelli che io ti posto e che ti risulta avere nei tuoi mods-available abilitali:

Codice: Seleziona tutto

lrwxrwxrwx 1 root root 28  1 set 22.21 alias.conf -> ../mods-available/alias.conf
lrwxrwxrwx 1 root root 28  1 set 22.21 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root 33  1 set 22.21 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 33  1 set 22.21 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root 36  1 set 22.21 authz_default.load -> ../mods-available/authz_default.load
lrwxrwxrwx 1 root root 38  1 set 22.21 authz_groupfile.load -> ../mods-available/authz_groupfile.load
lrwxrwxrwx 1 root root 33  1 set 22.21 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33  1 set 22.21 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32  1 set 22.21 autoindex.conf -> ../mods-available/autoindex.conf
lrwxrwxrwx 1 root root 32  1 set 22.21 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root 26  1 set 22.26 cgi.load -> ../mods-available/cgi.load
lrwxrwxrwx 1 root root 30  1 set 22.21 deflate.conf -> ../mods-available/deflate.conf
lrwxrwxrwx 1 root root 30  1 set 22.21 deflate.load -> ../mods-available/deflate.load
lrwxrwxrwx 1 root root 26  1 set 22.21 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root 26  1 set 22.21 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root 26  1 set 22.21 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root 27  1 set 22.21 mime.conf -> ../mods-available/mime.conf
lrwxrwxrwx 1 root root 27  1 set 22.21 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root 34  1 set 22.21 negotiation.conf -> ../mods-available/negotiation.conf
lrwxrwxrwx 1 root root 34  1 set 22.21 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root 27  1 set 22.26 php5.conf -> ../mods-available/php5.conf
lrwxrwxrwx 1 root root 27  1 set 22.26 php5.load -> ../mods-available/php5.load
lrwxrwxrwx 1 root root 33  1 set 22.21 reqtimeout.conf -> ../mods-available/reqtimeout.conf
lrwxrwxrwx 1 root root 33  1 set 22.21 reqtimeout.load -> ../mods-available/reqtimeout.load
lrwxrwxrwx 1 root root 30  1 set 22.53 rewrite.load -> ../mods-available/rewrite.load
lrwxrwxrwx 1 root root 27  1 set 23.50 ruby.load -> ../mods-available/ruby.load
lrwxrwxrwx 1 root root 31  1 set 22.21 setenvif.conf -> ../mods-available/setenvif.conf
lrwxrwxrwx 1 root root 31  1 set 22.21 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root 26  8 set 20.56 ssl.conf -> ../mods-available/ssl.conf
lrwxrwxrwx 1 root root 26  8 set 20.56 ssl.load -> ../mods-available/ssl.load
lrwxrwxrwx 1 root root 29  1 set 22.21 status.conf -> ../mods-available/status.conf
lrwxrwxrwx 1 root root 29  1 set 22.21 status.load -> ../mods-available/status.load
per abilitare i moduli:

Codice: Seleziona tutto

sudo a2enmod nomemodulo
enrige
Prode Principiante
Messaggi: 85
Iscrizione: mercoledì 23 agosto 2006, 8:23
Località: Genova

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da enrige »

Forse peggio di quello che crediamo...

Codice: Seleziona tutto

sudo a2enmod alias.conf
[sudo] password for enrico: 
ERROR: Module alias.conf does not exist!
Non me li fà abilitare !  :'(

... e questo è lo stato della directory dei moduli:

Codice: Seleziona tutto

ls -la
totale 372
drwxr-xr-x 2 root root 4096 2011-02-15 18:37 .
drwxr-xr-x 7 root root 4096 2011-02-15 18:39 ..
-rw-r--r-- 1 root root  332 2010-11-18 22:16 actions.conf
-rw-r--r-- 1 root root   66 2010-11-18 22:16 actions.load
-rw-r--r-- 1 root root  815 2010-11-18 22:16 alias.conf
-rw-r--r-- 1 root root   62 2010-11-18 22:16 alias.load
-rw-r--r-- 1 root root   60 2010-11-18 22:16 asis.load
-rw-r--r-- 1 root root   72 2010-11-18 22:16 auth_basic.load
-rw-r--r-- 1 root root   74 2010-11-18 22:16 auth_digest.load
-rw-r--r-- 1 root root   74 2010-11-18 22:16 authn_alias.load
-rw-r--r-- 1 root root   72 2010-11-18 22:16 authn_anon.load
-rw-r--r-- 1 root root   85 2010-11-18 22:16 authn_dbd.load
-rw-r--r-- 1 root root   70 2010-11-18 22:16 authn_dbm.load
-rw-r--r-- 1 root root   78 2010-11-18 22:16 authn_default.load
-rw-r--r-- 1 root root   72 2010-11-18 22:16 authn_file.load
-rw-r--r-- 1 root root   90 2010-11-18 22:16 authnz_ldap.load
-rw-r--r-- 1 root root   70 2010-11-18 22:16 authz_dbm.load
-rw-r--r-- 1 root root   78 2010-11-18 22:16 authz_default.load
-rw-r--r-- 1 root root   82 2010-11-18 22:16 authz_groupfile.load
-rw-r--r-- 1 root root   72 2010-11-18 22:16 authz_host.load
-rw-r--r-- 1 root root   74 2010-11-18 22:16 authz_owner.load
-rw-r--r-- 1 root root   72 2010-11-18 22:16 authz_user.load
-rw-r--r-- 1 root root 3265 2010-11-18 22:16 autoindex.conf
-rw-r--r-- 1 root root   70 2010-11-18 22:16 autoindex.load
-rw-r--r-- 1 root root   62 2010-11-18 22:16 cache.load
-rw-r--r-- 1 root root   70 2010-11-18 22:16 cern_meta.load
-rw-r--r-- 1 root root   69 2010-11-18 22:16 cgid.conf
-rw-r--r-- 1 root root   60 2010-11-18 22:16 cgid.load
-rw-r--r-- 1 root root   58 2010-11-18 22:16 cgi.load
-rw-r--r-- 1 root root   76 2010-11-18 22:16 charset_lite.load
-rw-r--r-- 1 root root   37 2010-11-18 22:16 dav_fs.conf
-rw-r--r-- 1 root root   79 2010-11-18 22:16 dav_fs.load
-rw-r--r-- 1 root root   58 2010-11-18 22:16 dav.load
-rw-r--r-- 1 root root   68 2010-11-18 22:16 dav_lock.load
-rw-r--r-- 1 root root   58 2010-11-18 22:16 dbd.load
-rw-r--r-- 1 root root  438 2010-11-18 22:16 deflate.conf
-rw-r--r-- 1 root root   66 2010-11-18 22:16 deflate.load
-rw-r--r-- 1 root root  122 2010-11-18 22:16 dir.conf
-rw-r--r-- 1 root root   58 2010-11-18 22:16 dir.load
-rw-r--r-- 1 root root  604 2010-11-18 22:16 disk_cache.conf
-rw-r--r-- 1 root root   89 2010-11-18 22:16 disk_cache.load
-rw-r--r-- 1 root root   64 2010-11-18 22:16 dump_io.load
-rw-r--r-- 1 root root   58 2010-11-18 22:16 env.load
-rw-r--r-- 1 root root   66 2010-11-18 22:16 expires.load
-rw-r--r-- 1 root root   72 2010-11-18 22:16 ext_filter.load
-rw-r--r-- 1 root root   89 2010-11-18 22:16 file_cache.load
-rw-r--r-- 1 root root   64 2010-11-18 22:16 filter.load
-rw-r--r-- 1 root root   66 2010-11-18 22:16 headers.load
-rw-r--r-- 1 root root   62 2010-11-18 22:16 ident.load
-rw-r--r-- 1 root root   68 2010-11-18 22:16 imagemap.load
-rw-r--r-- 1 root root   66 2010-11-18 22:16 include.load
-rw-r--r-- 1 root root  408 2010-11-18 22:16 info.conf
-rw-r--r-- 1 root root   60 2010-11-18 22:16 info.load
-rw-r--r-- 1 root root  176 2010-11-18 22:16 ldap.conf
-rw-r--r-- 1 root root   60 2010-11-18 22:16 ldap.load
-rw-r--r-- 1 root root   76 2010-11-18 22:16 log_forensic.load
-rw-r--r-- 1 root root  185 2010-11-18 22:16 mem_cache.conf
-rw-r--r-- 1 root root   87 2010-11-18 22:16 mem_cache.load
-rw-r--r-- 1 root root 7411 2010-11-18 22:16 mime.conf
-rw-r--r-- 1 root root   60 2010-11-18 22:16 mime.load
-rw-r--r-- 1 root root   81 2010-11-18 22:16 mime_magic.conf
-rw-r--r-- 1 root root   72 2010-11-18 22:16 mime_magic.load
-rw-r--r-- 1 root root  666 2010-11-18 22:16 negotiation.conf
-rw-r--r-- 1 root root   74 2010-11-18 22:16 negotiation.load
-rw-r--r-- 1 root root   87 2010-11-18 22:16 proxy_ajp.load
-rw-r--r-- 1 root root  355 2010-11-18 22:16 proxy_balancer.conf
-rw-r--r-- 1 root root   97 2010-11-18 22:16 proxy_balancer.load
-rw-r--r-- 1 root root  803 2010-11-18 22:16 proxy.conf
-rw-r--r-- 1 root root   95 2010-11-18 22:16 proxy_connect.load
-rw-r--r-- 1 root root  141 2010-11-18 22:16 proxy_ftp.conf
-rw-r--r-- 1 root root   87 2010-11-18 22:16 proxy_ftp.load
-rw-r--r-- 1 root root   89 2010-11-18 22:16 proxy_http.load
-rw-r--r-- 1 root root   62 2010-11-18 22:16 proxy.load
-rw-r--r-- 1 root root   89 2010-11-18 22:16 proxy_scgi.load
-rw-r--r-- 1 root root  429 2010-11-18 22:16 reqtimeout.conf
-rw-r--r-- 1 root root   72 2010-11-18 22:16 reqtimeout.load
-rw-r--r-- 1 root root   66 2010-11-18 22:16 rewrite.load
-rw-r--r-- 1 root root 1211 2010-11-18 22:16 setenvif.conf
-rw-r--r-- 1 root root   68 2010-11-18 22:16 setenvif.load
-rw-r--r-- 1 root root   66 2010-11-18 22:16 speling.load
-rw-r--r-- 1 root root 2750 2010-11-18 22:16 ssl.conf
-rw-r--r-- 1 root root   58 2010-11-18 22:16 ssl.load
-rw-r--r-- 1 root root  753 2010-11-18 22:16 status.conf
-rw-r--r-- 1 root root   64 2010-11-18 22:16 status.load
-rw-r--r-- 1 root root   72 2010-11-18 22:16 substitute.load
-rw-r--r-- 1 root root   64 2010-11-18 22:16 suexec.load
-rw-r--r-- 1 root root   70 2010-11-18 22:16 unique_id.load
-rw-r--r-- 1 root root  604 2010-11-18 22:16 userdir.conf
-rw-r--r-- 1 root root   66 2010-11-18 22:16 userdir.load
-rw-r--r-- 1 root root   70 2010-11-18 22:16 usertrack.load
-rw-r--r-- 1 root root   66 2010-11-18 22:16 version.load
-rw-r--r-- 1 root root   74 2010-11-18 22:16 vhost_alias.load
Ultima modifica di enrige il martedì 15 febbraio 2011, 21:28, modificato 1 volta in totale.
Avatar utente
ReMichael
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 4042
Iscrizione: venerdì 30 novembre 2007, 22:02

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da ReMichael »

enrige ha scritto: Forse peggio di quello che crediamo...

Codice: Seleziona tutto

sudo a2enmod alias.conf
[sudo] password for enrico: 
ERROR: Module alias.conf does not exist!
metti solo il nome senza estensione, quindi solo alias in questo caso
enrige
Prode Principiante
Messaggi: 85
Iscrizione: mercoledì 23 agosto 2006, 8:23
Località: Genova

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da enrige »

Ok, ho abilitato tutto, ma non và ancora:

Codice: Seleziona tutto

enrico@portatile-linux:/etc/apache2/mods-enabled$ sudo service apache2 start
 * Starting web server apache2                                                  [Tue Feb 15 21:51:23 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
                                                                         [fail]
p.s.: ovviamente ho fatto stop/start!
Ultima modifica di enrige il martedì 15 febbraio 2011, 21:53, modificato 1 volta in totale.
Avatar utente
ReMichael
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 4042
Iscrizione: venerdì 30 novembre 2007, 22:02

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da ReMichael »

enrige ha scritto: Ok, ho abilitato tutto, ma non và ancora:

Codice: Seleziona tutto

enrico@portatile-linux:/etc/apache2/mods-enabled$ sudo service apache2 start
 * Starting web server apache2                                                  [Tue Feb 15 21:51:23 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
                                                                         [fail]
p.s.: ovviamente ho fatto stop/start!
c'è già stato un passo avanti  :)
ora devi abilitare almeno il site di default, perché non hai virtualhost attivi al momento. quindi:

Codice: Seleziona tutto

sudo a2ensite default
poi in apache2.conf setta la direttiva servername:

Codice: Seleziona tutto

ServerName 127.0.0.1
se non c'è aggiungila.
enrige
Prode Principiante
Messaggi: 85
Iscrizione: mercoledì 23 agosto 2006, 8:23
Località: Genova

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da enrige »

ok, apache è partito ed ho aggiunto il servername, ma adesso phpmyadmin e wordpress mi danno un messaggio come se dovessi scaricare un file.

http://localhost/phpmyadmin/

Apertura di ... (messagebox)

Sarà un'impostazione da settare ? ...
Avatar utente
ReMichael
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 4042
Iscrizione: venerdì 30 novembre 2007, 22:02

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da ReMichael »

enrige ha scritto: ok, apache è partito ed ho aggiunto il servername, ma adesso phpmyadmin e wordpress mi danno un messaggio come se dovessi scaricare un file.

http://localhost/phpmyadmin/

Apertura di ... (messagebox)

Sarà un'impostazione da settare ? ...
manca (oppure non vede) il modulo di php per apache.. controlla che sia abilitato
enrige
Prode Principiante
Messaggi: 85
Iscrizione: mercoledì 23 agosto 2006, 8:23
Località: Genova

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da enrige »

Cavolo, ho provato ad installare php5, mi dice tutto ok, ma quando provo ad abilitare il modulo:

Codice: Seleziona tutto

enrico@portatile-linux:/etc/apache2/mods-available$ sudo a2enmod php5
ERROR: Module php5 does not exist!
Ed infatti:

Codice: Seleziona tutto

enrico@portatile-linux:/etc/apache2/mods-available$ ls | grep php5
enrico@portatile-linux:/etc/apache2/mods-available$ 
Che fare?
Avatar utente
ReMichael
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 4042
Iscrizione: venerdì 30 novembre 2007, 22:02

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da ReMichael »

enrige ha scritto: Cavolo, ho provato ad installare php5, mi dice tutto ok, ma quando provo ad abilitare il modulo:

Codice: Seleziona tutto

enrico@portatile-linux:/etc/apache2/mods-available$ sudo a2enmod php5
ERROR: Module php5 does not exist!
Ed infatti:

Codice: Seleziona tutto

enrico@portatile-linux:/etc/apache2/mods-available$ ls | grep php5
enrico@portatile-linux:/etc/apache2/mods-available$ 
Che fare?
mi sembrava che l'avevi già installato.. prova a rimetterlo:

Codice: Seleziona tutto

sudo apt-get install libapache2-mod-php5
enrige
Prode Principiante
Messaggi: 85
Iscrizione: mercoledì 23 agosto 2006, 8:23
Località: Genova

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da enrige »

OK, abilitato:

Codice: Seleziona tutto

sudo a2enmod php5
Ma dopo lo stop/start di apache phpmyadmin si comporta sempre allo stesso modo!
Avatar utente
ReMichael
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 4042
Iscrizione: venerdì 30 novembre 2007, 22:02

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da ReMichael »

enrige ha scritto: OK, abilitato:

Codice: Seleziona tutto

sudo a2enmod php5
Ma dopo lo stop/start di apache phpmyadmin si comporta sempre allo stesso modo!
controlla:

Codice: Seleziona tutto

ls -l /etc/apache2/mods-available/php5*
ls -l /etc/apache2/mods-enabled/php5*
enrige
Prode Principiante
Messaggi: 85
Iscrizione: mercoledì 23 agosto 2006, 8:23
Località: Genova

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da enrige »

Il modulo adesso c'e' e si e' avviato, ma con localhost non cambia nulla ... sto pensando di re-installare la macchina.

Almeno questa discussione mi ha aiutato a farmi un'idea piu' chiara di apache & C.  ???
Avatar utente
ReMichael
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 4042
Iscrizione: venerdì 30 novembre 2007, 22:02

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da ReMichael »

enrige ha scritto: Il modulo adesso c'e' e si e' avviato, ma con localhost non cambia nulla ... sto pensando di re-installare la macchina.

Almeno questa discussione mi ha aiutato a farmi un'idea piu' chiara di apache & C.  ???
ti chiede ancora di scaricare il file? puoi provare a riconfigurare il modulo:

Codice: Seleziona tutto

sudo dpkg-reconfigure libapache2-mod-php5
Nel caso vuoi procedere invece alla reinstallazione ricordati di non eliminare mai manualmente le cartelle di configurazione in /etc.

Se vuoi togliere un programma mantenendo la sua configurazione:

Codice: Seleziona tutto

sudo apt-get remove programma
Se vuoi togliere anche la configurazione:

Codice: Seleziona tutto

sudo apt-get purge programma
enrige
Prode Principiante
Messaggi: 85
Iscrizione: mercoledì 23 agosto 2006, 8:23
Località: Genova

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da enrige »

Questa sera provero' a riconfigurare il modulo. Se anche questo non funzione re-installo!
enrige
Prode Principiante
Messaggi: 85
Iscrizione: mercoledì 23 agosto 2006, 8:23
Località: Genova

Re: AIUTO con LAMP e mod rewrite su Ubuntu 10.10

Messaggio da enrige »

Ok, ha funzionato... menomale !  (good)

Adesso non mi resta che configurare il mod rewrite in modo da far funzionare i permalink di wordpress.

Qualcuno sà come si fà?
Scrivi risposta

Ritorna a “Ubuntu su server”

Chi c’è in linea

Visualizzano questa sezione: Majestic-12 [Bot] e 3 ospiti