473,386 Members | 1,943 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 5191
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*******@attglobal.net
==================
Apr 29 '07 #4
On Apr 29, 11:41 am, Jerry Stuckle <jstuck...@attglobal.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...@attglobal.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_DIR C:\Program Files\PHP
PHP_PEAR_DATA_DIR C:\Program Files\PHP\pear\data
PHP_PEAR_DOC_DIR C:\Program Files\PHP\pear\docs
PHP_PEAR_INSTALL_DIR C:\Program Files\PHP\pear
PHP_PEAR_PHP_BIN C:\Program Files\PHP\.\php.exe
PHP_PEAR_SYSCONF_DIR C:\Program Files\PHP
PHP_PEAR_TEST_DIR 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...@attglobal.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...@attglobal.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_DIR C:\Program Files\PHP
PHP_PEAR_DATA_DIR C:\Program Files\PHP\pear\data
PHP_PEAR_DOC_DIR C:\Program Files\PHP\pear\docs
PHP_PEAR_INSTALL_DIR C:\Program Files\PHP\pear
PHP_PEAR_PHP_BIN C:\Program Files\PHP\.\php.exe
PHP_PEAR_SYSCONF_DIR C:\Program Files\PHP
PHP_PEAR_TEST_DIR 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*******@attglobal.net
==================
Apr 29 '07 #6

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

Similar topics

0
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...
3
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...
13
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...
3
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...
0
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:...
0
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...
3
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'...
3
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...
2
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...

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.