![]() |
![]() |
|
Current Projects: PHP on XP Guide — NFO Viewer — Easy Reflections — Photon Storm — HotWire — FileGlider
Wednesday, April 11. 2007A Guide to using PHP 5 Extensions on WindowsTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
The php_oci8.dll and php_pdo_oci.dll extensions require Oracle 10g client libraries. You can get the Oracle Instant Client (it's free) if your current libraries are older.
The php_pdo_oci8.dll extension is built to work with Oracle 8+ client libraries. The php_oracle.dll extension is deprecated.
Thanks, I have updated the article to include your information. I didn't mention php_oracle.dll because it isn't included in the core 5.2.1 Win32 release, only in the PECL 5.2.1 zip (along with most other deprecated DLLs).
Do you mean that I can use the deprecated extensions in PHP 5.2.1. using PECL 5.2.1 zip, or definitely i can't use no more php_oracle.dll, and i must migrate to oci8?
You rock!
Thanks so much for posting this info. It helped me repair my installation in less than 5 minutes.
I didn't cover those DLLs because they are not in the core PHP distribution, but if you want to tell me where to get them I can check them out.
The DLL requirements should be exactly the same for IIS, and I bet the Path environment variable is just as vital too.
yes , Don't forget about us "PHP on IIS"
I want to know , How to work php on ISS I think that necessarily I must put php.ini on window system dir. please where you can send me a post ,, thanks !!!!!
Thanks this is a very well presented article. I thought it was going to solve my problems especially adding PHP to the PATH enviromental variable, but unfortunately I'm having some teething issues which alhough dont stop me running PHP5 are very frustrating!
I'm running Apache/2.0.59 (Win32) PHP/5.2.1 on XP Pro. I can run PHP under localhost fine (except I never get any error messages despite having the relevant ERROR variables set) However, when i try and run the php.exe or php_win.exe it complains of missing .dlls. for Informix and Oracle amongst others which I have commented out in php.ini. i run the php_info() script and it tells me that Configuration File (php.ini) Path = C:\Program Files\PHP\php.ini. It appears that whatever i do to php.ini is not being picked up I have even gone as far as deleting php.ini from C:\Program Files\PHP yet after I restart Apache, PHP is still working!? Please tell me I'm doing something stupid and how do i resolve this, is it something to do with the hpptd.config? Many thanks Simon
Why are you trying to run php.exe / php_win.exe ? If you are using Apache installed locally, you should really be using the Apache Module version of PHP (which isn't php.exe).
PHP has an in-built INI file, so if it can't ever find one, it has a bunch of default values to assume - which is what is happening here. Deleting the INI file will trigger this off. How is your httpd.conf set?
Thanks for the reply Richard.
The reason I was using *.exe was the freeware php editor that i found (PHP designer) asked me to point at it to use its debugging tool. I seem to be in a stituation that if i remove php.ini from C:\Windows (I have now set httpd.conf :PHPIniDir "C:\WINDOWS\") then I dont get the problems of the editor complaining about missing libraries and I get php compile error messages displayed on localhost, however I can't add extra extensions primarily mysqli and as I'm trying to develop a database application then thats not very pratical! If i do place php.ini in C:\Windows then I can access mysqli but I get the editor complaining about the missing libraries and more of an issue I do not get any error messages displayed from the php compiler even though error_reporting = E_ALL. This is my first go at running my own server, I'm finding the power of PHP most impressive, but the configuration issues a tad annoying! but i guess i'm learning .... (slowly) I've looked through the PHP Manual and it lists the places where Apache looks for the ini file and I've checked that there isn't a copy anywhere under Apache group. I thought I found the answer as there was a copy of php.ini under C:\ where the extra libraries were being installed but after removing that I'm still experiencing the same problems! I even went as far as adding a registry key HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath to point to C:\WINDOWS but still no joy! :o( any extra pointers will be greatly appreciated Simon
I'm in the the final stages of preparing a comprehensive guide to setting up PHP 4 and 5 on Windows XP, which I will host on my blog. I should have this ready today, so please check back later.
I look forward to reading your article Richard.
For the record (as I know there is nothing more frustrating when are you doing a search and you find your problem but not the solution) I have solved my problems. Firstly, http.conf did not have its Windows directory escaped; i.e. PHPIniDir "C:\WINDOWS\" rather than PHPIniDir "C:\\WINDOWS\\", Secondly, after doing a search of my entire C: drive i found a copy of php.ini in /PHP where error reporting is not set. thanks for your help Simon
If you had used forward-slashes you wouldn't need to escape the path:
PHPIniDir "C:/Windows/" The guide is nearly ready, uploading in the next hour.
Richard, before even going to loading extensions, i am really struggling to get Php 5 running. i was advised to load on apache 2.0.59 server, i have tried to run the phpinfo() file on local host to no avail.
I am not a fundi on this technology but i want to be able to update webpages then host them with our ISP, than to leave everything to be done by the service provider.
All I can suggest at this point is that you follow the guide I wrote here: http://wamp.corephp.co.uk - because it will cover the entire set-up process in extreme detail, and then you're in a position to worry about which extensions you want loaded.
I was having problems enabling php_ldap. It turns out that I had the wrong versions of libeay32.dll and ssleay32.dll in c:\windows\system32\
Recommend you make sure you have the right versions, I used the ones that came with the php source.
I just want to give a BIG thumbs up for this page. Had been ripping my hair of for php_exif and when I moved the mb_string before it, voila!
Thanks a bundle. If you're ever in Stockholm I'll buy you a beer.
I have some problem with php5.
We have many pages and uses php4 really good, from yesterday we need to change our server for make new pages and use php5, mysql 5.51 and apache 2.2.8. Our phpMyAdmin function very well, our MySQL too, but when we try to connect with our connect.inc.php in any web page, we can't and receive this message: Warning: mysql_query(): Access denied for user 'root@'localhost' (using password:NO) in ...... I review your doc Richard and change my PHP.ini but we have the same trouble. If you or any boda can help us, we apreciate and thanks a lot for thats. If same me some e-mail, i can send you my php.ini and my php.info page. Thanks a lot. |
QuicksearchCategoriesMy AS3 Blog
Photon Storm Great PHP links
C7Y PHP Podcast CorePHP is hosted by |