Recently I need to maintain multiple websites’ source code (PHP) at the same time at local host. Every time I need test another website, I need to modify the httpd.conf configuration file and restart the Apache server. After some researches on the internet, I manage to find a way to setup multiple virtual host.
Install Apache Httpd in Windows Vista
Just bought a Dell notebook installed with Windows Vista recently. I tried to install the Apache Httpd web server in Windows Vista but failed and keep getting “error” box every time the computer is started up.
Enhanced WordPress DB class
I frequently see WordPress blogs encounter mysql connection lost or exceeded user connections limit error when I’m browsing their websites. This problem normally happens on a WordPress blog that hosts on a shared hosting, especially those busy server where too many users sit on the same server.
Enable .htaccess and url rewriting in Apache for Windows
When I try to setup PHP and Apache in my notebook, I try to enable the .htaccess setting in apache’s httpd.conf. After I tried for a few hours (YES, a few hours) at my notebook and google-ing on the internet, finally I found the complete solution.
I record the steps here so that it can help those who want to enable .htaccess and url rewriting in Apache for Windows and also for my own reference in future.
1. Make sure you have setup apache and php correctly. Make sure that you can run php scripts without any problem.
2. Use notepad to open httpd.conf config file. Make use the line “LoadModule rewrite_module modules/mod_rewrite.so” is un-commented.
3. Under “<directory XXX></directory>” section, change the line “AllowOverride None” to “AllowOverride All“.
4. Change the line “AccessFileName .htaccess” to “AccessFileName htaccess“. This is because in Windows, we can’t have a file with filename that starts with a dot.
5. Save the changed file and restart Apache Windows Service. You can then use the file htaccess to process your url rewritting.
Renovation for my blog
I uploaded my new theme last few days and it runs without any problem (so far).
I also deleted the “Archives” page because I already added it at my sidebar.
I also deleted the “WordPress Theme” page because I feel the old theme is quite ugly.. hehe.
I also added a “About” page.
Just now when I browse to my “About” page, I saw a Google Video Ads. This is the first time I see this type of ads and somemore it is on my own blog :)
