[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apache woes.



I looked at the bugs on www.debian.org and didn't see mine described, so
I thought I bounce it off of this group.

I installed potato.  That was my first mistake.  I haven't been able to
get samba working nor will apache work.  Nothing seems wrong with the
install, but I can't get pages to display right.  There is an index.html
file in the /var/www directory but apache isn't looking for it there. 
Sorry about the wasted bandwidth.  Somehow I sent the message before I
finished.

Can anyone tell me how to get apache working again?

Thanks,
Jim.


It seems to be looking in /usr/htdocs.   However I get the message, "The
requested URL / was not found on this server".  When I look at the error
log I see:

[Tue Dec  5 16:17:27 2000] [error] [client 169.238.221.206] File does
not exist
: /usr/htdocs/
[Tue Dec  5 16:17:49 2000] [error] [client 169.238.221.206] File does
not exist
: /usr/htdocs/

There is an index.html file in /usr/htdocs, see:


chinaberry:/usr/htdocs# ls -ld
drwxr-xr-x    2 root     root         1024 Dec  5 16:28 .
chinaberry:/usr/htdocs# ls -l
total 4
-rw-r--r--    1 root     root         4094 Dec  5 14:44 index.html
chinaberry:/usr/htdocs# ls -ld /usr
drwxr-xr-x   17 root     root         1024 Dec  5 14:42 /usr
chinaberry:/usr/htdocs# 

It does display it as if it were a text file if I specifically address
it (http://chinaberry.peachtree.sgi.com/index.html).

Here is the text of the removal of the old stuff and the installation of
the new:

chinaberry:/usr/htdocs# apt-get remove apache-common
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  apache apache-common 
0 packages upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 2402kB will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 38069 files and directories currently installed.)
Removing apache ...
Stopping web server: apache.
/usr/sbin/apachectl stop: httpd (no pid file) not running
dpkg - warning: while removing apache, directory `/var/log/apache' not
empty so not removed.
dpkg - warning: while removing apache, directory `/etc/apache' not empty
so not removed.
Removing apache-common ...
chinaberry:/usr/htdocs# rm -r /var/log/apache
chinaberry:/usr/htdocs# rm -r /etc/apache
chinaberry:/usr/htdocs# rm -r /var/www
chinaberry:/usr/htdocs# apt-get remove apache.doc
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  apache-doc 
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 1690kB will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 37798 files and directories currently installed.)
Removing apache-doc ...
chinaberry:/usr/htdocs# apt-get install apache
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  apache-common 
The following NEW packages will be installed:
  apache apache-common 
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1076kB of archives. After unpacking 2402kB will be used.
Do you want to continue? [Y/n] y
Media Change: Please insert the disc labeled 'Debian GNU/Linux 2.2 r0
_Potato_ - Official i386 Binary-1 (20000814)' in the drive '/cdrom/' and
press enter

Selecting previously deselected package apache-common.
(Reading database ... 37655 files and directories currently installed.)
Unpacking apache-common (from .../apache-common_1.3.9-13.1.deb) ...
Selecting previously deselected package apache.
Unpacking apache (from .../web/apache_1.3.9-13.1.deb) ...
Setting up apache-common (1.3.9-13.1) ...

Setting up apache (1.3.9-13.1) ...

Installing new configuration file /etc/apache/httpd.conf ...
Installing new configuration file /etc/apache/cron.conf ...
An Apache configuration exists, but needs some tweaking.

Your config files will not be modified until you select Y at "save
changes."
The ServerAdmin is set to webmaster@chinaberry.peachtree.sgi.com.

The Apache server will serve documents from a directory called the
document root or server root.  You must specify such a directory for
the server to work: /var/www is recommended.

What should the DocumentRoot be? [/var/www] 
Created directory /var/www.
Fixing: owner of /var/www retained as root.root
Installing your new homepage in /var/www.
Finding DSO mods.........................................found.

# LoadModule vhost_alias_module /usr/lib/apache/1.3/mod_vhost_alias.so
# LoadModule env_module /usr/lib/apache/1.3/mod_env.so
LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so
# LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so
# LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so
# LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so
LoadModule status_module /usr/lib/apache/1.3/mod_status.so
# LoadModule info_module /usr/lib/apache/1.3/mod_info.so
# LoadModule includes_module /usr/lib/apache/1.3/mod_include.so
# LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
# LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so
# LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
# LoadModule asis_module /usr/lib/apache/1.3/mod_asis.so
# LoadModule imap_module /usr/lib/apache/1.3/mod_imap.so
# LoadModule action_module /usr/lib/apache/1.3/mod_actions.so
# LoadModule speling_module /usr/lib/apache/1.3/mod_speling.so
# LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so
# LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so
LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
# LoadModule access_module /usr/lib/apache/1.3/mod_access.so
LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
# LoadModule anon_auth_module /usr/lib/apache/1.3/mod_auth_anon.so
# LoadModule dbm_auth_module /usr/lib/apache/1.3/mod_auth_dbm.so
# LoadModule db_auth_module /usr/lib/apache/1.3/mod_auth_db.so
# LoadModule proxy_module /usr/lib/apache/1.3/libproxy.so
# LoadModule digest_module /usr/lib/apache/1.3/mod_digest.so
# LoadModule cern_meta_module /usr/lib/apache/1.3/mod_cern_meta.so
LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so
# LoadModule headers_module /usr/lib/apache/1.3/mod_headers.so
# LoadModule usertrack_module /usr/lib/apache/1.3/mod_usertrack.so
LoadModule unique_id_module /usr/lib/apache/1.3/mod_unique_id.so
# LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
# LoadModule sys_auth_module /usr/lib/apache/1.3/mod_auth_sys.so
# LoadModule put_module /usr/lib/apache/1.3/mod_put.so
# LoadModule throttle_module /usr/lib/apache/1.3/mod_throttle.so
# LoadModule allowdev_module /usr/lib/apache/1.3/mod_allowdev.so
# LoadModule auth_mysql_module /usr/lib/apache/1.3/mod_auth_mysql.so
# LoadModule pgsql_auth_module /usr/lib/apache/1.3/mod_auth_pgsql.so
# LoadModule eaccess_module /usr/lib/apache/1.3/mod_eaccess.so
# LoadModule roaming_module /usr/lib/apache/1.3/mod_roaming.so

Pondering......................................... done.

Save these changes to the configuration files? [Y/n] y

Rotated `/etc/apache/httpd.conf' at Tue Dec  5 16:17:00 EST 2000.
Restart Apache now? [Y/n] y
/usr/sbin/apachectl start: httpd started

chinaberry:/usr/htdocs# ls /var/www
index.html
chinaberry:/usr/htdocs# ls -lR /var/www
/var/www:
total 4
-rw-r--r--    1 root     root         4094 Apr 29  2000 index.html
chinaberry:/usr/htdocs# ls -ld
drwxr-xr-x    2 root     root         1024 Dec  5 16:28 .
chinaberry:/usr/htdocs# ls -l
total 4
-rw-r--r--    1 root     root         4094 Dec  5 14:44 index.html
chinaberry:/usr/htdocs# ls -ld /usr
drwxr-xr-x   17 root     root         1024 Dec  5 14:42 /usr
chinaberry:/usr/htdocs#



Reply to: