[l-ubuntu-ve] Problemas con Apache2, PHP y MySQL en Ubuntu

Luciano Mella lucianomella en gmail.com
Mar Dic 4 03:07:23 GMT 2007


Santiago gracias por tu respuesta, en realidad utilizo es PHP4  coloque esta
instrucción
:~$ dpkg -l| grep libapache2-mod-php4

y me dio este resultado:

ii  libapache2-mod-php4                    4.4.2-1build1 server-side,
HTML-embedded scripting language (apache 2.

luego:
:~$ sudo a2enmod php4

y arrojo este otro resultado:
This module is already enabled!

 Hasta ahora creo que voy bien.

pero cuando hice esto:
:~$ sudo /etc/init.d/apache2 restart

me dio este resultado:
 * Forcing reload of apache 2.0 web server... [Mon Dec 03 22:57:31 2007]
[error] (EAI 2)Name or service not known: Cannot resolve host name :80* ---
ignoring!
[Mon Dec 03 22:57:31 2007] [error] (EAI 2)Name or service not known: Cannot
resolve host name :80* --- ignoring!
apache2: Could not determine the server's fully qualified domain name, using
127.0.0.1 for ServerName
[Mon Dec 03 22:57:33 2007] [error] (EAI 2)Name or service not known: Cannot
resolve host name :80* --- ignoring!
[Mon Dec 03 22:57:34 2007] [error] (EAI 2)Name or service not known: Cannot
resolve host name :80* --- ignoring!
apache2: Could not determine the server's fully qualified domain name, using
127.0.0.1 for ServerName

[ ok ]

Este es el archivo default que se encuentra en /etc/apache2/sites-available
:

NameVirtualHost :80*
<VirtualHost :80*>
    ServerName localhost

    DocumentRoot /var/www
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
        # Uncomment this directive is you want to see apache2's
        # default start page (in /apache2-default) when you go to /
        #RedirectMatch ^/$ /apache2-default/
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog /var/log/apache2/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/access.log combined
    ServerSignature On

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>


Más información sobre la lista de distribución ubuntu-ve