wcardinal

Registered
Jun 18, 2008
1
0
51
I have rebuilt apache twice with PEAR install selected - and still no "with pear" in a php-info request.

Anyone know what this could be?

thjis is from the install log..

Configuring PEAR
checking whether to install PEAR... yes
 
Last edited:

mambovince

Well-Known Member
Jan 15, 2005
193
0
166
London, UK
I have the same issue on 2 servers.
Running cPanel stable, and used EasyApache 3 to compile concurrent PHP4 (as DSO) and PHP5 (cgi) with SuExec on.

Cutomers get following error
Fatal error: require() [function.require]: Failed opening required 'Mail.php' (include_path='.:/usr/lib/php:/usr/local/lib/php')
Still looking for a solution.

Is this a cPanel bug, or due to my cincurrent setup that needs special attention?

Many thanks,

- Vince
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,216
12
313
Houston, TX
cPanel Access Level
Root Administrator
I have the same issue on 2 servers.
Running cPanel stable, and used EasyApache 3 to compile concurrent PHP4 (as DSO) and PHP5 (cgi) with SuExec on.

Cutomers get following error


Still looking for a solution.

Is this a cPanel bug, or due to my cincurrent setup that needs special attention?

Many thanks,

- Vince
If this is running as PHP 5 which you have running as CGI with SuExec, you may want to check Mail.php for proper file permissions and ownership.
 

mambovince

Well-Known Member
Jan 15, 2005
193
0
166
London, UK
If this is running as PHP 5 which you have running as CGI with SuExec, you may want to check Mail.php for proper file permissions and ownership.
Hi David,
Just to make sure, what should the ownership and permissions be on Mail.php?

Would I find it in /usr/lib/php or /usr/local/lib/php

Still strange that the Pear module is not listed when running PHP info:confused:

Many thanks,

- Vince
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,216
12
313
Houston, TX
cPanel Access Level
Root Administrator
Hi David,
Just to make sure, what should the ownership and permissions be on Mail.php?

Would I find it in /usr/lib/php or /usr/local/lib/php

Still strange that the Pear module is not listed when running PHP info:confused:

Many thanks,

- Vince
1. You may consider using an absolute path to ensure the file is being found in the "right" place.

2. File should be owned by the cPanel user and that user should have read/write/execute permissions on the file.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,216
12
313
Houston, TX
cPanel Access Level
Root Administrator
Hi David,

Gave the file 755 permissions and chown -R to the user

I've also copied the Mail.php file from to the same directory as the application and now we get "No valid action!" in the browser instead of previous error message.

Still strange that the Pear module is not listed when running PHP info on these servers, instead of seeing '--with-pear=/usr/lib/php'
:confused:

Many thanks,

- Vince
You may wish to let our technical analysts diagnose that for you.
 

mambovince

Well-Known Member
Jan 15, 2005
193
0
166
London, UK
Hi David,

Gave the file 755 permissions and chown -R to the user

I've also copied the Mail.php file from to the same directory as the application and now we get "No valid action!" in the browser instead of previous error message.

Still strange that the Pear module is not listed when running PHP info on these servers, instead of seeing
'--with-pear=/usr/lib/php' as I do on another server
:confused:

Many thanks,

- Vince
 
Last edited:

mambovince

Well-Known Member
Jan 15, 2005
193
0
166
London, UK
You may wish to let our technical analysts diagnose that for you.
Thank you very much for the offer.
Before we do that, does the following help:

In the Verbose logfile /cpanel/logs/easy/apache/build.12204xxxx
I see the following entries realted to Pear:
Installing PEAR environment: /usr/local/php4/lib/php/

Wrote PEAR system config file at: /usr/local/php4/etc/pear.conf
You may want to add: /usr/local/php4/lib/php to your php.ini include_path

Wrote PEAR system config file at: /usr/php4/etc/pear.conf
You may want to add: /usr/php4/lib/php to your php.ini include_path

Installing PEAR environment: /usr/lib/php/
-- End step 'make install for system PHP' --
Does that last line indicate an issue during build?
Hence Pear installed fine for PHP4 and not for PHP5 (default version using CGI).

Thanks again for your guidance.

- Vince
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,216
12
313
Houston, TX
cPanel Access Level
Root Administrator
That message merely states that this particular portion of the build process has completed but neither implies success nor failure.

I recommend having a technical analyst review this situation as they would be more aware of the technical processes of EA3 than I am.