[Ubuntu-cat] Instalació LAMP en Ubuntu 16.04
Miki
mikcat a gmail.com
dim ago 29 11:01:51 UTC 2017
ok, doncs per una banda a veure què no li mola:
sudo apachectl configtest
i per l'altre passa el fitxer /var/log/apache2/error.log per si diu alguna
cosa més
2017-08-29 12:56 GMT+02:00 Joan Carles <palimsesto a gmail.com>:
> Hola!
> Doncs diuen això:
>
> ---------------
> palimsesto a palimsesto-GA-MA770-UD3:~$ systemctl status apache2.service
> ● apache2.service - LSB: Apache2 web server
> Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
> Drop-In: /lib/systemd/system/apache2.service.d
> └─apache2-systemd.conf
> Active: failed (Result: exit-code) since dt 2017-08-29 12:38:40 CEST;
> 11min ago
> Docs: man:systemd-sysv-generator(8)
> Process: 20068 ExecStop=/etc/init.d/apache2 stop (code=exited,
> status=0/SUCCESS)
> Process: 20092 ExecStart=/etc/init.d/apache2 start (code=exited,
> status=1/FAILURE)
>
> ago 29 12:38:40 palimsesto-GA-MA770-UD3 apache2[20092]: * The apache2
> configtest failed.
> ago 29 12:38:40 palimsesto-GA-MA770-UD3 apache2[20092]: Output of config
> test was:
> ago 29 12:38:40 palimsesto-GA-MA770-UD3 apache2[20092]: [Tue Aug 29
> 12:38:40.335936 2017] [:crit] [pid 2010
> ago 29 12:38:40 palimsesto-GA-MA770-UD3 apache2[20092]: AH00013:
> Pre-configuration failed
> ago 29 12:38:40 palimsesto-GA-MA770-UD3 apache2[20092]: Action
> 'configtest' failed.
> ago 29 12:38:40 palimsesto-GA-MA770-UD3 apache2[20092]: The Apache error
> log may have more information.
> ago 29 12:38:40 palimsesto-GA-MA770-UD3 systemd[1]: apache2.service:
> Control process exited, code=exited st
> ago 29 12:38:40 palimsesto-GA-MA770-UD3 systemd[1]: Failed to start LSB:
> Apache2 web server.
> ago 29 12:38:40 palimsesto-GA-MA770-UD3 systemd[1]: apache2.service: Unit
> entered failed state.
> ago 29 12:38:40 palimsesto-GA-MA770-UD3 systemd[1]: apache2.service:
> Failed with result 'exit-code'.
> lines 1-19/19 (END)
> reset: enabled)
>
>
> 8-29 12:38:40 CEST; 11min ago
>
> code=exited, status=0/SUCCESS)
> (code=exited, status=1/FAILURE)
>
> ]: * The apache2 configtest failed.
> ]: Output of config test was:
> ]: [Tue Aug 29 12:38:40.335936 2017] [:crit] [pid 20104:tid
> 140502137067392] Apache is running a t
> ]: AH00013: Pre-configuration failed
> ]: Action 'configtest' failed.
> ]: The Apache error log may have more information.
> pache2.service: Control process exited, code=exited status=1
> ailed to start LSB: Apache2 web server.
> pache2.service: Unit entered failed state.
> pache2.service: Failed with result 'exit-code'.
>
>
> -------------
>
> i
>
> -----
> palimsesto a palimsesto-GA-MA770-UD3:~$ sudo journalctl -xe
> [sudo] contrasenya per a palimsesto:
> ago 29 12:39:02 palimsesto-GA-MA770-UD3 CRON[20120]:
> pam_unix(cron:session): ses
> ago 29 12:46:52 palimsesto-GA-MA770-UD3 dbus[943]: [system] Activating via
> syste
> ago 29 12:46:52 palimsesto-GA-MA770-UD3 dbus[943]: [system] Activating via
> syste
> ago 29 12:46:52 palimsesto-GA-MA770-UD3 systemd[1]: Starting Hostname
> Service...
> -- Subject: Unit systemd-hostnamed.service has begun start-up
> -- Defined-By: systemd
> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
> --
> -- Unit systemd-hostnamed.service has begun starting up.
> ago 29 12:46:52 palimsesto-GA-MA770-UD3 dbus[943]: [system] Successfully
> activat
> ago 29 12:46:52 palimsesto-GA-MA770-UD3 systemd[1]: Started Hostname
> Service.
> -- Subject: Unit systemd-hostnamed.service has finished start-up
> -- Defined-By: systemd
> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
> --
> -- Unit systemd-hostnamed.service has finished starting up.
> --
> -- The start-up result is done.
> ago 29 12:47:17 palimsesto-GA-MA770-UD3 dbus[943]: [system] Failed to
> activate s
> ago 29 12:47:52 palimsesto-GA-MA770-UD3 dbus[943]: [system] Activating via
> syste
> ago 29 12:48:17 palimsesto-GA-MA770-UD3 dbus[943]: [system] Failed to
> activate s
> ago 29 12:55:51 palimsesto-GA-MA770-UD3 sudo[20686]: palimsesto :
> TTY=pts/1 ; PW
> ago 29 12:55:51 palimsesto-GA-MA770-UD3 sudo[20686]:
> pam_unix(sudo:session): ses
> lines 1544-1566/1566 (END)
> ago 29 12:39:02 palimsesto-GA-MA770-UD3 CRON[20120]:
> pam_unix(cron:session): session closed for user root
> ago 29 12:46:52 palimsesto-GA-MA770-UD3 dbus[943]: [system] Activating via
> systemd: service name='org.bluez' un
> ago 29 12:46:52 palimsesto-GA-MA770-UD3 dbus[943]: [system] Activating via
> systemd: service name='org.freedeskt
> ago 29 12:46:52 palimsesto-GA-MA770-UD3 systemd[1]: Starting Hostname
> Service...
> -- Subject: Unit systemd-hostnamed.service has begun start-up
> -- Defined-By: systemd
> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
> --
> -- Unit systemd-hostnamed.service has begun starting up.
> ago 29 12:46:52 palimsesto-GA-MA770-UD3 dbus[943]: [system] Successfully
> activated service 'org.freedesktop.hos
> ago 29 12:46:52 palimsesto-GA-MA770-UD3 systemd[1]: Started Hostname
> Service.
> -- Subject: Unit systemd-hostnamed.service has finished start-up
> -- Defined-By: systemd
> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
> --
> -- Unit systemd-hostnamed.service has finished starting up.
> --
> -- The start-up result is done.
> ago 29 12:47:17 palimsesto-GA-MA770-UD3 dbus[943]: [system] Failed to
> activate service 'org.bluez': timed out
> ago 29 12:47:52 palimsesto-GA-MA770-UD3 dbus[943]: [system] Activating via
> systemd: service name='org.bluez' un
> ago 29 12:48:17 palimsesto-GA-MA770-UD3 dbus[943]: [system] Failed to
> activate service 'org.bluez': timed out
> ago 29 12:55:51 palimsesto-GA-MA770-UD3 sudo[20686]: palimsesto :
> TTY=pts/1 ; PWD=/home/palimsesto ; USER=root
> ago 29 12:55:51 palimsesto-GA-MA770-UD3 sudo[20686]:
> pam_unix(sudo:session): session opened for user root by (u
> ~
> ~
>
> =-O
> -----
>
>
> El 29/08/17 a les 12:49, Miki ha escrit:
>
> See "systemctl status apache2.service" and "journalctl -xe" for details.
>
> què diuen ?
> sudo systemctl status apache2.service
> sudo journalctl -xe
>
> El dia 29 d’agost de 2017 a les 12:39, Joan Carles <palimsesto a gmail.com>
> ha escrit:
>
>> El 29/08/17 a les 12:20, Miki ha escrit:
>>
>> Te pinta que et falti habilitar el modul d'apache del php
>>
>> sudo a2enmod php7.0
>>
>> *php7.0 o la versió que sigui...
>>
>> sudo systemctl restart apache2
>>
>>
>> Hola!
>> Doncs ho faig però:....
>>
>> palimsesto a palimsesto-GA-MA770-UD3:~$ sudo sudo a2enmod php7.0
>> [sudo] contrasenya per a palimsesto:
>> Considering conflict php5 for php7.0:
>> Enabling module php7.0.
>> To activate the new configuration, you need to run:
>> service apache2 restart
>> palimsesto a palimsesto-GA-MA770-UD3:~$ service apache2 restart
>> Failed to restart apache2.service: La connexió ha expirat
>> See system logs and 'systemctl status apache2.service' for details.
>> palimsesto a palimsesto-GA-MA770-UD3:~$ sudo systemctl restart apache2
>> Job for apache2.service failed because the control process exited with
>> error code. See "systemctl status apache2.service" and "journalctl -xe" for
>> details.
>> palimsesto a palimsesto-GA-MA770-UD3:~$
>>
>> --
>>
>> Salutacions,
>>
>> Joan Carles
>> Usuari GNU/Linux #324197#http://counter.li.org/
>>
>>
>> --
>> Ubuntu-cat mailing list
>> Ubuntu-cat a lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>> an/listinfo/ubuntu-cat
>>
>>
>
>
>
> --
> Salutacions,
>
> Joan Carles
> Usuari GNU/Linux #324197#http://counter.li.org/
>
>
> --
> Ubuntu-cat mailing list
> Ubuntu-cat a lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/ubuntu-cat
>
>
-------------- part següent --------------
Un document HTML ha estat eliminat...
URL: <https://lists.ubuntu.com/archives/ubuntu-cat/attachments/20170829/5b54dc31/attachment-0001.html>
Més informació sobre la llista de correu Ubuntu-cat