472,810 Members | 3,970 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,810 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 5132
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.