Windows
Bootdisk for NT
Setup Win 2000
Setup Windows NT
Setup Windows 98
Setup IP 98/NT/00
Setup Exchange
Linux
Boot Disk for Linux
Install Linux
Install modem
Install apache
Using X Window
Remote command
Configuring IP
Configuring samba
Configuring mail
Configuring DNS
Networking
Dhcp overview
Dhcp install
Dhcp manager
Dial up diagnostic
RFI/PFP
SBS explained
Citrix explained
Remote login
Setup multiple O/S
Setup a network
Misc
Address book
Internet shopping
Team technologies
File systems
Backup
Time savers
Reponse time
Volumes
Cable
ODBC
TCP/IP
Histor
Class
For win 98
For win NT
Layers
Utilities
Subnet mask
subnet mask calculator

 

 

 
PeteDotCom -> Networking -> Linux -> Apache ->

 |   s e t u p   |   t e s t i n g |   p r o b l e m s   |   c o m m e n t s   |

 

 |   s e t u p   |

Using command

         find / -name httpd.conf

To fin out where the file httpd.conf (and srm.conf, access.conf as well, they are located at the same directory) is located.

Edit httpd.conf

Check following lines and modify accordingly:

ServerType standalone
Port 80
HostnameLookups off
User nobody
Group nogroup
ServerAdmin root@g215-1   #use your machine name instead of g215-1
ServerRoot "/ver/lib/apache/sbin"  #use correct path on your machine
PidFIle /var/lib/apache/var/run/httpd.pid
ScoreBOardFIle /var/lib/apache/var/run/httpd.scoreboard
ServerName g215-1
ServerSignature on
UseCanonicalName on
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 30

 

Edit srm.conf
Basically no need to change.

 

Edit access.conf
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/var/lib/apache/share/htdoc">
Options FollowSymLinks
AllowOverride None
order allow,deny
allow all
deny sleezykiddieporn.com
</Directory>
<Directory "/var/lib/apache/share/cgi-bin">
AllowOverride None
Options None
</Directory>

 

Turning On Apache

Type in following line (use correct path on your machine) to turn on apache
/usr/sbin/httpd -f /var/lib/httpd/conf/httpd.conf

 

|  t e s t   |      |top|

Reinvoking Apache When Rebooting

For reinvoking apache when rebooting, enter following line into /etc/rc.d/rc.httpd:
/var/lib/apache/sbin/apachectl start

 

Test apache

Create a test file htdocs/test.html under apache's root directory, /var/lib/apache (you machine may be different). Then use lynx to test it:
       lynx localhost/test.html
Now, you can try to visit your apache web server from other machine with
       lynx yourhostname/test.html

 

|  p r o b l e m s   |     |TOP|

no problems, works just fine

 

|  c o m m e n t   |     |TOP|

Hosted by www.Geocities.ws

1