note 96163 added to faq.databases
| From: | itkinon at yahoo dot com | Date: | Thu, 11 Feb 2010 19:36:09 +0000 |
| Subject: | note 96163 added to faq.databases | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-165884@lists.php.net to get a copy of this message | ||
Apache 2.2.14 /PHP 5.2.12/MS-SQL 2008 integration
--------------------------------------------------
* Download Apache 2.2.14 for Windows Installer package 2008 32 bit
http://httpd.apache.org/download.cgi -->
apache_2.2.14-win32-x86-no_ssl
- follow the defaults when installing Apache
- stop Apache 2.2 service
* Download PHP 5.2.12 Windows Zip package for Windows 2008 32 bit;
(VC6 Thread Safe version needed for PHP used as an Apache module).
http://windows.php.net/download/ -->
php-5.2.12-Win32-VC6-x86.zip
- Extract the archive to C:\PHP
- Verify the installation: C:\PHP>php -v
- set the Environment Variable PHPRC=C:\PHP
- Rename 'C:\PHP\php.ini-recommended' to 'C:\PHP\php.ini'
- Edit C:\PHP\php,ini file:
modify: extension_dir = "C:\PHP\ext"
uncomment: extension=php_mssql.dll
- Add the lines below to "C:\Program Files\Apache Software
Foundation\Apache2.2\conf\httpd.conf"
PHPIniDir "C:/PHP/"
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
AddHandler application/x-httpd-php .php
- Add the lines below to "C:\Program Files\Apache Software
Foundation\Apache2.2\conf\mime.types"
application/x-httpd-php php
application/x-httpd-php-source phps
- Ensure that phpinfo.php file with the content: <?php phpinfo(); ?> is in the folder
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs
- Start Apache 2.2 service
- Verification of Apache/PHP integration: http://localhost/phpinfo.php --> 'PHP Version
5.2.12' info shows up
- Verification whether mssql' module is loaded: c:\php\php -m
All works like a charm. no additional steps needed ...
----
Server IP: 66.207.199.35
Probable Submitter: 208.65.73.110
----
Manual Page -- http://www.php.net/manual/en/faq.databases.php
Edit -- https://master.php.net/note/edit/96163
Del: integrated -- https://master.php.net/note/delete/96163/integrated
Del: useless -- https://master.php.net/note/delete/96163/useless
Del: bad code -- https://master.php.net/note/delete/96163/bad+code
Del: spam -- https://master.php.net/note/delete/96163/spam
Del: non-english -- https://master.php.net/note/delete/96163/non-english
Del: in docs -- https://master.php.net/note/delete/96163/in+docs
Del: other reasons-- https://master.php.net/note/delete/96163
Reject -- https://master.php.net/note/reject/96163
Search -- https://master.php.net/manage/user-notes.php