httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Shapiro <dshapiro1...@yahoo.com>
Subject [users@httpd] installing apache on amazon ec2 instance
Date Sat, 21 Nov 2009 00:04:20 GMT
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


Mime
View raw message