By following the last steps, you might wonder why your PHP on IIS wont work.
This is the continuation of the configuration.
Properties side:
1. Open IIS.
2. Go to Web Sites -> Default Wed Sites and right click.
3. Choose Properties.
4. Go to Home Directory and check Read below Local Path.
5. Choose Execute Permissions to Script Only, and click Configuration.
7. Look at Application Extensions. If .php is available, choose it and click Edit; else, click Add.
8. You can either choose whether you like ISAPI or CGI.
for ISAPI:
a. Click Browse, look for php5isapi.dll inside C:\php, and click OK.
b. Set Extension to .php
for CGI:
a. Click Browse, look for php-cgi.exe, and click OK.
b. Set Extension to .php
8. Click OK.
9. Go to ISAPI Filters and Click Add.
10. Browse for php5isapi.dll, and click OK.
Permissions side:
1. Right click on Default Web Sites and choose Permissions.
2. Click on every user and check Full Access - Allow. (I just simply clicked all, just to make sure it will work.)
3. Click Apply, OK.
4. Go to Web Service Entensions and click Add a new Web servide entension...
5. Type Extension name as .php (or anything you like)
6. Click add and Browse.
for ISAPI:
a. Look for php5isapi.dll inside C:\php, and click OK.
for CGI:
a. Look for php-cgi.exe, and click OK.
7. Check Set extension status to Allowed and click OK.
8. Right click MACHINENAME(local computer) -> All Tasks -> Restart IIS...
9. Open internet browser and type http://localhost/phpinfo.php.
Saturday, April 19, 2008
Kiss - J Entercom
I just simply like this clip.
It's just a small clip, but it reached my emotional side.
hahaha
Anyway...
Enjoy wathing it!ü
P.S.
If you want to have a copy of it, simply click here.
Thanks!ü
Friday, April 18, 2008
Naruto Shippuuden 55
Wednesday, April 16, 2008
Configure MySQL to connect with PHP
After you installed MySQL, PHP, and a Web Server, you still have to configure the connection between the three.
Since PHP and Apache or IIS is already configured (by following the past instructions), you only have to configure MySQL and PHP.
To configure the connection, simply follow the steps:
1. Open C:\php
2. Copy libmysql.dll and paste to C:\WINDOWS\system32
3. Open C:\WINDOWS\php.ini using Notepad (or Wordpad)
4. Search and change:
extension_dir = "C:\php" to extension_dir = "C:\php\ext\"
;extension = php_mysql.dll to extension = php_mysql.dll
;extension = php_mysqli.dll to extension = php_mysqli.dll
5. Save and close php.ini
6. Open http://localhost:8080/phpinfo.php (for Apache) or http://localhost/phpinfo.php (for IIS)
7. search for MySQL and MySQLi table
8. MySQL and MySQLi tables are present -- well done!
Since PHP and Apache or IIS is already configured (by following the past instructions), you only have to configure MySQL and PHP.
To configure the connection, simply follow the steps:
1. Open C:\php
2. Copy libmysql.dll and paste to C:\WINDOWS\system32
3. Open C:\WINDOWS\php.ini using Notepad (or Wordpad)
4. Search and change:
extension_dir = "C:\php" to extension_dir = "C:\php\ext\"
;extension = php_mysql.dll to extension = php_mysql.dll
;extension = php_mysqli.dll to extension = php_mysqli.dll
5. Save and close php.ini
6. Open http://localhost:8080/phpinfo.php (for Apache) or http://localhost/phpinfo.php (for IIS)
7. search for MySQL and MySQLi table
8. MySQL and MySQLi tables are present -- well done!
Configure PHP in IIS
Installing PHP in IIS is quite tiring than PHP and Apache.
The following steps are the easiest ways I know.
PHP side:
1. Open C:\php\
2. Copy pphp5ts.dll to C:\Inetpub\wwwroot and C:\WINDOWS\system32
3. Copy php.ini-dist to C:\Windows and rename it to php.ini
4. Open C:\WINDOWS\php.ini
5. Find the following and change:
doc_root = to doc_root = "C:\Inetpub\wwwroot"
;cgi.force_redirect = 1 to cgi.force_redirect = 0
6. Save and close php.ini
IIS side:
1. Right click My Computer and choose Properties
2. Go to Advanced tab -> Environment Variables
3. Search for PATH, then click Edit
4. Add this at the end of the line:
;C:\php
5. Click OK and reboot the computer.
6. Go to Control Panel -> Administrative Tools -> Internet Service Manager
7. Right click Default Web Site and choose Properties
8. Go to Home Directory tab
9. Click Execute Permissions dropdown menu and choose Scripts Only
10. Click Configuration and press Add
11. Set Executable to C:\php\php5isai.dll and set Extension to .php
12. Press OK
13. Go to Isapi Filters tab and click Add
14. Set Filter Name to PHP and Executable to C:\php\php5isapi.dll
15. Click Apply, then Select All, then OK.
Restart side:
1. Right click MACHINENAME (local computer) -> All Tasks -> Restart IIS
2. Open Notepad and paste the following:

3. Save as phpinfo.php
4. Save phpinfo.php to C:\Inetpub\wwwroot
5. Test if php will be shown (http://localhost/phpinfo.php)
6. "PHP" + "tables" + "colors" etc -- well done!
The following steps are the easiest ways I know.
PHP side:
1. Open C:\php\
2. Copy pphp5ts.dll to C:\Inetpub\wwwroot and C:\WINDOWS\system32
3. Copy php.ini-dist to C:\Windows and rename it to php.ini
4. Open C:\WINDOWS\php.ini
5. Find the following and change:
doc_root = to doc_root = "C:\Inetpub\wwwroot"
;cgi.force_redirect = 1 to cgi.force_redirect = 0
6. Save and close php.ini
IIS side:
1. Right click My Computer and choose Properties
2. Go to Advanced tab -> Environment Variables
3. Search for PATH, then click Edit
4. Add this at the end of the line:
;C:\php
5. Click OK and reboot the computer.
6. Go to Control Panel -> Administrative Tools -> Internet Service Manager
7. Right click Default Web Site and choose Properties
8. Go to Home Directory tab
9. Click Execute Permissions dropdown menu and choose Scripts Only
10. Click Configuration and press Add
11. Set Executable to C:\php\php5isai.dll and set Extension to .php
12. Press OK
13. Go to Isapi Filters tab and click Add
14. Set Filter Name to PHP and Executable to C:\php\php5isapi.dll
15. Click Apply, then Select All, then OK.
Restart side:
1. Right click MACHINENAME (local computer) -> All Tasks -> Restart IIS
2. Open Notepad and paste the following:

3. Save as phpinfo.php
4. Save phpinfo.php to C:\Inetpub\wwwroot
5. Test if php will be shown (http://localhost/phpinfo.php)
6. "PHP" + "tables" + "colors" etc -- well done!
Tuesday, April 15, 2008
Manually Configure Apache and PHP in Windows
Installing and configuring Apache and PHP in Windows is very easy - simple copy-paste-edit-save method is OK. It looks hard to do, but (I tell you) I, myself, did it in no time!
The instructions to install Apache and PHP in Windows OS are as follows:
Apache side:
1. Install Apache normally
2. Open .\Apache\conf\httpd.conf using Notepad (or Wordpad)
3. Search for "Listen 80"
4. Change it to "Listen 8080"
5. Save httpd.conf
6. Start Apache
7. Test if Apache is working (http://localhost:8080)
8. "It works!" -- well done!
PHP side:
1. Extract PHP zip files to C:\php
2. Copy php.ini-dist from C:\php to C:\Windows
3. Rename php.ini-dist to php.ini
4. Copy php5ts.dll from C:\php to C:\Windows\system32
5. Open C:\Windows\php.ini using Notepad (or Wordpad)
6. Do the following inside php.ini:
change extension_dir = ./ into extension_dir = "C:\php"
change doc_root = into doc_root = ".\Apache\htdocs\"
7. Close and save php.ini
8. Open .\Apache\conf\httpds.conf using Notepad (or Wordpad)
9. Add the following lines below:
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
10.Save httpd.conf
The instructions to install Apache and PHP in Windows OS are as follows:
Apache side:
1. Install Apache normally
2. Open .\Apache\conf\httpd.conf using Notepad (or Wordpad)
3. Search for "Listen 80"
4. Change it to "Listen 8080"
5. Save httpd.conf
6. Start Apache
7. Test if Apache is working (http://localhost:8080)
8. "It works!" -- well done!
PHP side:
1. Extract PHP zip files to C:\php
2. Copy php.ini-dist from C:\php to C:\Windows
3. Rename php.ini-dist to php.ini
4. Copy php5ts.dll from C:\php to C:\Windows\system32
5. Open C:\Windows\php.ini using Notepad (or Wordpad)
6. Do the following inside php.ini:
change extension_dir = ./ into extension_dir = "C:\php"
change doc_root = into doc_root = ".\Apache\htdocs\"
7. Close and save php.ini
8. Open .\Apache\conf\httpds.conf using Notepad (or Wordpad)
9. Add the following lines below:
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
10.Save httpd.conf
Verification side:
1. Restart Apache
2. Open Notepad and paste the following:
1. Restart Apache
2. Open Notepad and paste the following:

3. Save as phpinfo.php
4. Save phpinfo.php to .\Apache\htdocs
5. Test if php will be shown (http://localhost:8080/phpinfo.php)
6. "PHP" + "tables" + "colors" etc -- well done!
4. Save phpinfo.php to .\Apache\htdocs
5. Test if php will be shown (http://localhost:8080/phpinfo.php)
6. "PHP" + "tables" + "colors" etc -- well done!
Subscribe to:
Posts (Atom)