[Ubuntu-cat] Instalació LAMP en Ubuntu 16.04
Joan Carles
palimsesto a gmail.com
dim ago 29 11:25:38 UTC 2017
Hola!
Ho pose per carrers diferents....
El 29/08/17 a les 13:01, Miki ha escrit:
> ok, doncs per una banda a veure què no li mola:
>
> sudo apachectl configtest
palimsesto a palimsesto-GA-MA770-UD3:~$ sudo apachectl configtest
[sudo] contrasenya per a palimsesto:
[Tue Aug 29 13:22:38.832608 2017] [:crit] [pid 21042:tid
140413528250240] Apache is running a threaded MPM, but your PHP Module
is not compiled to be threadsafe. You need to recompile PHP.
AH00013: Pre-configuration failed
Action 'configtest' failed.
The Apache error log may have more information.
palimsesto a palimsesto-GA-MA770-UD3:~$
>
> i per l'altre passa el fitxer /var/log/apache2/error.log per si diu
> alguna cosa més
i tinc dos fitxers error.log
[Tue Aug 29 07:46:17.237750 2017] [mpm_event:notice] [pid 1364:tid
139756143343488] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming
normal operations
[Tue Aug 29 07:46:17.237777 2017] [core:notice] [pid 1364:tid
139756143343488] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 29 10:35:33.230139 2017] [mpm_event:notice] [pid 1364:tid
139756143343488] AH00491: caught SIGTERM, shutting down
[Tue Aug 29 10:35:34.361526 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming
normal operations
[Tue Aug 29 10:35:34.361573 2017] [core:notice] [pid 12167:tid
140068990490496] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 29 12:03:48.958787 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00493: SIGUSR1 received. Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully
qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
globally to suppress this message
[Tue Aug 29 12:03:48.980377 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming
normal operations
[Tue Aug 29 12:03:48.980388 2017] [core:notice] [pid 12167:tid
140068990490496] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 29 12:03:49.380034 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00493: SIGUSR1 received. Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully
qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
globally to suppress this message
[Tue Aug 29 12:03:49.389733 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming
normal operations
[Tue Aug 29 12:03:49.389745 2017] [core:notice] [pid 12167:tid
140068990490496] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 29 12:03:50.680122 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00493: SIGUSR1 received. Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully
qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
globally to suppress this message
[Tue Aug 29 12:03:50.691717 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming
normal operations
[Tue Aug 29 12:03:50.691731 2017] [core:notice] [pid 12167:tid
140068990490496] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 29 12:25:44.044292 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00493: SIGUSR1 received. Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully
qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
globally to suppress this message
[Tue Aug 29 12:25:44.052996 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming
normal operations
[Tue Aug 29 12:25:44.053008 2017] [core:notice] [pid 12167:tid
140068990490496] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 29 12:25:44.466872 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00493: SIGUSR1 received. Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully
qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
globally to suppress this message
[Tue Aug 29 12:25:44.499413 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming
normal operations
[Tue Aug 29 12:25:44.499429 2017] [core:notice] [pid 12167:tid
140068990490496] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 29 12:38:40.263573 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00491: caught SIGTERM, shutting down
i ara error.log1.
[Tue Aug 29 07:46:17.237750 2017] [mpm_event:notice] [pid 1364:tid
139756143343488] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming
normal operations
[Tue Aug 29 07:46:17.237777 2017] [core:notice] [pid 1364:tid
139756143343488] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 29 10:35:33.230139 2017] [mpm_event:notice] [pid 1364:tid
139756143343488] AH00491: caught SIGTERM, shutting down
[Tue Aug 29 10:35:34.361526 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming
normal operations
[Tue Aug 29 10:35:34.361573 2017] [core:notice] [pid 12167:tid
140068990490496] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 29 12:03:48.958787 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00493: SIGUSR1 received. Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully
qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
globally to suppress this message
[Tue Aug 29 12:03:48.980377 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming
normal operations
[Tue Aug 29 12:03:48.980388 2017] [core:notice] [pid 12167:tid
140068990490496] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 29 12:03:49.380034 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00493: SIGUSR1 received. Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully
qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
globally to suppress this message
[Tue Aug 29 12:03:49.389733 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming
normal operations
[Tue Aug 29 12:03:49.389745 2017] [core:notice] [pid 12167:tid
140068990490496] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 29 12:03:50.680122 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00493: SIGUSR1 received. Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully
qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
globally to suppress this message
[Tue Aug 29 12:03:50.691717 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming
normal operations
[Tue Aug 29 12:03:50.691731 2017] [core:notice] [pid 12167:tid
140068990490496] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 29 12:25:44.044292 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00493: SIGUSR1 received. Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully
qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
globally to suppress this message
[Tue Aug 29 12:25:44.052996 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming
normal operations
[Tue Aug 29 12:25:44.053008 2017] [core:notice] [pid 12167:tid
140068990490496] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 29 12:25:44.466872 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00493: SIGUSR1 received. Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully
qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
globally to suppress this message
[Tue Aug 29 12:25:44.499413 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming
normal operations
[Tue Aug 29 12:25:44.499429 2017] [core:notice] [pid 12167:tid
140068990490496] AH00094: Command line: '/usr/sbin/apache2'
[Tue Aug 29 12:38:40.263573 2017] [mpm_event:notice] [pid 12167:tid
140068990490496] AH00491: caught SIGTERM, shutting down
A veure...
>
> 2017-08-29 12:56 GMT+02:00 Joan Carles <palimsesto a gmail.com
> <mailto: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
> <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
> <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
> <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
> <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 <mailto: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 <mailto:Ubuntu-cat a lists.ubuntu.com>
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-cat
>> <https://lists.ubuntu.com/mailman/listinfo/ubuntu-cat>
>>
>>
>>
>>
>
> --
> Salutacions,
>
> Joan Carles
> Usuari GNU/Linux #324197#
> http://counter.li.org/
>
>
> --
> Ubuntu-cat mailing list
> Ubuntu-cat a lists.ubuntu.com <mailto:Ubuntu-cat a lists.ubuntu.com>
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-cat
> <https://lists.ubuntu.com/mailman/listinfo/ubuntu-cat>
>
>
>
>
--
Salutacions,
Joan Carles
Usuari GNU/Linux #324197#
http://counter.li.org/
-------------- part següent --------------
Un document HTML ha estat eliminat...
URL: <https://lists.ubuntu.com/archives/ubuntu-cat/attachments/20170829/eca07008/attachment-0001.html>
Més informació sobre la llista de correu Ubuntu-cat