Re: [Catalyst] Change of server

2017-03-03 Thread Andrés Chandía
root@iac:/home/andres# a2dissite local.iac.conf (the configuration with Catalyst) Site local.iac disabled. To activate the new configuration, you need to run:   service apache2 reload root@iac:/home/andres# /etc/init.d/apache2 restart [ ok ] Restarting apache2 (via systemctl): apache2.service.

Re: [Catalyst] Change of server

2017-03-03 Thread Hector Azpurua
Did the basic Apache config with the 'Hello world' work? That is, without all the perl configs? 2017-03-03 12:38 GMT-03:00 "Andrés Chandía" : > Unfortunately not, > root@iac:/home/andres# netstat -lnp > Active Internet > connections (only servers) > Proto Recv-Q Send-Q

Re: [Catalyst] Change of server

2017-03-03 Thread Andrés Chandía
Unfortunately not, root@iac:/home/andres# netstat -lnp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1148/mysqld tcp

Re: [Catalyst] Change of server

2017-03-03 Thread Rajesh Kumar Mallah
I assume the command keeps running in that state and while it is doing so , can you check if apache2 listening on configured port (80) and if it is so does , is it serving the app in expected manner ? regds mallah. ___ List:

Re: [Catalyst] Change of server

2017-03-03 Thread Andrés Chandía
I modified a little bit your command, I put the semicolon at the end and now there is no error message: root@iac:/home/andres# ( . /etc/apache2/envvars && apache2 -f /etc/apache2/apache2.conf -e Debug -X ; ) [Fri Mar 03 15:02:48.333291 2017] [so:debug] [pid 16801] mod_so.c(266):

Re: [Catalyst] Change of server

2017-03-03 Thread Rajesh Kumar Mallah
any idea why the error below ? -e: command not found ___ List: Catalyst@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

Re: [Catalyst] Change of server

2017-03-03 Thread Andrés Chandía
Already done, it made no difference thanks Its not typo , the reason is that the env variable ${APACHE_LOCK_DIR} is not set , . /etc/apache2/envvars takes care of that part. ___             andrés chandía NMT | Dungupeyem | Corlexim administrador

Re: [Catalyst] transforming empty values in request to perl's undef

2017-03-03 Thread Rajesh Kumar Mallah
Thanks, It helps. regds Mallah. > It's just a package and I have in make_schema_at.pl to apply the > components > that I want to use: > > make_schema_at( > "My::Schema::${class_name}", > { > exclude => qr/_\d+$/, > dump_directory=> "$Bin/../lib", >

Re: [Catalyst] transforming empty values in request to perl's undef

2017-03-03 Thread Dimitar Petrov
It's just a package and I have in make_schema_at.pl to apply the components that I want to use: make_schema_at( "My::Schema::${class_name}", { exclude => qr/_\d+$/, dump_directory=> "$Bin/../lib", components=> [ '+My::TraitFor::Result::ForceNULL',

Re: [Catalyst] transforming empty values in request to perl's undef

2017-03-03 Thread Rajesh Kumar Mallah
Thanks for that , it looks elegant . Could you please send some pointer to docs for Traits approach. regds mallah. > Not sure if that's the best way to do it or if it's a good approach, but I > have a trait which is applied to all result classes. > > TraitFor::Result::ForceNULL; > use

Re: [Catalyst] Change of server

2017-03-03 Thread Rajesh Kumar Mallah
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

Re: [Catalyst] transforming empty values in request to perl's undef

2017-03-03 Thread Dimitar Petrov
Not sure if that's the best way to do it or if it's a good approach, but I have a trait which is applied to all result classes. TraitFor::Result::ForceNULL; use strict; use warnings; my $null = undef; sub insert { my $self = shift; for my $col ($self->columns) { next unless defined

Re: [Catalyst] Change of server

2017-03-03 Thread Rajesh Kumar Mallah
Its not typo , the reason is that the env variable ${APACHE_LOCK_DIR} is not set , . /etc/apache2/envvars takes care of that part. > It seems that you have a typo in the file /etc/apache2/apache2.conf near > line 74. Fix that and probably the other errors will vanish! > > On Mar 3, 2017

Re: [Catalyst] Change of server

2017-03-03 Thread Rajesh Kumar Mallah
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

Re: [Catalyst] Change of server

2017-03-03 Thread Andrés Chandía
Well, I have not errors any more at the log file on this command: apache2 -k start -E /var/log/apache2/showerror but server does not starts, nor even with service apache2 restart wich again says: Mar 03 12:04:23 iac apache2[2798]:  * The apache2 instance did not start within 20 seconds.

Re: [Catalyst] Change of server

2017-03-03 Thread Hector Azpurua
It seems that you have a typo in the file /etc/apache2/apache2.conf near line 74. Fix that and probably the other errors will vanish! On Mar 3, 2017 7:39 AM, Andrés Chandía wrote: > Thanks, finally I'm getting some logs: > > [Fri Mar 03 11:34:41.061210 2017] [core:warn] [pid

Re: [Catalyst] Change of server

2017-03-03 Thread Andrés Chandía
Thanks, finally I'm getting some logs: [Fri Mar 03 11:34:41.061210 2017] [core:warn] [pid 2111] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined [Fri Mar 03 11:34:41.061282 2017] [core:warn] [pid 2111] AH00111: Config variable ${APACHE_PID_FILE} is not defined [Fri Mar 03

Re: [Catalyst] Change of server

2017-03-03 Thread mallah
Have you tried starting apache2 binary  from cmdline by specifying the path of main configuration file. Check apache2 -h  Also check netstat -lnp output if there is something bound to the same port (possibly 80 ) Sent from my Samsung Galaxy smartphone. Original message From:

Re: [Catalyst] Change of server

2017-03-03 Thread Andrés Chandía
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 

Re: [Catalyst] Change of server

2017-03-03 Thread Juan Miguel Paredes
On Fri, Mar 3, 2017 at 7:35 AM, "Andrés Chandía" 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: