LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-19-2006, 06:19 AM   #1
$Linuxnoob
Member
 
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Rep: Reputation: 30
apache question


apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
httpd (pid 5109) already running


Any ideas on why this might be??
 
Old 09-19-2006, 06:52 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Yes, you have not configured the server's domain name in apache's config file, or you have some other weirdness going about your domain name (have you set it at all?), so Apache can't figure it out and just uses the loopback ip.
 
Old 09-19-2006, 01:17 PM   #3
$Linuxnoob
Member
 
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Original Poster
Rep: Reputation: 30
Can you or anyone

point me in the right direction as far as that is concerned?
 
Old 09-19-2006, 07:34 PM   #4
$Linuxnoob
Member
 
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Original Poster
Rep: Reputation: 30
Any help at all?
 
Old 09-19-2006, 07:48 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
As b0uncer already said, Apache couldn't determine your domain name so it's using the localhost as its fallback. You can either set up your box so it has a hostname/domain or configure the ServerName directive in your httpd.conf file.
 
Old 09-19-2006, 09:15 PM   #6
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Fedora 30
Posts: 341

Rep: Reputation: 37
Methinks your apache install is confused.

Why do you already have a pid running if this is a single install?

Do you maybe have another version going?

Rather than get into too much detail.. ok a bit..
if you do a
Code:
ps -ef
do you see apache instances?

If so it's running by default. Are you even playing with the same version?

Do take a look at httpd.conf

Running as local server 127.0.0.1 should be okay.

You can get multiple versions running on one machine, but sometimes syncing the PID can be a configuration issue.

I'm not on the right box to give you further details right now. But if you post back, I'm pretty sure I can help.

Like gilead said. Start by looking for ServerName in httpd.conf

Look around a bit. It will start to make sense soon
Have fun,
alar


BTW: What name are you trying to connect with?
What if you type in 127.0.0.1 as is?
 
Old 09-19-2006, 10:58 PM   #7
$Linuxnoob
Member
 
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Original Poster
Rep: Reputation: 30
output from

ps-ef

Code:
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 22:34 ?        00:00:01 init [2]
root         2     1  0 22:34 ?        00:00:00 [ksoftirqd/0]
root         3     1  0 22:34 ?        00:00:00 [watchdog/0]
root         4     1  0 22:34 ?        00:00:00 [events/0]
root         5     1  0 22:34 ?        00:00:00 [khelper]
root         6     1  0 22:34 ?        00:00:00 [kthread]
root         8     6  0 22:34 ?        00:00:00 [kblockd/0]
root         9     6  0 22:34 ?        00:00:00 [kacpid]
root        72     6  0 22:34 ?        00:00:00 [kacpid-work-0]
root        73     6  0 22:34 ?        00:00:00 [kacpid-work-1]
root       126     6  0 22:34 ?        00:00:00 [pdflush]
root       127     6  0 22:34 ?        00:00:00 [pdflush]
root       129     6  0 22:34 ?        00:00:00 [aio/0]
root       128     1  0 22:34 ?        00:00:00 [kswapd0]
root       716     6  0 22:34 ?        00:00:00 [kseriod]
root      1812     6  0 22:34 ?        00:00:00 [khubd]
root      1831     6  0 22:34 ?        00:00:00 [kacpid-work-2]
root      1832     6  0 22:34 ?        00:00:00 [kacpid-work-3]
root      1833     6  0 22:34 ?        00:00:00 [kacpid-work-4]
root      1834     6  0 22:34 ?        00:00:00 [kacpid-work-5]
root      1835     6  0 22:34 ?        00:00:00 [kacpid-work-6]
root      1836     6  0 22:34 ?        00:00:00 [kacpid-work-7]
root      1837     6  0 22:34 ?        00:00:00 [kacpid-work-8]
root      1838     6  0 22:34 ?        00:00:00 [kacpid-work-9]
root      1906     1  0 22:34 ?        00:00:00 [kjournald]
root      2143     1  0 22:34 ?        00:00:00 /sbin/udevd --daemon
root      2924     1  0 22:34 ?        00:00:00 [shpchpd_event]
root      3096     1  0 22:34 ?        00:00:00 [pccardd]
dhcp      3497     1  0 22:34 ?        00:00:00 dhclient3 -pf /var/run/dhclient.root      3607     1  0 22:34 ?        00:00:00 /usr/sbin/ccsd
root      3861     1  0 22:34 ?        00:00:00 /usr/sbin/acpid -c /etc/acpi/evesyslog    3947     1  0 22:34 ?        00:00:00 /sbin/syslogd -u syslog
root      3975     1  0 22:34 ?        00:00:00 /bin/dd bs 1 if /proc/kmsg of /vklog      3977     1  0 22:34 ?        00:00:00 /sbin/klogd -P /var/run/klogd/kmroot      4303     1  0 22:34 ?        00:00:00 /usr/sbin/gdm
root      4324  4303  0 22:34 ?        00:00:00 /usr/sbin/gdm
root      4337  4324  7 22:34 tty7     00:05:40 /usr/bin/X :0 -br -audit 0 -authhplip     4346     1  0 22:34 ?        00:00:00 /usr/sbin/hpiod
hplip     4367     1  0 22:34 ?        00:00:00 python /usr/sbin/hpssd
cupsys    4415     1  0 22:34 ?        00:00:00 /usr/sbin/cupsd
104       4452     1  0 22:34 ?        00:00:00 /usr/bin/dbus-daemon --system
108       4467     1  0 22:34 ?        00:00:01 /usr/sbin/hald
root      4468  4467  0 22:34 ?        00:00:00 hald-runner
108       4475  4468  0 22:34 ?        00:00:00 /usr/lib/hal/hald-addon-acpi
108       4527  4468  0 22:35 ?        00:00:00 /usr/lib/hal/hald-addon-keyboard108       4537  4468  0 22:35 ?        00:00:00 /usr/lib/hal/hald-addon-storage
108       4538  4468  0 22:35 ?        00:00:00 /usr/lib/hal/hald-addon-storage
avahi     4560     1  0 22:35 ?        00:00:00 avahi-daemon: running [localhostavahi     4561  4560  0 22:35 ?        00:00:00 avahi-daemon: chroot helper procroot      4779     1  0 22:35 ?        00:00:00 /bin/sh /usr/bin/mysqld_safe
mysql     4843  4779  0 22:35 ?        00:00:00 /usr/sbin/mysqld --basedir=/usr
root      4844  4779  0 22:35 ?        00:00:00 logger -p daemon.err -t mysqld_sbutchy    4979  4324  0 22:35 ?        00:00:00 x-session-manager
root      5027     1  0 22:35 ?        00:00:00 /usr/lib/postfix/master
root      5047     1  0 22:35 ?        00:00:00 /usr/sbin/powernowd -q
butchy    5083  4979  0 22:35 ?        00:00:00 /usr/bin/ssh-agent /usr/bin/dbusbutchy    5086     1  0 22:35 ?        00:00:00 /usr/bin/dbus-launch --exit-withroot      5087     1  0 22:35 ?        00:00:00 /usr/sbin/nmbd -D
butchy    5089     1  0 22:35 ?        00:00:00 dbus-daemon --fork --print-pid 8butchy    5093     1  0 22:35 ?        00:00:01 /usr/lib/libgconf2-4/gconfd-2 5
root      5094     1  0 22:35 ?        00:00:00 /usr/sbin/smbd -D
root      5162     1  0 22:35 ?        00:00:00 hcid: processing events
root      5165  5094  0 22:35 ?        00:00:00 /usr/sbin/smbd -D
root      5171     1  0 22:35 ?        00:00:00 /usr/sbin/sdpd
root      5179     1  0 22:35 ?        00:00:00 [krfcommd]
root      5193     1  0 22:35 ?        00:00:00 /sbin/mdadm -F -i /var/run/mdadmbutchy    5222     1  0 22:35 ?        00:00:00 /usr/bin/gnome-keyring-daemon
butchy    5224     1  0 22:35 ?        00:00:00 /usr/lib/bonobo-activation/bonobbutchy    5228     1  0 22:35 ?        00:00:02 /usr/lib/control-center/gnome-sebutchy    5231     1  0 22:35 ?        00:00:00 /usr/bin/esd -terminate -nobeepsdaemon    5271     1  0 22:35 ?        00:00:00 /usr/sbin/atd
butchy    5288     1  0 22:35 ?        00:00:22 /usr/bin/metacity --sm-client-idroot      5289     1  0 22:35 ?        00:00:00 /usr/sbin/cron
butchy    5322     1  0 22:35 ?        00:00:16 gnome-panel --sm-client-id defauroot      5323     1  0 22:35 ?        00:00:00 /usr/sbin/apache2 -k start -DSSLbutchy    5353     1  0 22:35 ?        00:00:23 nautilus --no-default-window --sroot      5411     1  0 22:35 tty1     00:00:00 /sbin/getty 38400 tty1
root      5412     1  0 22:35 tty2     00:00:00 /sbin/getty 38400 tty2
root      5413     1  0 22:35 tty3     00:00:00 /sbin/getty 38400 tty3
root      5414     1  0 22:35 tty4     00:00:00 /sbin/getty 38400 tty4
root      5415     1  0 22:35 tty5     00:00:00 /sbin/getty 38400 tty5
root      5416     1  0 22:35 tty6     00:00:00 /sbin/getty 38400 tty6
butchy    5427     1  0 22:35 ?        00:00:00 gnome-volume-manager --sm-clientbutchy    5435     1  0 22:35 ?        00:00:00 update-notifier
www-data  5436  5323  0 22:35 ?        00:00:00 /usr/sbin/apache2 -k start -DSSLwww-data  5437  5323  0 22:35 ?        00:00:00 /usr/sbin/apache2 -k start -DSSLwww-data  5438  5323  0 22:35 ?        00:00:00 /usr/sbin/apache2 -k start -DSSLwww-data  5439  5323  0 22:35 ?        00:00:00 /usr/sbin/apache2 -k start -DSSLwww-data  5440  5323  0 22:35 ?        00:00:00 /usr/sbin/apache2 -k start -DSSLbutchy    5444     1  0 22:35 ?        00:00:00 gnome-cups-icon --sm-client-id dbutchy    5451     1  0 22:35 ?        00:00:00 /usr/lib/gnome-vfs-2.0/gnome-vfsbutchy    5453     1  0 22:35 ?        00:00:00 /usr/lib/gnome-applets/trashapplbutchy    5470     1  0 22:35 ?        00:00:00 gnome-power-manager
butchy    5476     1  0 22:35 ?        00:00:00 /usr/lib/nautilus-cd-burner/mappbutchy    5490     1  0 22:35 ?        00:00:00 /usr/lib/gnome-panel/clock-applebutchy    5496     1  0 22:35 ?        00:00:00 /usr/lib/gnome-applets/mixer_appbutchy    5498     1  0 22:35 ?        00:00:00 /usr/lib/gnome-netstatus/gnome-ndhcp      5531     1  0 22:35 ?        00:00:00 dhclient3 -pf /var/run/dhclient.postfix   5559  5027  0 22:35 ?        00:00:00 pickup -l -t fifo -u -c
postfix   5560  5027  0 22:35 ?        00:00:00 qmgr -l -t fifo -u
butchy    5572     1  0 22:35 ?        00:00:03 gnome-screensaver
butchy    6608     1  1 22:42 ?        00:00:52 /usr/lib/firefox/firefox-bin -a
butchy   13169     1  0 23:25 ?        00:00:01 gnome-terminal
butchy   13174 13169  0 23:25 ?        00:00:00 gnome-pty-helper
butchy   13175 13169  0 23:25 pts/0    00:00:00 bash
butchy   13214 13175  2 23:25 pts/0    00:00:42 gaim    -
root     13244 13175  0 23:25 pts/0    00:00:00 /bin/bash
root     17247 13244  0 23:53 pts/0    00:00:00 ps -ef

with the 127.0.0.1
it outputs an error, saying it cannot connect, which is consequently the same result for when i click http://localhost/
 
Old 09-19-2006, 11:06 PM   #8
$Linuxnoob
Member
 
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Original Poster
Rep: Reputation: 30
Output of apache files

httpd.conf
Code:
# This is here for backwards compatability reasons and to support
#  installing 3rd party modules directly via apxs2, rather than
#  through the /etc/apache2/mods-{available,enabled} mechanism.
#
#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so
apache2.confd
Code:
# Based upon the NCSA server configuration files originally by Rob McCool.
# Changed extensively for the Debian package by Daniel Stone <daniel@sfarc.net>
# and also by Thom May <thom@debian.org>.

# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>);
# you will save yourself a lot of trouble.

ServerRoot "/etc/apache2"

# The LockFile directive sets the path to the lockfile used when Apache
# is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
# USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
# its default value. The main reason for changing it is if the logs
# directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
# DISK. The PID of the main server process is automatically appended to
# the filename. 

LockFile /var/lock/apache2/accept.lock

# PidFile: The file in which the server should record its process
# identification number when it starts.

PidFile /var/run/apache2.pid

# Timeout: The number of seconds before receives and sends time out.

Timeout 300

# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.

KeepAlive On

# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.

MaxKeepAliveRequests 100

# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.

KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
## 

# prefork MPM
# StartServers ......... number of server processes to start
# MinSpareServers ...... minimum number of server processes which are kept spare
# MaxSpareServers ...... maximum number of server processes which are kept spare
# MaxClients ........... maximum number of server processes allowed to start
# MaxRequestsPerChild .. maximum number of requests a server process serves
<IfModule prefork.c>
StartServers         5
MinSpareServers      5
MaxSpareServers     10
MaxClients          20
MaxRequestsPerChild  0
</IfModule>

# pthread MPM
# StartServers ......... initial  number of server processes to start
# MaxClients ........... maximum  number of server processes allowed to start
# MinSpareThreads ...... minimum  number of worker threads which are kept spare
# MaxSpareThreads ...... maximum  number of worker threads which are kept spare
# ThreadsPerChild ...... constant number of worker threads in each server process
# MaxRequestsPerChild .. maximum  number of requests a server process serves
<IfModule worker.c>
StartServers         2
MaxClients         150 
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

# perchild MPM
# NumServers ........... constant number of server processes
# StartThreads ......... initial  number of worker threads in each server process
# MinSpareThreads ...... minimum  number of worker threads which are kept spare
# MaxSpareThreads ...... maximum  number of worker threads which are kept spare
# MaxThreadsPerChild ... maximum  number of worker threads in each server process
# MaxRequestsPerChild .. maximum  number of connections per server process (then it dies)
<IfModule perchild.c>
NumServers           5
StartThreads         5
MinSpareThreads      5
MaxSpareThreads     10
MaxThreadsPerChild  20
MaxRequestsPerChild  0
AcceptMutex fcntl
</IfModule>

User www-data
Group www-data

# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent


# Global error log.
ErrorLog /var/log/apache2/error.log

# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf

# Include all the user configurations:
Include /etc/apache2/httpd.conf

# Include ports listing
Include /etc/apache2/ports.conf

# Include generic snippets of statements
Include /etc/apache2/conf.d/[^.#]*

#Let's have some Icons, shall we?
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

# Set up the default error docs.
#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can Internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections.  We use 
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line;
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /usr/local/apache2/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    Alias /error/ "/usr/share/apache2/error/"

    <Directory "/usr/share/apache2/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>

    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
    ErrorDocument 410 /error/HTTP_GONE.html.var
    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
    ErrorDocument 415 /error/HTTP_SERVICE_UNAVAILABLE.html.var
    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>

DirectoryIndex index.html index.cgi index.pl index.php index.xhtml

# UserDir is now a module
#UserDir public_html
#UserDir disabled root

#<Directory /home/*/public_html>
#	AllowOverride FileInfo AuthConfig Limit
#	Options Indexes SymLinksIfOwnerMatch IncludesNoExec
#</Directory>

AccessFileName .htaccess

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

UseCanonicalName Off

TypesConfig /etc/mime.types
DefaultType text/plain

HostnameLookups Off

IndexOptions FancyIndexing VersionSort

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

# This really should be .jpg.

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^


# This is from Matty J's patch. Anyone want to make the icons?
#AddIcon /icons/dirsymlink.jpg ^^SYMDIR^^
#AddIcon /icons/symlink.jpg ^^SYMLINK^^

DefaultIcon /icons/unknown.gif

ReadmeName README.html
HeaderName HEADER.html

IndexIgnore .??* *~ *# HEADER* RCS CVS *,t

AddEncoding x-compress Z
AddEncoding x-gzip gz tgz

AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .et
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage it .it
AddLanguage ja .ja
AddLanguage pl .po
AddLanguage ko .ko
AddLanguage pt .pt
AddLanguage no .no
AddLanguage pt-br .pt-br
AddLanguage ltz .ltz
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .se
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage tw .tw
AddLanguage zh-tw .tw

LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv tw


#AddDefaultCharset	ISO-8859-1

AddCharset ISO-8859-1  .iso8859-1  .latin1
AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen
AddCharset ISO-8859-3  .iso8859-3  .latin3
AddCharset ISO-8859-4  .iso8859-4  .latin4
AddCharset ISO-8859-5  .iso8859-5  .latin5 .cyr .iso-ru
AddCharset ISO-8859-6  .iso8859-6  .latin6 .arb
AddCharset ISO-8859-7  .iso8859-7  .latin7 .grk
AddCharset ISO-8859-8  .iso8859-8  .latin8 .heb	
AddCharset ISO-8859-9  .iso8859-9  .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5        .Big5       .big5
# For russian, more than one charset is used (depends on client, mostly):
AddCharset WINDOWS-1251 .cp-1251   .win-1251
AddCharset CP866       .cp866
AddCharset KOI8-r      .koi8-r .koi8-ru
AddCharset KOI8-ru     .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8       .utf8

AddCharset GB2312      .gb2312 .gb 
AddCharset utf-7       .utf7
AddCharset utf-8       .utf8
AddCharset big5	       .big5 .b5
AddCharset EUC-TW      .euc-tw	
AddCharset EUC-JP      .euc-jp
AddCharset EUC-KR      .euc-kr
AddCharset shift_jis   .sjis

#AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps

AddType application/x-tar .tgz

# To use CGI scripts outside /cgi-bin/:
#
#AddHandler cgi-script .cgi

# To use server-parsed HTML files
#
<FilesMatch "\.shtml(\..+)?$">
    SetOutputFilter INCLUDES
</FilesMatch>

# If you wish to use server-parsed imagemap files, use
#
#AddHandler imap-file map

BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
#

BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully 
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully

# Allow server status reports, with the URL of http://servername/server-status
# Change the ".your_domain.com" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .your_domain.com
#</Location>

# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".your_domain.com" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .your_domain.com
#</Location>

# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/[^.#]*

By the way, i'm listening to different port than 80.

Hope this helps you help me, because, i'm absolutely lost.
 
Old 09-20-2006, 08:53 AM   #9
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Fedora 30
Posts: 341

Rep: Reputation: 37
I've just taken a look at your output and some of the differences between version 1.3 and 2x. Are u using 2.0 or 2.2?

From your ps -ef output, you do not have the apache processes running. You might want to kill 5436 if it's still running....

Take a closer look at these:

Code:
# PidFile: The file in which the server should record its process
# identification number when it starts.

# U might want to delete this because of httpd (pid #5109) already running

PidFile /var/run/apache2.pid

User www-data
Group www-data

# Global error log.
ErrorLog /var/log/apache2/error.log

# Include all the user configurations:
Include /etc/apache2/httpd.conf

# Include ports listing
Include /etc/apache2/ports.conf
But where is your ServerName directive?
I took a quick look at
http://httpd.apache.org/docs/2.2/mod...tml#servername
And it looks like it should still be there.

You should also read:
http://httpd.apache.org/docs/2.2/dns-caveats.html

Maybe I'll give it a try when I get home tonight...
I have a new OS just waiting for an apache install
 
Old 09-20-2006, 01:07 PM   #10
$Linuxnoob
Member
 
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Original Poster
Rep: Reputation: 30
Thanks for the help so far, I do have Apache 2 it seems.
 
Old 09-20-2006, 05:33 PM   #11
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Fedora 30
Posts: 341

Rep: Reputation: 37
I looked in the default apache2 install and there in the httpd.conf is:

# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
#ServerName www.example.com:80

I don't have a apache2.confd, but that shouldn't matter... (My version is 2.0 and I'm guessing you are 2.2)

I think you should still be able to add
ServerName whatever.com:xxx
to either config file...
where xxx is the port number

Then be sure to add whatever.com to your hosts file /etc/hosts


Stop apache
Restart

Let me know.

I'll see if I can get to version 2.2
Is there any reason you don't want to use 1.3 to start ?

Just wondering

Hope this helps...

** Note - I just realized this is a Ububtu posting. I was thinking you were on FC5. I'll be in Ubuntu in a minute...
I'll double check the hosts file location for you... geesh...

Last edited by alar; 09-20-2006 at 05:38 PM.
 
Old 09-20-2006, 07:28 PM   #12
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Fedora 30
Posts: 341

Rep: Reputation: 37
Download source from apache

I took the .bz2 file
Unix Source: httpd-2.2.3.tar.bz2 [PGP] [MD5]

# cd /usr/local/
# cp wherever/httpd-2.2.3.tar.bz2 .


tar xvjf filename
# tar -xvjf httpd-2.2.3.tar.bz2

Note: where xvjf is execute and tvjf is list


./configure --with-layout=GNU \
--prefix=/usr/local/apache



ooops fails no C compiler

this is ubuntu

# apt-get install gcc

configure again

# ./configure --with-layout=GNU \
--prefix=/usr/local/apache2.2.3

No make file - go figgure


# apt-get install make

# make

# make install

# cd ../apache2.2.3/
# ls -l

# cd conf
edit httpd.conf
---------------------
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName www.example.com:80
ServerName gandalf.athlone.com:80
---------------------

# cd ../bin

# apachectl start

-----

Now to the browser
http://gandalf.athlone.com/


It works!

-----------

Make it happen!
 
Old 09-20-2006, 07:33 PM   #13
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Fedora 30
Posts: 341

Rep: Reputation: 37
At the very least I am getting the swing of Ubuntu and now I have and yet another apache server
 
Old 09-20-2006, 09:47 PM   #14
$Linuxnoob
Member
 
Registered: Mar 2006
Location: Ypsilanti, Michigan
Distribution: Fedora core 5 Ubuntu 6 Slackware 11(if and when I get it running)
Posts: 151

Original Poster
Rep: Reputation: 30
Alar, I have a question, where you put

"I think you should still be able to add
ServerName whatever.com:xxx
to either config file...
where xxx is the port number"

Are you suggesting that without purchasing a domain name I can put my site online? By the way I do have 2.0 as well.
Thanks for the help, I'm going to check out your posts, and hopefully extract something from your help to aid myself.

Thanks.
 
Old 09-20-2006, 10:06 PM   #15
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Fedora 30
Posts: 341

Rep: Reputation: 37
No no the domain name is another issue.
But it doesn't mean you have to spend money.

We'll get to that later.

On your internal network. One machine two, three four.

The easy way is hosts file

Code:
127.0.0.1 localhost localhost

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
# These lines deserve a note too
192.168.0.4 gandalf.athlone.com gandalf
192.168.0.2 frodo.athlone.com frodo
athlone.com is my internal domain

Not registered.

I do have a registered external domain too. But I can't see it from here: athlone.com

I have a router to figure out the details- but that is beyond the scope of your original question.

But in answer to where your mind is wandering. Yes you will be able to put your apache on the web. And no. If it's from your home box. It doesn't have to cost money.

Hope you get up and running.

Then we can talk about being live: for free
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Question rshooper Linux - Software 1 09-21-2004 09:29 PM
Apache Question jet192 Linux - Networking 7 08-01-2003 11:21 PM
apache question notstrider Linux - General 1 01-29-2003 03:26 AM
Apache Question jmnovak Linux - Networking 3 04-24-2002 07:54 PM
Apache Question msmith7735 Linux - General 1 02-19-2002 07:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration