
2nd September 2011, 14:37
|
|
Junior Member
|
|
Join Date: Oct 2010
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
|
|
ISPCONFIG3 Centos5 php 5.3 pear problem
Hi
I am hosting a new website for a company, the website has been transferred to us from another hosting company. and uses pear for mail
We have ispconfig3 running on centos5 php 5.3 and typically use postfix for all other mail websites which works fine.
i have yum installed pear and it works from the cli, the website throws a 500 error when the page with the pear mail reference loads, if i copy the pear mail folder to the website pagem, the page loads and pear works, i have set the path .:/usr/share/pear etc in php.ini and have set the vhost path and recreated the website vhost and copied the files back, still no luck, im guessing its a pathing or rights issue, do i need to set an allow directive to the usr/share/pear folder somewhere? also i cant see any log files with any relevant errors in.
thanks for checking my thread.
Andy
|

3rd September 2011, 11:14
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
Did you check Apache's error log?
|

5th September 2011, 17:08
|
|
Junior Member
|
|
Join Date: Oct 2010
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
|
|
HI
Yep nothing in error_log in httpd, apart from some xend shell errors and timezone set incorrectly for some sites.
|

5th September 2011, 22:20
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
You can find the exact error message in the error.log of the website. Dont llok in the global error.log, use the error.log of the website.
|

5th September 2011, 22:21
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
And please do not post duplicate threads!
|

5th September 2011, 22:43
|
|
Junior Member
|
|
Join Date: Oct 2010
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Hi
Sorry about the double post i found this forum was more specific to the problem
In the php page if i hash out the 2 mail.php calls the page loads but the email function on the page doesn't work
# GET PEAR FUNCTIONS
# ("Mail.php");
# ("Mail/mime.php");
If i remove the hashes the page gets this error
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
and all i get this (i think unrelated) error in the websites error log
[Mon Sep 05 21:26:43 2011] [warn] mod_fcgid: stderr: PHP Warning: date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for 'BST/1.0/DST' instead in /var/www/clients/client21/web90/web/destinations/index.php on line 182
if i copy all the pear folders and files from the /usr/share/pear folder to the website directory that this php file is being called from it all works but isn't very practical
Thanks
Andy
|

6th September 2011, 10:50
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
I think you need to add /usr/share/pear to your OpenBasedir directories in ISPConfig.
|

6th September 2011, 11:55
|
|
Junior Member
|
|
Join Date: Oct 2010
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
|
|
thanks
I have added the PEAR path in the ispconfig openbasedir tab on this websites config, tentatively it seems to be ok.
will report back when i have removed all the pear folders splattered all over the website.
Thanks So Far So Good
Last edited by andyace; 6th September 2011 at 12:10.
|

6th September 2011, 21:59
|
|
Junior Member
|
|
Join Date: Oct 2010
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
|
|
That fixed it, easy when your led in the right direction, hope this helps someone else.
Thanks Again
Andy
|
|
The Following User Says Thank You to andyace For This Useful Post:
|
falko (7th September 2011)
|

26th April 2012, 21:05
|
|
Junior Member
|
|
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
It's helps me
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 01:58.
|
Recent comments
1 day 2 hours ago
1 day 2 hours ago
1 day 7 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 15 hours ago
1 day 20 hours ago
2 days 2 hours ago
2 days 6 hours ago
2 days 8 hours ago