University of Wisconsin-Madison  My UW
Computing @ UW-Madison

Installing Linux
Securing Linux
Tuning Linux
Fixes/Patching Linux
TSM Clients

Linux Policies


Bugzilla
Linux Errata

Feedback

Back to DoIT

Tuning Red Hat Linux 8.0 and 9.0

Apache and PHP

Redhat Linux 8.0 comes with Apache 2. Apache 2 is more secure out of the box, but many of the features that you use may be turned off by default. If you find that some things aren't working like they did in Apache 1.3 you may want to make some of the following changes:

To get .htaccess stuff working right and Server Side Includes(SSI) make the following changes in httpd.conf [/etc/httpd/conf/httpd.conf]:

<Directory>
Options FollowSymLinks Includes Indexes
AllowOverride AuthConfig Limit Options FileInfo
</Directory>

Options Indexes FollowSymLinks Includes
AllowOverride AuthConfig Limit Options FileInfo

To get ~username to work make the following changes in your httpd.conf:

Comment out (with #):
UserDir disable
Uncomment:
UserDir public_html

Some older PHP scripts don't work properly by default. If you are having trouble with your PHP pages try making these changes:

Add the following line to httpd.conf:

AddType application/x-httpd-php .php .php3 .phtml

Edit the following line in httpd.conf :

DirectoryIndex index.shtml index.html index.php index.php3 index.html.var

PHP short tags are turned off be default. To turn them on make the following change in your php.ini [/etc/php.ini]:

short_open_tag = On

Sendmail

Sendmail only runs on the localhost by default. To get sendmail running on all interfaces comment out the following line in sendmail.mc [/etc/mail/sendmail.mc]. Then follow the directions at the top of the file to generate a new sendmail.cf.

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')

Man pages

If you have trouble viewing the man pages add the following line at the end of your csh.cshrc [/etc/csh.cshrc]:

setenv LANG C

 

 

Copyright © 2003 The Board of Regents of the University of Wisconsin System