[Catalyst] Change of server
Rajesh Kumar Mallah
mallah at redgrape.tech
Fri Mar 3 12:30:04 GMT 2017
Dear Andres ,
in my systemd based system it is possible to start apache2 from root
prompt like below:
# ( . /etc/apache2/envvars && apache2 -f /etc/apache2/apache2.conf
-e Debug -X )
and it does spits out the messages to terminal. After stopping the apache2
using systemctl try to start using the command above.
the above command executes in a subshell , first part populates
env variable , -f is path to main config -e sets level to debug
and -X prevents from detaching from terminal.
regds
mallah.
>
>
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local
> Address          Foreign
> Address       Â
> State      PID/Program name
> tcp       0     0
> 127.0.0.1:3306Â Â Â Â Â Â Â Â Â
> 0.0.0.0:*Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> LISTEN     1134/mysqld   Â
> tcp       0     0
> 0.0.0.0:22Â Â Â Â Â Â Â Â Â Â Â Â Â
> 0.0.0.0:*Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> LISTEN     1112/sshd     Â
> tcp6Â Â Â Â Â Â 0Â Â Â Â Â 0
> :::22Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> :::*Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> LISTENÂ Â Â Â Â 1112/sshdÂ
>
> ps aux|grep apache
> root     1738 0.0 0.0 14228 1012
> pts/0Â Â Â S+Â Â 09:30Â Â 0:00 grep --color=auto apache
>
> /dev/mapper/iac--vg-root 5.4G 2.2G 3.0G 43% /
>
> The
> directories you mention, were NFS mounted on the system at the old
server, new server
> everything is local...
>
> here's the new config:
>
> Â Â Â Â Â Â Â PerlSwitches -I /var/www/web/lib
> Â Â Â Â Â Â Â PerlModule IAC
>
> <VirtualHost
> *:80>
> Â Â Â Â Â Â Â ServerAdmin andres at chandia.net
> Â Â Â Â Â Â Â ServerName local.iac
> Â Â Â Â Â Â Â ServerAlias local.iac
> Â Â Â Â Â Â Â DocumentRoot /var/www/web/root
> Â Â Â Â Â Â Â <Perl>
>
> Â Â Â Â Â Â Â use lib qw( /var/www/web/lib );
>
> Â Â Â Â Â Â Â </Perl>
> Â Â Â Â Â Â Â <Location />
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> SetHandler         modperl
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> PerlResponseHandler IAC
> Â Â Â Â Â Â Â </Location>
>
> Â Â Â Â Â Â Â <Location "/static">
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> SetHandler none
> Â Â Â Â Â Â Â </Location>
>
> Â Â Â Â Â Â Â Alias /iac/stats_tasks/
> "/srv/iac_data/stats-tasks"
> Â Â Â Â Â Â Â
> <Location "/iac/stats_tasks/">
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> SetHandler none
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> Order allow,deny
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> Allow from all
> Â Â Â </Location>
>
> Â Â Â Â Â Â Â Alias /iac/txt_output/
> "/srv/iac_data/txt_output"
> Â Â Â Â Â Â Â
> <Location "/iac/txt_output/">
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> SetHandler none
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> Order allow,deny
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
> Allow from all
> Â Â Â </Location>
>
> Â Â Â Â Â Â Â CustomLog /var/log/apache2/local.iac.access.log
> combined
> Â Â Â Â Â Â Â ErrorLog
> /var/log/apache2/local.iac.error.log
> </VirtualHost>
>
>
> Thanks
> again....
>
>
>
> El Vie, 3 de Marzo de 2017, 9:05, Juan Miguel Paredes
> escribió:
>
>
>
> On Fri, Mar 3, 2017 at 7:35 AM, "Andrés
> ChandÃÂa" andres at chandia.net> wrote:
> Thanks for your concern, I have tried that also:
>
> systemctl
> status apache2
>
>  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 Fri 2017-03-03 07:31:59 CET; 4s
ago
>     Docs: man:systemd-sysv-generator(8)
>  Process: 1187 ExecStart=/etc/init.d/apache2 start (code=exited,
status=1/FAILURE)
>
> Mar 03 07:27:02 iac apache2[1187]: |
> /results/stats_query/...           |
>
/results/stats_query               ÂÂ
|
> Mar 03 07:27:02 iac apache2[1187]: |
> /results/stats_results/...        ÂÂ
> |
>
/results/stats_results             ÂÂ
|
> Mar 03 07:27:02 iac apache2[1187]:
>
'-------------------------------------+--------------------------------------'
Mar 03 07:27:02 iac apache2[1187]: [info] IAC powered by Catalyst
5.90103 Mar 03
> 07:31:59 iac apache2[1187]: *
> Mar 03 07:31:59 iac
> apache2[1187]: * The apache2 instance did not start within 20
seconds. Please
> read the log file
> Mar 03 07:31:59 iac systemd[1]: apache2.service: Control process exited,
code=exited status=1
> Mar 03 07:31:59 iac systemd[1]: Failed to start LSB: Apache2
> web server.
> Mar 03 07:31:59 iac systemd[1]: apache2.service: Unit entered failed
state.
> Mar 03 07:31:59 iac systemd[1]: apache2.service: Failed with result
'exit-code'.
>
>
>
>
>
> Are other stale processes from your application and/or web server still
running when you
> try to start Apache2? This kind of "generic" error messages are usually
reflecting
> things like ports already opened, not enough disk space, wrong
permissions and so
> on. Try to check the basics and see if something else stands
out. It
> appears that you're mounting several (perhaps remote) directories for
your environment, maybe
> try to also check network connectivity / disk space / log files on those
backends too.
>
>
>
>
>
>
> _______________________
>
>             andrés
> chandÃa
>
> NMT |
> Dungupeyem | Corlexim
>
> administrador de:
> Parles.upf | Amind
> terapia | Mapuche koyaktu | Nocando |
> mail: ONG Mapuche koyaktu | Psicoaching |
> P No imprima innecesariamente. ¡Cuide el medio ambiente!
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
More information about the Catalyst
mailing list