mod_speling for cPanel - Case sensitive
The module’s source code was in:
/home/cpapachebuild/buildapache/apache_1.3.X/src/
modules/standard/
So now we use apxs to compile it and put it where we want (again, one long line):
/usr/local/apache/bin/apxs -c /home/cpapachebuild/buildapache/apache_1.3.X/src/
modules/standard/mod_speling.c -o /usr/local/apache/libexec/mod_speling.so
What that does is compile just the module source code and then places the compiled output in the “libexec” directory so apache can find it when it starts up.
Now edit your httpd.conf file, you must add these lines to the end of their respective sections (where other things like this are listed):
pico -w /etc/httpd/conf/httpd.conf
Add following lines -
LoadModule speling_module libexec/mod_speling.so
AddModule mod_speling.c
(save it then use the command below to check the conf file)
service httpd configtest
If that all works then you can try a httpd restart.
All that and no recompiling of apache! This is a interesting module, now you can type PiCtUrEs.html even though the actual file is pictures.html and it will still find the file.
Don’t forget to add “CheckSpelling On” into your .htaccess file in each site you want this to work in.
If that all works then you can try a httpd restart.
All that and no recompiling of apache! This is a interesting module, now you can type PiCtUrEs.html even though the actual file is pictures.html and it will still find the file.
Don’t forget to add “CheckSpelling On” into your .htaccess file in each site you want this to work in.
NOTE : For new EasyApache3 - mod_speling options is available during Apache/PHP compilation.
![]()









