Configuring PHP5 And MySQL In Apache HTTP Server 2.2.* In Windows

This post assumes you already have Apache HTTP Server 2.2.* up and running under a Windows OS. Download the source of PHP5 and MySQL in their official websites and install them. Gone are the days when configuring PHP and MySQL was a big hassle. To have PHP5 and MySQL up and running, add the following code in the httpd.conf (Apache HTTP Server’s configuration file).

LoadModule php5_module "c:/php/php5apache2_2.dll"
 
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php .php5
Action application/x-httpd-php "/php/php-cgi.exe"
SetEnv PHPRC "C:/php"
PHPIniDir "c:/php"
 
<Directory "c:/phpweb">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

This assumes your PHP directory is located in c:/php. Also change the document root. Look for this keyword in the httpd.conf file, DocumentRoot and change the path to where you want to store all your PHP files. In this case, c:/phpweb. The purpose of the <Directory> tag is to allow file permission access so that the PHP compile can access PHP files and execute the scripts.

Also look for the keyword index.html and add an index.php before it so that it can read those kind of files first before looking for index.html.

Make sure libmysql.dll from c:/php is copied to the c:/windows/system32/ folder.
To create a php.ini file, there should be a file called php.ini-recommended. Copy that file and name it to php.ini.
Under the php.ini file, look for these two lines and remove the semicolon.

;extension=php_mysql.dll
;extension=php_mysqli.dll

Look for this extension_dir keyword and place the value c:/php/ext. It should then look like this.

extension_dir = "c:/php/ext"

Then, look for this keyword short_open_tag and set it to on. This will enable you to use just <? ?> rather than be forced to use <?php ?>.

That’s it. Create a sample PHP file and place the code below.

<? phpinfo(); ?>

Restart your Apache HTTP Server and check the contents of the PHP file. If you see a MySQL table entry, then you’re good to go.

Note: Creating MySQL accounts is a hassle. I suggest you use a MySQL client software when creating user accounts. I use SQLyog.

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


(No Ratings Yet)
 Loading ...

Blackjack Stats

All you need to know about black stats and more. Whether learning basic blackjack strategies or opting for the advanced ways to win, Blackjack Stats gives you a unique guide to more than 20,000 tables and charts. Get access to its vast list of blackjack calculators to aide you in your desire to win the game. Have a look see with a variety of charts and tables at your disposal including a flexible set of search options for you to use, all provided by its simulator.

What is a guide for if you cannot play the game right? The site offers online casino links that offer the blackjack game, resources that may assist you in your blackjacking needs and a guide to help you pick safe online casinos to play on the net. If you wish to play for fun to make you get used to playing blackjack, the site offers one just for you. Remember, blackjack is not played in only 1 deck of cards. Some have it as 2 or more deck of cards. Even payouts and game play vary from table to table. Blackjack Stats simple has more than enough tips and guides to help you understand the variety of online blackjack games out there

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


(No Ratings Yet)
 Loading ...

Online Bingo Sites

Bingo fans can also play bingo online. This game can be found as part of an online casino software. But you do not need to go to an online casino just to play in one. If you only want bingo, onlinebingosites.net provides a directory of the best sites that offer bingo online. Each site in its directory has a short review giving you an idea on what the bingo site offers. You can even play for free if you want to get a feel on how playing bingo online is before heading off to real bingo online sites that lets you play for real money. Or better yet, get the software from any of the bingo sites listed in its directory and play for free first.

Rather than having to find a real bingo place in your area to play real bingo, play bingo online instead. The looks may be different from other bingo games online but the game play is the same. Have fun and enjoy playing bingo online, even together with other people from all over the world. Why bother playing in an offline bingo place when you can play bingo online, all from the comfort of your home, at anytime.

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


(No Ratings Yet)
 Loading ...

Slot Machines ABC

Slot machines come in all shapes. There is the simplest and common 3 reel slot while others may vary in rows and columns like 4×4 or 5×5 slot. Slot Machines ABC has reviews of some of the most popular online slot machines while also having reviews of slots created by online gambling software providers.

Each slot game that can be found in online casinos provided by the internet gambling software provider is described in detail including particulars on how to be able to win and how much the payout amounts are when winning combination symbols come up. If you wish to familiarize yourself with the picture symbols that online slot machines use, you should take time in doing so because some symbols have special uses like being a wildcard.

Familiarizing how each slot game works is vital to playing the game. It is not a matter of placing coins in the coin slot, pressing the spin button or pulling the handle, and that is it. Explanations on how real slots work is also explained here, even more so how online slots relate to that. It even contains terms and jargons that the slot industry uses. Everything a slot player needs to know is here, and more.

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


(No Ratings Yet)
 Loading ...