473,609 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP 5 and PEAR

I've been using PHP for a while now - and have recently been trying
to set up PHP, MySQL and Apache on Windows (for a client).

It seems like all the PEAR stuff under PHP 5 doesn't work out of the box.

It took me a while to track down the go-pear.bat file in the root -
what with all the other garbage in there.

Shouldn't this file get at least a mention in:

install.txt and /PEAR/go-pear.php

....?

The installation instructions in /PEAR/go-pear.php for Windows
seem rather out of date - and sent me off in totally the wrong
direction :-(
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #1
13 3020
I, Tim Tyler <ti*@tt1lock.or g> wrote or quoted:
I've been using PHP for a while now - and have recently been trying
to set up PHP, MySQL and Apache on Windows (for a client).

It seems like all the PEAR stuff under PHP 5 doesn't work out of the box.

It took me a while to track down the go-pear.bat file in the root -
what with all the other garbage in there.

Shouldn't this file get at least a mention in:

install.txt and /PEAR/go-pear.php

...?

The installation instructions in /PEAR/go-pear.php for Windows
seem rather out of date - and sent me off in totally the wrong
direction :-(


After:

* Installing PHP 5.0.0 and...
* Running the "go-pear.bat" file;

php_ini(); now gives:

include_path .;C:\php5\pear .;C:\php5\pear

I /swear/ I have never mentioned C:\php5.

My PHP installation is at the "classical" location: C:\php.

C:\php5 isn't mentioned in my php.ini file.

It isn't mentioned in my environmental variables.

It looks like it /might/ be a hangover from the development days -
when the programmers probably had multiple versions of PHP installed.

I can hack around this problem - but would quite like to track down
the cause - if only to find out who is to blame ;-)

Does anyone have any idea where this incorrect path might be coming from?
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #2
Tim Tyler <ti*@tt1lock.or g> wrote or quoted:
After:

* Installing PHP 5.0.0 and...
* Running the "go-pear.bat" file;

php_ini(); now gives:

include_path .;C:\php5\pear .;C:\php5\pear

I /swear/ I have never mentioned C:\php5.

My PHP installation is at the "classical" location: C:\php.

C:\php5 isn't mentioned in my php.ini file.

It isn't mentioned in my environmental variables.

It looks like it /might/ be a hangover from the development days -
when the programmers probably had multiple versions of PHP installed.

I can hack around this problem - but would quite like to track down
the cause - if only to find out who is to blame ;-)

Does anyone have any idea where this incorrect path might be coming from?


*Probably* from the registry - since executing the:

PEAR_ENV.reg file and rebooting Apache seems to have rectified the
situation.

I thought unix programmers gave the registry a wide berth ;-)

My next problem is that communication with MySQL (latest version)
doesn't work.

PHPMyAdmin comes up with:

``Cannot load MySQL extension, please check PHP Configuration'' .

This happens on PHP 5.0.0 - where the MySQL integration is
*supposed* to be built in. It happens on the very latest
version of PHPMyAdmin - as well as with earlier versions.

Other attemps to access database using other programs also
produce similar errors - for instance the PEAR that comes
with PHP 5.0.0 says:

``Error during database connection:DB Error: extension not found''

Does anyone else have PHP 5.0.0 and MySQL talking to each
other under Windows? - and if so, what's the mystical
incantation you used to set things up? ;-)
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #3
On Tue, 27 Jul 2004 19:37:55 +0000, Tim Tyler wrote:
[ snip ]

``Cannot load MySQL extension, please check PHP Configuration'' .

This happens on PHP 5.0.0 - where the MySQL integration is
*supposed* to be built in. It happens on the very latest
version of PHPMyAdmin - as well as with earlier versions.

[ snip ]
I haven't tried PHP5 yet, but from the ChangeLog:
Version 5.0.0 Beta 1
29-Jun-2003

* Removed the bundled MySQL client library. (Sterling)
PHP5 seems now to be bundled with SQLite and enabled by default.

How to get them successfully talking, that I have no idea.. my servers run
on a competent OS =P

Regards,

Ian

--
Ian.H
digiServ Network
London, UK
http://digiserv.net/

Jul 17 '05 #4
Ian.H <ia*@windozedig iserv.net> wrote or quoted:
On Tue, 27 Jul 2004 19:37:55 +0000, Tim Tyler wrote:

``Cannot load MySQL extension, please check PHP Configuration'' .

This happens on PHP 5.0.0 - where the MySQL integration is
*supposed* to be built in. It happens on the very latest
version of PHPMyAdmin - as well as with earlier versions.


[ snip ]

I haven't tried PHP5 yet, but from the ChangeLog:

Version 5.0.0 Beta 1
29-Jun-2003

* Removed the bundled MySQL client library. (Sterling)

PHP5 seems now to be bundled with SQLite and enabled by default.

How to get them successfully talking, that I have no idea.. my servers run
on a competent OS =P


http://www.php.net/manual/en/faq.dat...ses.mysql.php5

....seems to have the answers I seek. I'll see if it works.

Assuming SQLite is not GPL'd then I'll probably ditch MySQL completely -
and switch to using SQLite.

I /usually/ run PHP under Linux - but unfortunately, some of my clients
are now likely to be wanting to run it under Windows :-|
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #5
Tim Tyler <ti*@tt1lock.or g> wrote or quoted:
Ian.H <ia*@windozedig iserv.net> wrote or quoted:
On Tue, 27 Jul 2004 19:37:55 +0000, Tim Tyler wrote:

``Cannot load MySQL extension, please check PHP Configuration'' .

This happens on PHP 5.0.0 - where the MySQL integration is
*supposed* to be built in. It happens on the very latest
version of PHPMyAdmin - as well as with earlier versions.


[ snip ]

I haven't tried PHP5 yet, but from the ChangeLog:

Version 5.0.0 Beta 1
29-Jun-2003

* Removed the bundled MySQL client library. (Sterling)

PHP5 seems now to be bundled with SQLite and enabled by default. [...]


http://www.php.net/manual/en/faq.dat...ses.mysql.php5

...seems to have the answers I seek. I'll see if it works.


I changed php.ini as follows:

extension_dir = "./"

....to...

extension_dir = "C:/php/ext/"

....and...

;extension=php_ mysql.dll

....to...

extension=php_m ysql.dll

....and I copied every single DLL file from C:\php to C:\WINNT.

....and it now /seems/ to be working OK ;-)
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #6
On Tue, 27 Jul 2004 19:37:55 GMT, Tim Tyler <ti*@tt1lock.or g> wrote:
Does anyone else have PHP 5.0.0 and MySQL talking to each
other under Windows?


There are so many more logical ways to run Apache/PHP/Mysql. Why on
earth stick something as insecure as Windows in the mix?

Seriously, check out Solaris for Intel if you need a big company
behind you (aka no linux).

--
gburnore@databa six dot com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³ÝÛº ݳ޳ºÝ³Ý³Þ³ºÝ³Ý ÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³ÝÛº ݳ޳ºÝ³Ý³Þ³ºÝ³Ý ÝÛ³
DataBasix | ÝÛ³ºÝ³Þ³ºÝ³³ÝÛº ݳ޳ºÝ³Ý³Þ³ºÝ³Ý ÝÛ³
| ÝÛ³ 3 4 1 4 2 ݳ޳ 6 9 0 6 9 ÝÛ³
Black Helicopter Repair Svcs Division | Official Proof of Purchase
=============== =============== =============== =============== ===============
Want one? GET one! http://signup.databasix.com
=============== =============== =============== =============== ===============
Jul 17 '05 #7
On Tue, 27 Jul 2004 20:36:42 GMT, Tim Tyler <ti*@tt1lock.or g> wrote:
...and I copied every single DLL file from C:\php to C:\WINNT.


You were doing good up to this point - if you can find what you copied, get
rid of them.

The right way to get a set of DLLs to be loadable by a process is to add the
directory to the PATH environment variable. If you start copying stuff into the
Windows system directories you end up in DLL Hell pretty easily.

--
Andy Hassall <an**@andyh.co. uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Jul 17 '05 #8
Andy Hassall wrote:

The right way to get a set of DLLs to be loadable by a process is to
add the directory to the PATH environment variable. If you start
copying stuff into the Windows system directories you end up in DLL
Hell pretty easily.


I have a somewhat different problem: after setting everything right (the
DLLs are in the right location, the PATH variable is set correctly etc) I
have managed to change the "The specified module could
not be found" error into "The operating system cannot run %1". The issue
appears when I try to load the php_ldap.dll extension, and depends whether
the ssleay32.dll is present in the PATH ('cannot run' error) or not ('could
not be found' error, which makes sense).

Can that be fixed somehow, or is it a PHP5 bug? I beg for answers, since
this is a rather rgent matter for me.

Thanks,

Berislav
Jul 17 '05 #9
Gary L. Burnore <gb******@datab asix.com> wrote or quoted:
On Tue, 27 Jul 2004 19:37:55 GMT, Tim Tyler <ti*@tt1lock.or g> wrote:

Does anyone else have PHP 5.0.0 and MySQL talking to each
other under Windows?


There are so many more logical ways to run Apache/PHP/Mysql. Why on
earth stick something as insecure as Windows in the mix?


Because that's what one of my clients wants to use.

Basically they are a Windoze shop, already have a windows box - and don't
think they'll be able to swing putting anything else on the box with the
rest of the IT department.

Getting them to use PHP in the first place is quite good enough for me.

Much of their existing server-side material and experience is with ASP -
and I don't want to make the decision to use PHP any harder for them by
telling them they need to install an OS they have little experience of.

Security isn't much of an issue. Their system is facing an existing
intranet, and it isn't ever likely to be made publicly accessible.

What it seems they mostly want is not security and stability -
but the ability to put together something that works rapidly.

They can always upgrade their server to a proper piece of equipment
at a later date - if they decide they need to do so.
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3543
by: Sandro Dentella | last post by:
I need to use a class to handle mbox files that uses PEAR. Since I'm using Debian (both woody and, I simply apt-get(ed) php4-pear but I can't use it becouse I get the error: Warning: dl(): Unable to load dynamic library '/usr/lib/php4/20020429/PEAR.so'- /usr/lib/php4/20020429/PEAR.so: cannot open shared object file: No such file or directory in /home/sandro/src/php/mbox/PEAR.php on line 11 in fact PEAR.so is not there, nor it seems...
3
7231
by: junkmail | last post by:
on a win 2k server apparantly it is saying i dont have it. or it cant find it. im using mySQL 4.1 php 4.3.x apache 3.0.53 im new to php and am doing some tutorials, but when i run the sripts it tells mea it can not run pear/soap, because it can not be found.the book im learning form does not tell me how to install or configure this extension. so now im looking for help.
1
2042
by: DJ Majestik | last post by:
OK, I am new to the whole PEAR/Smarty templating thing. I am trying to setup my directory structure correctly. If someone could weigh in and see if I have this setup "right", I would appreciate it. Directory structure: pear/ db/ db/ DB/ doc/
3
2193
by: David | last post by:
I installed the Pear program and set the include path in php.ini to point to the pear dir. I have a program which <? require_once("DB.php"); ?> This produces the error "Class 'PEAR_Error' not found in c:\PHP\pear\PEAR\DB.php on line 868"
2
5773
by: Alan Prescott | last post by:
I'm running SuSE Linux 9.3, fully up to date running # pear install db responds with ... downloading DB-1.7.6.tgz ... Starting to download DB-1.7.6.tgz (124,807 bytes) .............................done: 124,807 bytes requires package `PEAR' >= 1.0b1 DB: Dependencies failed Googling around this ng I found someone with a similar problem who solved it
5
14226
by: Jim Michaels | last post by:
I downloaded a PEAR module, but it came with this XML file and a PHP file. I figure I just include the PHP file somehow, but what do I do with the XML file?
0
2035
by: bwhitehd | last post by:
I'm having a problem installing php. The compile seems to go fine, but when it gets to the install step I get the following errors. Does anyone have an idea of what might be the problem? We build our applications under three different environments (Linux i686, Linux x86_64, Solaris 8 Sparc). This is the first of the three on a RHEL 3 system using the current stable versions of the GNU toolchain in a segregated environment. Basically...
1
2219
by: IchBin | last post by:
I am new to PHP and I am running on Windoze XP SP 2. Just noticed that the PEAR installed dir structure I have (to DB subdir) is : C:\php5.2\PEAR\pear\DB My registry vars are: "PHP_PEAR_SYSCONF_DIR"="C:\\php5.2\\PEAR" "PHP_PEAR_INSTALL_DIR"="C:\\php5.2\\PEAR\\pear" "PHP_PEAR_DOC_DIR"="C:\\php5.2\\PEAR\\pear\\docs" "PHP_PEAR_BIN_DIR"="C:\\php5.2\\PEAR" "PHP_PEAR_DATA_DIR"="C:\\php5.2\\PEAR\\pear\\data"
1
7830
by: CSTechie | last post by:
I've been battling to install PEAR on Windows XP now for too long. I am not sure what I need to do. When I run go-pear.php from the command line, I get the error message as shown at the end. I included everything in case there is something there that's helpful. I'm trying to install PEAR so that I can use PHPUnit. Thanks for the help!!!!
1
13660
by: IchBin | last post by:
I remember having problems with pear when I first installed it but got it running some time ago. This is on a windoze XP SP OS. I did not think it was correct because it pointed to "C\php\pear\PEAR". I writing a pear front-end GUI and I want to have it installed correctly. It seemed to have some duplication of directories between the lower and upper cased pear dir names. Should there be a "php\pear\PEAR" subdirectory? I thought it should...
0
8074
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8404
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6997
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5509
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4017
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4080
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2530
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1386
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.