Tuesday, July 10, 2007

Cursed server configuration tool

http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Deployment_Guide-en-US/s1-apache-config-ui.html
Caution
Do not edit the /etc/httpd/conf/httpd.conf configuration file by hand if you wish to use this tool. The HTTP Configuration Tool generates this file after you save your changes and exit the program. If you want to add additional modules or configuration options that are not available in HTTP Configuration Tool, you cannot use this tool.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When changing Documentroot or Listen port, all goes wrong. It said
404 Not Found
The reuested URL / was not found on this server

Then when using the server configuration tool GUI stuff
change the virtual host web root there, it messed up http.conf, inserting a lot of empty lines at the beginning and at the end adding scattered grammars there without comments.

Solution:
uninstall server configuration tool.

Comments:
Linux configuration is based on configuration file---text parsing. Windows configuration is based on register table---table. Now Linux is trying to emulate windows GUI configuration tool but their underlying is still text, not format controllable. And configuration GUI actually is another interpretation of configuration grammar rule. Not necessary at all. Linux strength is at its developing power. It is compiler style.
Either totally convert to XML or an uniform format to all applications or just stay where it originally is.


Sample of simple index file

index.html
html Hello World! /html

index. php
?php phpinfo(); ?

Good Reference: http://www.google.com/codesearch

No comments: