Hi, On Fri, Oct 16, 2009 at 07:15:47AM -0700, dembi wrote: > > I can get successful response: > > wget http://localhost/server-status > --2009-10-16 16:53:34-- http://localhost/server-status > Распознаётся localhost... 127.0.0.1, ::1 > Устанавливается соединение с localhost|127.0.0.1|:80... соединение > установлено. > Запрос HTTP послан, ожидается ответ... 200 OK > Длина: 1811 (1,8K) [text/html] > Сохраняется в каталог: `server-status'. > > 100%[==================================================================================>] > 1 811 --.-K/s в 0s > > 2009-10-16 16:53:34 (218 MB/s) - `server-status' сохранён [1811/1811]
That's good. > Sorry but some symbols is on Russian We could understand still :) > I found the strange thing. > When I try to start Apache from ocf sctipt I getting the following Error: > > etc/ha.d/resource.d/apache start That's not the ocf script. The ocf one lives in /usr/lib/ocf/resource.d/heartbeat. > 2009/10/16_17:07:29 ERROR: Syntax error on line 6 of > /etc/apache2/httpd.conf: Invalid command 'Order', perhaps misspelled or > defined by a module not included in the server configuration This is a message from apache I guess, so apache doesn't start at all. > 2009/10/16_17:07:29 INFO: apache not running > 2009/10/16_17:07:29 INFO: waiting for apache /etc/apache2/httpd.conf to come > up > 2009/10/16_17:07:30 INFO: apache not running > 2009/10/16_17:07:30 INFO: waiting for apache /etc/apache2/httpd.conf to come > up > > > My httpd.conf is following: As somebody else mentioned, you should really try with another forum if you can't fix apache yourself. Thanks, Dejan > ServerName 10.11.4.1 > > <Directory "/var/www/"> > Options Indexes FollowSymLinks Includes MultiViews > AllowOverride All > Order allow,deny > Allow from all > </Directory> > > Where 10.11.4.1 is Virtual IP > > > > > Malte Geierhos-2 wrote: > > > > Am 16.10.09 15:11, schrieb dembi: > > > > Just test if you get valid responses by testing : > > > > wget http://localhost/server-status > > > > Howto configure Apache goes beyond the scope of this list. > > Please try for yourself until it works. Then use the ocf-tester and see > > if it works with your environment. > > > >> I have installed wget: > >> > >> sudo dpkg -l|grep wget > >> ii wget 1.11.4-2 > >> > >> And I have Loaded Module of ‘mod_status’. I can see this using phpinfo() > >> function. > >> > >> Please see my status.conf > >> > >> <Location /server-status> > >> SetHandler server-status > >> Order deny,allow > >> Deny from all > >> # Allow from localhost ip6-localhost > >> Allow from all > >> </Location> > >> > >> > >> But I still can not start Apache with OCF script > >> Please see my log file: > >> > >> Oct 16 16:08:31 aps-1 tengine: [18324]: info: send_rsc_command: > >> Initiating > >> action 11: apache_monitor_0 on aps-3 > >> Oct 16 16:08:31 aps-1 pengine: [18325]: WARN: unpack_rsc_op: Processing > >> failed op apache_start_0 on aps-1: Timed Out > >> Oct 16 16:08:31 aps-1 pengine: [18325]: WARN: unpack_rsc_op: > >> Compatability > >> handling for failed op apache_start_0 on aps-1 > >> Oct 16 16:08:31 aps-1 pengine: [18325]: notice: native_print: > >> apache#011(heartbeat::ocf:apache):#011Stopped > >> Oct 16 16:08:31 aps-1 pengine: [18325]: notice: StartRsc: aps-3#011Start > >> apache > >> Oct 16 16:08:31 aps-1 pengine: [18325]: notice: RecurringOp: aps-3#011 > >> apache_monitor_5000 > >> Oct 16 16:08:32 aps-1 tengine: [18324]: info: match_graph_event: Action > >> apache_monitor_0 (11) confirmed on aps-3 (rc=0) > >> Oct 16 16:08:34 aps-1 tengine: [18324]: info: send_rsc_command: > >> Initiating > >> action 93: apache_start_0 on aps-3 > >> Oct 16 16:08:54 aps-1 tengine: [18324]: WARN: print_elem: Action missed > >> its > >> timeout[Action 93]: In-flight (id: apache_start_0, loc: aps-3, priority: > >> 0) > >> Oct 16 16:08:55 aps-1 tengine: [18324]: WARN: update_failcount: Updating > >> failcount for apache on d305cc9a-6c27-4de0-ab2d-775419549bde after failed > >> start: rc=-2 > >> Oct 16 16:08:55 aps-1 tengine: [18324]: info: match_graph_event: Action > >> apache_start_0 (93) confirmed on aps-3 (rc=4) > >> Oct 16 16:08:55 aps-1 pengine: [18325]: WARN: unpack_rsc_op: Processing > >> failed op apache_start_0 on aps-3: Timed Out > >> Oct 16 16:08:55 aps-1 pengine: [18325]: WARN: unpack_rsc_op: > >> Compatability > >> handling for failed op apache_start_0 on aps-3 > >> Oct 16 16:08:55 aps-1 pengine: [18325]: WARN: unpack_rsc_op: Processing > >> failed op apache_start_0 on aps-1: Timed Out > >> Oct 16 16:08:55 aps-1 pengine: [18325]: WARN: unpack_rsc_op: > >> Compatability > >> handling for failed op apache_start_0 on aps-1 > >> Oct 16 16:08:55 aps-1 pengine: [18325]: notice: native_print: > >> apache#011(heartbeat::ocf:apache):#011Started aps-3 FAILED > >> Oct 16 16:08:55 aps-1 pengine: [18325]: WARN: native_color: Resource > >> apache > >> cannot run anywhere > >> Oct 16 16:08:55 aps-1 pengine: [18325]: notice: StopRsc: aps-3#011Stop > >> apache > >> Oct 16 16:08:55 aps-1 tengine: [18324]: info: send_rsc_command: > >> Initiating > >> action 5: apache_stop_0 on aps-3 > >> Oct 16 16:08:56 aps-1 tengine: [18324]: info: match_graph_event: Action > >> apache_stop_0 (5) confirmed on aps-3 (rc=0) > >> > >> > >> > >> Malte Geierhos-2 wrote: > >> > >>> Hi > >>> > >>>> Ok, If I have stopped heartbeat resource on my aps-3 which was as DC. > >>>> All resources were successfully migrated on aps-1. > >>>> Can I think that all work ok. > >>>> Or may be I should perform additional testing? > >>>> > >>>> And can you please explain to me why it was not working with ‘ocf’ > >>>> resource? > >>>> > >>>> Thanks in advance. > >>>> > >>>> > > _______________________________________________ > > Linux-HA mailing list > > [email protected] > > http://lists.linux-ha.org/mailman/listinfo/linux-ha > > See also: http://linux-ha.org/ReportingProblems > > > > -- > View this message in context: > http://www.nabble.com/Problem-with-starting-Apache-and-MySQL-tp25905739p25926161.html > Sent from the Linux-HA mailing list archive at Nabble.com. > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
