You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Daniel Shapiro <ds...@yahoo.com> on 2009/11/21 01:04:20 UTC

[users@httpd] installing apache on amazon ec2 instance

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 <URL:http://httpd.apache.org/userslist.html> 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: [users@httpd] installing apache on amazon ec2 instance

Posted by Francois Gingras <fr...@gmail.com>.
You can't load 1.3 modules with 2.2.

Frank.

On Fri, Nov 20, 2009 at 7:04 PM, Daniel Shapiro <ds...@yahoo.com> wrote:
> 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 <URL:http://httpd.apache.org/userslist.html> 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
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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: [users@httpd] installing apache on amazon ec2 instance

Posted by Krist van Besien <kr...@gmail.com>.
On Sat, Nov 21, 2009 at 1:04 AM, Daniel Shapiro <ds...@yahoo.com> wrote:
> 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

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  /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

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


-- 
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 <URL:http://httpd.apache.org/userslist.html> 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