Last year I set up an Apache 2.2 server on my computer to do some developement work using EzPublish in multiple virtual host environment. One day, I happened to raise a question to Steven on how to get it configured so that mod_rewrite works on my server and I could debug my script locally instead of always having to test it on some remote server. I got the response from him that it does not work in Windows environment. Due to the fact that this particular feature was not critical to the whole operation, I left it as that.
Two days ago out of curiosity, I downloaded this new PHP social networking software called ElGG . Apparently it uses mod_rewrite extensively and provides no other alternative methods to access its function. I was thus forced into a corner. Hence I did what I did. I went to google.com and started researching. Interestingly, I read that some actually got mod_rewrite working on Apache server running on Windows XP.
I spent the next two days researching on the Apache architecture. The result I got was this assuming you already have multiple virtual host setup:
- uncomment LoadModule rewrite_module modules/mod_rewrite.so in your httpd.conf file
- add the following lines to your vhost.conf files
<Directory “…”>
#Tells your Apache webserver to detect for the .htaccess file in your directory
AllowOverride All
</Directory>
- The below was copied lock stock and barrel from Joomla. Copy and paste it into a .htaccess file on your webserver and place it at the root location
##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 – 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##
#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: ‘Options +FollowSymLinks’ may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url’s. If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
########## Begin – Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End – Rewrite rules to block out some common exploits
# Uncomment following line if your webserver’s URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)
# RewriteBase /
########## Begin – Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End – Joomla! core SEF Section
If you are still having problems after all these steps contact me. I will help set it up for your nicely.
Pasha went tracking in New Zealand in December and brought back a bone penchant from the Maori’s. It is now hanging off my neck along with the previous one I acquired years ago before I left the land. This new penchant symbolizes a new beginning.
14th of January 2010, inevitably I was brought out of Singapore, if not Philippines then Korea. I eventually arrived in Korea and dropped by at Mansu’s place. We met when we were back in Auckland for student exchange.
Upon my return to Singapore Joseph another friend whom I met back in Auckland dropped by in Singapore for a visit.
The name New Zealand seems very visible of late. Just a while ago, I saw this advertisement by the New Zealand Government specifically targetted at Singaporeans. It was like an open invitation to drop by in Kiwiland to stay for long if we want to.
The northern winds has been blowing incessantly still, despite the fact that it is now February nearing the end of its season. Strangely, I have always this acute case of wanderlust when the winds from the north come visiting in Singapore.
Over supper, I kept turning these occurrences one after the other in the back of my mind. Is this a sign? Has Fortuna finally shuffled her cards and dealt a card from a new deck. This new path seems so clear all of a sudden and it is beckoning me along. And it seems to be pointing to the land of the Long White Clouds once again. Perhaps the stars have finally shifted. Coincidentally it occurred just when the predestined quest of aiding Alena in Singapore came to an end.
Inshallah as Sean always says. Perhaps I should settle all outstanding matters over here in Singapore and explore what New Zealand has to offer. If there is one thing Alena has giving me during the past one year’s quest, it is the knowledge that while my ascendence is ruled by Saggittarius (one constantly struck with an incessant wanderlust), my house of Sun ruled by Leo (The eternal pilgrim seeking the Holy Grail) deems that I will start craving for a glorious battle when the time comes.
I wonder what is the possibility of setting up a supply chain to New Zealand and Australia?
Already I have set my eyes on this office space which I am planning to occupy soon when the next project comes in.
After hours infront of my laptop, I have managed to install Windows Xp on it with the necessary developement environment to do my work while I am over in Korea(Apache, MySql PHP, SMPT, FTP.) Even more than, I have even managed to setup virtual PC on my computer. Next thing next, I will most likely be installing Windows 2008 Server to allow testing for my Moodle System which uses Windows Active Directory via LDAP.
All is looking good thus far.
Apaprently it seems the past few days I have been waking up with this feeling of having a hung over despite not even havving a drop of alcohol in the System. Must be the One-Piece Marathon I have been doing recently.
Today being a quiet day as it is, I have decided to do a major system overhaul on my new laptop. After much consideration, I have decided that it would be for the best if I have windows Xp installed on it instead. The new Windows 2008 server though is good for a testing environment due to the fact that its running on 64bits is not really compatible with some of the softwares I use for developing my stuff. Once done, I will most likely be bringing my old laptop down to Sim Lim Square to have a hard disk upgrade. The current 70GB is clearly not sufficient. Ouch.
Pray keep my fingers crossed nothing major comes up and disrupts this overhaul process. It is like attacking a crab or prawn when it is shelling, a most vulnerable time.
http://www.tripcart.com/usa-regions/Southern-California-Coast.aspx#Guide||||||Top||||||||
The map and the icons on the right side seems really cool. Will be hijiacking some javascripts from the site later in the day.
Recently I realised i have become more and more a skeptic instead of the optimist I used to be. Back in the old days, I do just take into consideration the actual path of how things should be and assume the reality would go along those ideal paths. Yup I have failed quite a few times because of these assumption of mine. Idealist be damned.
Nowadays, presented with an idea no matter how bright or beautiful it seems on first sight, I would unconciously test out the concept mentally to check for exceptional scenarios that would cause the whole downfall of things. Thereafter contemplate on tactics on how to resolve these scenarios should they occur. In the event of a lack of resolution put it on hold and come back to it at a much later time. Progress along the path seems slower now than it used to be.
Being a skeptic is indeed a painstaking task and not a role of brain lazy people.
Solution :
Go to C:\program files\mysql\bin\
Copy this file libmysql .dll to C:\windows\system32\
System:
Windows XP
Why it occurred:
You originally installed a previous version of MySQL probably 4.+++ and then tried to install a new version MYSQL version 5++
Symptoms:
When you run your apache server you see this error in the error.log file of your Apache server
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:/Program Files/PHP/ext\\php_mysql.dll’ – The specified module could not be found.\r\n in Unknown on line 0
… and it happened despite php_mysql.dll already being in place
This was sourced from google for my personal reference but feel free to share it.
Last week, we announced that the video units feature will soon be retired. Our announcement has created some confusion, so we thought it would be helpful to outline how Google will still continue to support revenue opportunities for video content owners.
The video units feature allowed publishers to create video unit players, with YouTube partner content and accompanying ads, within their AdSense accounts. They could then embed this special player into their web pages, and revenue generated from the ads would be split between the YouTube partner, the AdSense publisher, and Google. Although we’re retiring the video units feature, we’ll continue to offer the following monetization solutions to video content creators:
AdSense for video
AdSense for video gives video owners the ability to earn money from videos they create or own. They can run placement targeted instream video ads (pre, mid, post rolls) and graphical overlays or contextually targeted text ads in Flash players, and the ad revenue will be split between the video owner and Google.
Current AdSense for video publishers include Encyclopedia Britannica, Demand Media, and College Humor. If you’d like more information about the program or how to apply, visit our microsite.
YouTube Partner Program
Similarly, the YouTube Partner Program enables popular content creators to share in advertising revenue from their own videos hosted on YouTube. Participants can choose the videos on which they’d like to show overlay ads or accompanying banner ads. These videos earn them money whether they’re viewed on YouTube or embedded onto web pages elsewhere online, and the revenue generated from these ads will be split between the YouTube partner and Google.
The YouTube Partner Program has thousands of participants from ten countries around the world, and is accepting applications. To learn more about the program, visit the Partnerships Benefits page.
Apparently this site got so popular it just got crashed.
Apparently it seems the Google Map API isnt all that stable after all. On and off while loggin into my site ThingsToDoSingapore.com I encounter this problem of GMap2 not defined.
GMap2 is apparently the core object class that one instatiates a map object from. I have been researching over the internet to find a work around this problem but it seems this is a very common problem that one faces when using the Google Map API.
This is very painful indeed as it is costing me traffic volumn. Ouch!