473,586 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP and PEAR and MySQL Setup on Apache

All:

Very experienced developer, newbie to PHP. My situation:

I have installed on my WIndows XP machine the following:
* PHP 5.2.1
* MySQL 5.0
* Apache 2.2

All of these are installed under C:\Program Files under their own
directories.

The PHP installation works fine. I can put PHP files under the Apache
htdocs directory and have them run. My challenge now is getting the
MDB2.php libraries to run - right now I am getting an MDB2.php not
found error, which I believe is due to a include_path error...

So, I have 2 PHP.INI files -- one in C:\Program Files\PHP and one in
the htdocs directory of Apache. They both have the exact same
include_path defined in the them. The very strange thing is that when
I run phpinfo(), the include_path comes out to be .;C:\PHP5\PEAR.

I have no idea where this value is coming from (it is the value for
Master and Local). I have search everywhere -- the PHP.INI files, the
registry, the ENV variables --- everywhere -- and I have no idea where
this value is coming from. Where does phpinfo() pull the include_path
from???

If I can track down and change this value to the "real" PHP path, I
may be able to get to the next hurdle of using MDB2!

Any ideas?

Many Thanks,
John

Apr 27 '07 #1
5 5210
PHP only uses one php.ini file at the time, and both of the ones you
are editing may be wrong. Look for the PHPIniDir setting in your
Apache conf\httpd.conf file. I think it should be near the end.

Ex:
PHPIniDir "C:/php"

-Mike PII

Apr 27 '07 #2
On Apr 27, 4:00 pm, Mike P2 <sumguyovrt...@ gmail.comwrote:
PHP only uses one php.ini file at the time, and both of the ones you
are editing may be wrong. Look for the PHPIniDir setting in your
Apache conf\httpd.conf file. I think it should be near the end.

Ex:
PHPIniDir "C:/php"

-Mike PII
MIke:

Thanks for the reply -- entire disk scan and no .;C:\PHP5\PEAR -
anywhere, including the Windows registry! My conf\httpd.conf file is
good, too - PHPIniDir is what I want -- C:\Program Files\PHP.

Where PHP is getting its include_path is a complete mystery to me!

Any additional thoughts appreciated -- thanks.

John
jpuopolo

Apr 29 '07 #3
john wrote:
All:

Very experienced developer, newbie to PHP. My situation:

I have installed on my WIndows XP machine the following:
* PHP 5.2.1
* MySQL 5.0
* Apache 2.2

All of these are installed under C:\Program Files under their own
directories.

The PHP installation works fine. I can put PHP files under the Apache
htdocs directory and have them run. My challenge now is getting the
MDB2.php libraries to run - right now I am getting an MDB2.php not
found error, which I believe is due to a include_path error...

So, I have 2 PHP.INI files -- one in C:\Program Files\PHP and one in
the htdocs directory of Apache. They both have the exact same
include_path defined in the them. The very strange thing is that when
I run phpinfo(), the include_path comes out to be .;C:\PHP5\PEAR.

I have no idea where this value is coming from (it is the value for
Master and Local). I have search everywhere -- the PHP.INI files, the
registry, the ENV variables --- everywhere -- and I have no idea where
this value is coming from. Where does phpinfo() pull the include_path
from???

If I can track down and change this value to the "real" PHP path, I
may be able to get to the next hurdle of using MDB2!

Any ideas?

Many Thanks,
John
And which php.ini file does phpinfo() say it's using?

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Apr 29 '07 #4
On Apr 29, 11:41 am, Jerry Stuckle <jstuck...@attg lobal.netwrote:
john wrote:
All:
Very experienced developer, newbie to PHP. My situation:
I have installed on my WIndows XP machine the following:
* PHP 5.2.1
* MySQL 5.0
* Apache 2.2
All of these are installed under C:\Program Files under their own
directories.
The PHP installation works fine. I can put PHP files under the Apache
htdocs directory and have them run. My challenge now is getting the
MDB2.php libraries to run - right now I am getting an MDB2.php not
found error, which I believe is due to a include_path error...
So, I have 2 PHP.INI files -- one in C:\Program Files\PHP and one in
the htdocs directory of Apache. They both have the exact same
include_path defined in the them. The very strange thing is that when
I run phpinfo(), the include_path comes out to be .;C:\PHP5\PEAR.
I have no idea where this value is coming from (it is the value for
Master and Local). I have search everywhere -- the PHP.INI files, the
registry, the ENV variables --- everywhere -- and I have no idea where
this value is coming from. Where does phpinfo() pull the include_path
from???
If I can track down and change this value to the "real" PHP path, I
may be able to get to the next hurdle of using MDB2!
Any ideas?
Many Thanks,
John

And which php.ini file does phpinfo() say it's using?

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attgl obal.net
=============== ===
Jerry:

I am starting Apache from a console (if that has anything to do w/
it). phpinfo() tells me:
Configuration File (php.ini) Path C:\WINDOWS

There is no php.ini file in the C:\windows path whatsoever.

Also, some other settings:

extension_dir C:\php5 C:\php5 (directory does not exist)
include_path .;C:\php5\pear (already described above)
PHPRC C:\Program Files\PHP\
PHP_PEAR_BIN_DI R C:\Program Files\PHP
PHP_PEAR_DATA_D IR C:\Program Files\PHP\pear\ data
PHP_PEAR_DOC_DI R C:\Program Files\PHP\pear\ docs
PHP_PEAR_INSTAL L_DIR C:\Program Files\PHP\pear
PHP_PEAR_PHP_BI N C:\Program Files\PHP\.\php .exe
PHP_PEAR_SYSCON F_DIR C:\Program Files\PHP
PHP_PEAR_TEST_D IR C:\Program Files\PHP\pear\ tests

Any help appreciated... Thank you...

John
jpuopolo

Apr 29 '07 #5
john wrote:
On Apr 29, 11:41 am, Jerry Stuckle <jstuck...@attg lobal.netwrote:
>john wrote:
>>All:
Very experienced developer, newbie to PHP. My situation:
I have installed on my WIndows XP machine the following:
* PHP 5.2.1
* MySQL 5.0
* Apache 2.2
All of these are installed under C:\Program Files under their own
directories .
The PHP installation works fine. I can put PHP files under the Apache
htdocs directory and have them run. My challenge now is getting the
MDB2.php libraries to run - right now I am getting an MDB2.php not
found error, which I believe is due to a include_path error...
So, I have 2 PHP.INI files -- one in C:\Program Files\PHP and one in
the htdocs directory of Apache. They both have the exact same
include_pat h defined in the them. The very strange thing is that when
I run phpinfo(), the include_path comes out to be .;C:\PHP5\PEAR.
I have no idea where this value is coming from (it is the value for
Master and Local). I have search everywhere -- the PHP.INI files, the
registry, the ENV variables --- everywhere -- and I have no idea where
this value is coming from. Where does phpinfo() pull the include_path
from???
If I can track down and change this value to the "real" PHP path, I
may be able to get to the next hurdle of using MDB2!
Any ideas?
Many Thanks,
John
And which php.ini file does phpinfo() say it's using?

--
============== ====
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attg lobal.net
============== ====

Jerry:

I am starting Apache from a console (if that has anything to do w/
it). phpinfo() tells me:
Configuration File (php.ini) Path C:\WINDOWS

There is no php.ini file in the C:\windows path whatsoever.
OK, so it's using the default settings.
Also, some other settings:

extension_dir C:\php5 C:\php5 (directory does not exist)
include_path .;C:\php5\pear (already described above)
PHPRC C:\Program Files\PHP\
PHP_PEAR_BIN_DI R C:\Program Files\PHP
PHP_PEAR_DATA_D IR C:\Program Files\PHP\pear\ data
PHP_PEAR_DOC_DI R C:\Program Files\PHP\pear\ docs
PHP_PEAR_INSTAL L_DIR C:\Program Files\PHP\pear
PHP_PEAR_PHP_BI N C:\Program Files\PHP\.\php .exe
PHP_PEAR_SYSCON F_DIR C:\Program Files\PHP
PHP_PEAR_TEST_D IR C:\Program Files\PHP\pear\ tests

Any help appreciated... Thank you...

John
jpuopolo
Put a php.ini file with the settings you want in your c:\windows directory.

Alternatively, you can do things like modify the registry to place the
file anywhere you want. But for now just put it in c:\windows until you
get things working.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Apr 29 '07 #6

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

Similar topics

0
1870
by: Dan Finn | last post by:
usinng php-4.3.4 using this for my configure script; ../configure --with-pear=/usr/local/lib/pear --with-mysql --with-apxs=/usr/sb in/apxs --enable-track-vars --with-mysql-sock=/tmp/mysql.sock then make; make install output says it installed pear: : make install
3
2443
by: Ron King | last post by:
When I installed Mandrake 10.0 I thought I had Apache, PHP, and MySQL installed correctly. I could serve web pages, MySQL worked, and when I tried the phpinfo() function, I got a page that looked OK. I could create simple php pages and serve them up. Then I tried to install pear, and things started to be not OK after all. phpinfo() told me...
13
3019
by: Tim Tyler | last post by:
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...
3
7225
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...
0
1572
by: bruce | last post by:
Hi... A mysql/Apache issue: I get the following when I'm trying to run a test web site on an Apache 2.0/RH8.0 setup. -------------------------------- Warning: Access denied for user: 'apache@localhost' (Using password: YES) in /var/www/html/dbid/mysql/database.php on line 17
0
2021
by: bruce | last post by:
Hi... Update.... We have the following setup in our httpd.conf file. We've tried to give what's related to the issue. We're trying to set up a virtual host for a test project. The behavior that we're seeing is that we can type: http://foo.com but the url that gets displayed is
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"
3
32417
by: joshua.wehner | last post by:
I can't seem to get PEAR to work, but I think it's installed. Any ideas? phpinfo() says '--with-pear=/usr/local/apache/php-pear' $ which pear /usr/local/bin/pear $ pear list Installed packages: ===================
2
2100
by: Frank Peterson | last post by:
I have apache, php5 and mysql setup. I want to get PEAR installed, but the Windows2000 machine it is on, does not have internet access and I can not hook it up to the internet. So I need to install PEAR offline, which I cannot figure out how. Surely there is a way to do this, I've search the internet high and low and can't find anything on...
0
7836
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...
0
8199
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8336
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6606
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...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5389
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...
0
3835
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...
1
1447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1175
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...

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.