Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: advanced on June 04, 2006, 11:36:26 PM

Title: Apache's config file where?
Post by: advanced on June 04, 2006, 11:36:26 PM
I am using sme 7.0 for the first time. and I used the search but it didn't get me anywhere.

I want to know the location of the apache config file, so I can change some settings. Like for example I want it to start with portal.php not index.php.

please help many thanks.
Title: Apache's config file where?
Post by: crazybob on June 05, 2006, 03:16:52 AM
You should not edit conf files directly. If you do, things will revert back to what they were, and your changes will be lost.
What you need to change is http.conf, and it needs to be changed using the template system.
If you follow the steps below, it should get the results you are looking for.
I recommend using something like "putty" to connect to your server. that will allow you to use copy and past most of the lines below.

I beleive this should give you what you want, or at least a good start.


cd /

mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf

cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/50DirectoryIndex00 /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/

pico /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/50DirectoryIndex00

add portal.php to the list of items in the line that starts with DirectoryIndex

exit with save. (clt-x, y, enter)

Expand the template

/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf


restart apache

apachectl restart

If it messes things up too badly, just remove the template fragment, re-expand the template and restart apache.

Bob
Title: Apache's config file where?
Post by: advanced on June 05, 2006, 11:52:13 AM
thank you so much bob. This was exactly what I needed.

It works perfectly.