installing apache on amazon ec2 instance

installing apache on amazon ec2 instance

am 21.11.2009 01:04:20 von Daniel Shapiro

Running on Debian linux:

I have been having trouble installing/running apache on an instance of an amazon cloud ec2 machine.
Wondering if installation is badly done, or configs not set up, or if its a function of the virtual nature of IP on amazon ec2 cloud?


It does seem I have 2 versions installed - but can't get either to work properly

--------------------------------------------------
installation detail
amd6:/# whereis apache
apache: /usr/sbin/apache /etc/apache /usr/lib/apache /usr/share/apache /usr/share/man/man8/apache.8.gz
amd6:/# whereis apache2
apache2: /usr/sbin/apache2 /etc/apache2 /usr/lib/apache2 /usr/share/apache2 /usr/share/man/man8/apache2.8.gz
amd6:/#
amd6/# apache -v
Server version: Apache/1.3.34 (Debian)
Server built: Jan 21 2008 09:55:55
amd6:/# apache2 -v
Server version: Apache/2.2.3
Server built: Jul 29 2009 10:27:09


---------------------------------------------------
Upon running apachectl:
amd6# apachectl start
/usr/sbin/apachectl start: httpd started
amd6/# apachectl configtest
Syntax OK
amd6# apachectl fullstatus

Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://localhost/server-status

-----------------------------------------------------------
Looking at error log - seems normal startup on a few bounces
amd68:/# tail /var/log/apache/error.log
[Fri Nov 20 18:46:16 2009] [crit] (98)Address already in use: make_sock: could not bind to port 8080
[Fri Nov 20 18:51:39 2009] [notice] SIGHUP received. Attempting to restart
[Fri Nov 20 18:51:39 2009] [notice] Apache/1.3.34 (Debian) PHP/5.2.0-8+etch15 configured -- resuming normal operations
[Fri Nov 20 18:51:39 2009] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Fri Nov 20 18:57:31 2009] [notice] caught SIGTERM, shutting down
[Fri Nov 20 18:57:37 2009] [notice] Apache/1.3.34 (Debian) PHP/5.2.0-8+etch15 configured -- resuming normal operations
[Fri Nov 20 18:57:37 2009] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Fri Nov 20 18:57:48 2009] [notice] caught SIGTERM, shutting down
[Fri Nov 20 18:57:50 2009] [notice] Apache/1.3.34 (Debian) PHP/5.2.0-8+etch15 configured -- resuming normal operations
[Fri Nov 20 18:57:50 2009] [notice] Accept mutex: sysvsem (Default: sysvsem)


------------------------------------------------------------ --
Trying apache2:
amd6:/# apache2 -f /etc/apache2/httpd.conf
apache2: Syntax error on line 6 of /etc/apache2/httpd.conf: Cannot load /usr/lib/apache/1.3/mod_status.so into server: /usr/lib/apache/1.3/mod_status.so: undefined symbol: ap_restart_time

But the file exists - but seems from the other version
amd6:/# ls -altr /usr/lib/apache/1.3/mod_status*
-rw-r--r-- 1 root root 17360 Jan 21 2008 /usr/lib/apache/1.3/mod_status.so


------------------------------------------------------------ ------
Any help here would be greatly appreciated
Pointing a browser at http://my-ip http://myip:80 and http://myip:8080 does not work of course


Thank you




------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: installing apache on amazon ec2 instance

am 22.11.2009 22:45:43 von Frank Gingras

You can't load 1.3 modules with 2.2.

Frank.

On Fri, Nov 20, 2009 at 7:04 PM, Daniel Shapiro wr=
ote:
> Running on Debian linux:
>
> I have been having trouble installing/running apache on an instance of an=
amazon cloud ec2 machine.
> Wondering if installation is badly done, or configs not set up, or if its=
a function of the virtual nature of IP =A0on amazon ec2 cloud?
>
>
> It does seem I have 2 versions installed - but can't get either to work p=
roperly
>
> --------------------------------------------------
> installation detail
> amd6:/# whereis apache
> apache: /usr/sbin/apache /etc/apache /usr/lib/apache /usr/share/apache /u=
sr/share/man/man8/apache.8.gz
> amd6:/# whereis apache2
> apache2: /usr/sbin/apache2 /etc/apache2 /usr/lib/apache2 /usr/share/apach=
e2 /usr/share/man/man8/apache2.8.gz
> amd6:/#
> amd6/# apache -v
> Server version: Apache/1.3.34 (Debian)
> Server built: =A0 Jan 21 2008 09:55:55
> amd6:/# apache2 -v
> Server version: Apache/2.2.3
> Server built: =A0 Jul 29 2009 10:27:09
>
>
> ---------------------------------------------------
> Upon running apachectl:
> amd6# apachectl start
> /usr/sbin/apachectl start: httpd started
> amd6/# apachectl configtest
> Syntax OK
> amd6# apachectl fullstatus
>
> Looking up localhost
> Making HTTP connection to localhost
> Alert!: Unable to connect to remote host.
>
> lynx: Can't access startfile http://localhost/server-status
>
> -----------------------------------------------------------
> Looking at error log - seems normal startup on a few bounces
> amd68:/# tail /var/log/apache/error.log
> [Fri Nov 20 18:46:16 2009] [crit] (98)Address already in use: make_sock: =
could not bind to port 8080
> [Fri Nov 20 18:51:39 2009] [notice] SIGHUP received. =A0Attempting to res=
tart
> [Fri Nov 20 18:51:39 2009] [notice] Apache/1.3.34 (Debian) PHP/5.2.0-8+et=
ch15 configured -- resuming normal operations
> [Fri Nov 20 18:51:39 2009] [notice] Accept mutex: sysvsem (Default: sysvs=
em)
> [Fri Nov 20 18:57:31 2009] [notice] caught SIGTERM, shutting down
> [Fri Nov 20 18:57:37 2009] [notice] Apache/1.3.34 (Debian) PHP/5.2.0-8+et=
ch15 configured -- resuming normal operations
> [Fri Nov 20 18:57:37 2009] [notice] Accept mutex: sysvsem (Default: sysvs=
em)
> [Fri Nov 20 18:57:48 2009] [notice] caught SIGTERM, shutting down
> [Fri Nov 20 18:57:50 2009] [notice] Apache/1.3.34 (Debian) PHP/5.2.0-8+et=
ch15 configured -- resuming normal operations
> [Fri Nov 20 18:57:50 2009] [notice] Accept mutex: sysvsem (Default: sysvs=
em)
>
>
> ------------------------------------------------------------ --
> Trying apache2:
> amd6:/# apache2 -f =A0/etc/apache2/httpd.conf
> apache2: Syntax error on line 6 of /etc/apache2/httpd.conf: Cannot load /=
usr/lib/apache/1.3/mod_status.so into server: /usr/lib/apache/1.3/mod_statu=
s.so: undefined symbol: ap_restart_time
>
> But the file exists - but seems from the other version
> amd6:/# ls -altr /usr/lib/apache/1.3/mod_status*
> -rw-r--r-- 1 root root 17360 Jan 21 =A02008 /usr/lib/apache/1.3/mod_statu=
s.so
>
>
> ------------------------------------------------------------ ------
> Any help here would be greatly appreciated
> Pointing a browser at http://my-ip =A0 =A0http://myip:80 =A0 =A0and =A0 h=
ttp://myip:8080 =A0 =A0does not work of course
>
>
> Thank you
>
>
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: installing apache on amazon ec2 instance

am 23.11.2009 10:15:02 von Krist van Besien

On Sat, Nov 21, 2009 at 1:04 AM, Daniel Shapiro wr=
ote:
> Running on Debian linux:
>
> I have been having trouble installing/running apache on an instance of an=
amazon cloud ec2 machine.
> Wondering if installation is badly done, or configs not set up, or if its=
a function of the virtual nature of IP =A0on amazon ec2 cloud?
>
>
> It does seem I have 2 versions installed - but can't get either to work p=
roperly

I would suggest you remove the older one.

> Looking up localhost
> Making HTTP connection to localhost
> Alert!: Unable to connect to remote host.
>
> lynx: Can't access startfile http://localhost/server-status

Could be that the server is running fine, but that "server-status"
hasn't been configured. What happens if you just do "lynx
http://localhost" from the commandline on your machine?


> ------------------------------------------------------------ --
> Trying apache2:
> amd6:/# apache2 -f =A0/etc/apache2/httpd.conf
> apache2: Syntax error on line 6 of /etc/apache2/httpd.conf: Cannot load /=
usr/lib/apache/1.3/mod_status.so into server: /usr/lib/apache/1.3/mod_statu=
s.so: undefined symbol: ap_restart_time

You start apache 2.x on debian using apache2ctl. This will probably
set alle the paths correctly so that apache doesn't try to load 1.3
modules.

However, I would start by getting rid of apache 1.3.

Krist


--=20
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org