TawVb
asked on
Newbie Quest: Simple setup.
We are trying to set up an Apache 2.x web server. We are running SUSE linux. We have done the following and our basic sites display the apache "This page is here because the site administrator has changed the configuration of this web server" page:
*set up the following directory structure -
/usr/home/www_root/showsit e/public_h tml/
/usr/home/www_root/showsit e/public_h tml/cgi-bi n
/usr/home/www_root/showsit e/public_h tml/images
/usr/home/www_root/bigcomp any/public _html/
/usr/home/www_root/bigcomp any/public _html/cgi- bin
/usr/home/www_root/bigcomp any/public _html/imag es
*put basic index.html in the public html dirs.
*used the following httpd.conf in the apache2 directory:
NameVirtualHost 192.168.1.18
<VirtualHost 192.168.1.18>
ServerName local.smallshop.com
DocumentRoot /usr/home/www_root/showsit e/public_h tml/
ErrorLog /usr/home/www_root/showsit e/error_lo g
DirectoryIndex index.html
ScriptAlias /cgi-bin/ /usr/home/www_root/showsit e/public_h tml/cgi-bi n/
<Directory /usr/home/www_root/showsit e/public_h tml/cgi-bi n>
Options +ExecCGI
AddHandler cgi-scripts .cgi .pl
</Directory>
</VirtualHost>
NameVirtualHost 192.168.1.18
<VirtualHost 192.168.1.18>
ServerName local.bigcompany.com
DocumentRoot /usr/home/www_root/bigcomp any/public _html/
ErrorLog /usr/home/www_root/bigcomp any/error_ log
DirectoryIndex index.html
ScriptAlias /cgi-bin/ /usr/home/www_root/bigcomp any/public _html/cgi- bin/
<Directory /usr/home/www_root/bigcomp any/public _html/cgi- bin>
Options +ExecCGI
AddHandler cgi-scripts .cgi .pl
</Directory>
</VirtualHost>
*set up the following directory structure -
/usr/home/www_root/showsit
/usr/home/www_root/showsit
/usr/home/www_root/showsit
/usr/home/www_root/bigcomp
/usr/home/www_root/bigcomp
/usr/home/www_root/bigcomp
*put basic index.html in the public html dirs.
*used the following httpd.conf in the apache2 directory:
NameVirtualHost 192.168.1.18
<VirtualHost 192.168.1.18>
ServerName local.smallshop.com
DocumentRoot /usr/home/www_root/showsit
ErrorLog /usr/home/www_root/showsit
DirectoryIndex index.html
ScriptAlias /cgi-bin/ /usr/home/www_root/showsit
<Directory /usr/home/www_root/showsit
Options +ExecCGI
AddHandler cgi-scripts .cgi .pl
</Directory>
</VirtualHost>
NameVirtualHost 192.168.1.18
<VirtualHost 192.168.1.18>
ServerName local.bigcompany.com
DocumentRoot /usr/home/www_root/bigcomp
ErrorLog /usr/home/www_root/bigcomp
DirectoryIndex index.html
ScriptAlias /cgi-bin/ /usr/home/www_root/bigcomp
<Directory /usr/home/www_root/bigcomp
Options +ExecCGI
AddHandler cgi-scripts .cgi .pl
</Directory>
</VirtualHost>
try the following httpd.conf configuration:
NameVirtualHost *
<VirtualHost *>
ServerAdmin admin@showsite.com
DocumentRoot /usr/home/www_root/showsit e/public_h tml/
ServerName local.smallshop.com
ErrorLog /usr/home/www_root/showsit e/error_lo g
<Directory "/">
AllowOverride All
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/home/www_root/showsit e/public_h tml/cgi-bi n/
<Directory "/usr/home/www_root/showsi te/public_ html/cgi-b in">
Options +ExecCGI
AddHandler cgi-scripts .cgi .pl
</Directory>
Alias /icons/ "/usr/home/www_root/showsi te/public_ html/image s/"
<Directory "/usr/home/www_root/showsi te/public_ html/image s">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *>
ServerAdmin admin@bigcompany.com
DocumentRoot /usr/home/www_root/bigcomp any/public _html/
ServerName local.bigcompany.com
ErrorLog /usr/home/www_root/bigcomp any/error_ log
<Directory "/">
AllowOverride All
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/home/www_root/bigcomp any/public _html/cgi- bin/
<Directory "/usr/home/www_root/bigcom pany/publi c_html/cgi -bin">
Options +ExecCGI
AddHandler cgi-scripts .cgi .pl
</Directory>
Alias /icons/ "/usr/home/www_root/bigcom pany/publi c_html/ima ges/"
<Directory "/usr/home/www_root/bigcom pany/publi c_html/ima ges">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
NameVirtualHost *
<VirtualHost *>
ServerAdmin admin@showsite.com
DocumentRoot /usr/home/www_root/showsit
ServerName local.smallshop.com
ErrorLog /usr/home/www_root/showsit
<Directory "/">
AllowOverride All
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/home/www_root/showsit
<Directory "/usr/home/www_root/showsi
Options +ExecCGI
AddHandler cgi-scripts .cgi .pl
</Directory>
Alias /icons/ "/usr/home/www_root/showsi
<Directory "/usr/home/www_root/showsi
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *>
ServerAdmin admin@bigcompany.com
DocumentRoot /usr/home/www_root/bigcomp
ServerName local.bigcompany.com
ErrorLog /usr/home/www_root/bigcomp
<Directory "/">
AllowOverride All
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/home/www_root/bigcomp
<Directory "/usr/home/www_root/bigcom
Options +ExecCGI
AddHandler cgi-scripts .cgi .pl
</Directory>
Alias /icons/ "/usr/home/www_root/bigcom
<Directory "/usr/home/www_root/bigcom
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
ASKER
I tried this. When i did apachectl start it said:
invalid command <the command>. prehaps misspelled or module not included in the server configuration.
if i do
apache2ctl start it says:
(98)Adress allready in use_ Makesock.... etc...
invalid command <the command>. prehaps misspelled or module not included in the server configuration.
if i do
apache2ctl start it says:
(98)Adress allready in use_ Makesock.... etc...
make sure you don't already have apache running
type "ps -A" to see if your computer is already running "httpd"
if it is, kill all of the "httpd" processes
is there other software already using port 80?
type "netstat -l" to see if your computer is already listening on port 80 (httpd)
if it is, you'll need to find out what other software is using the port, and change the configuration of one of the programs
make sure apache is trying to start on port 80, httpd.conf should contain the following line:
Listen 80
type "ps -A" to see if your computer is already running "httpd"
if it is, kill all of the "httpd" processes
is there other software already using port 80?
type "netstat -l" to see if your computer is already listening on port 80 (httpd)
if it is, you'll need to find out what other software is using the port, and change the configuration of one of the programs
make sure apache is trying to start on port 80, httpd.conf should contain the following line:
Listen 80
ASKER
I have tried this.
and what was the result?
is other software running on port 80? is apache already running?
is other software running on port 80? is apache already running?
No comment has been added to this question in more than 21 days, so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:
PAQ - no refund
Any objections should be posted here in the next 4 days. After that time, the question will be closed.
Periwinkle
EE Cleanup Volunteer
I will leave the following recommendation for this question in the Cleanup topic area:
PAQ - no refund
Any objections should be posted here in the next 4 days. After that time, the question will be closed.
Periwinkle
EE Cleanup Volunteer
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
192.168.1.18 local.showsite.com
192.168.1.18 local.bigcompany.com
to hosts (in etc/ dir) file to test the pages locally.