UnitedForums - UK Web Hosting Forum UnitedHosting Community Hosting Forums
Network and Server StatusCustomer SupportUK Web Hosting
UnitedHostingUnitedHosting Sitemap UK Hosting ForumUK Web HostingWeb Hosting ForumsUK Reseller HostingWeb Host CommunityUK Managed Dedicated ServersHosting Help and SupportUK Domain Name Registration

Go Back   UnitedForums.co.uk > UnitedHosting Community > Website Development & Scripting

Reply
 
Thread Tools Rate Thread Display Modes
Old 20th November 2005, 12:53 AM   #1 (permalink)
DeanGreenhough
Registered User
 
Join Date: Dec 2003
Posts: 22
php.ini

When using mail() command, I keep getting error:
WARNING: RunAsUser for MSP ignored, check group ids (egid=0, want=51)

Research suggests that this becasue there is output to the browser before sending the mail.

My research also suggests that this can be fixed by turning ON 'output_buffering' in php.ini

Now, how do I do that OR is it a support ticket job.
DeanGreenhough is offline   Reply With Quote
Old 20th November 2005, 03:05 AM   #2 (permalink)
Euge
Registered User
 
Euge's Avatar
 
Join Date: Feb 2003
Location: Lost in confusion
Posts: 700
I can't confirm if output buffering will solve your issue, but you can try using output control functions in your specific file without having to change anything in the php.ini file:
http://us2.php.net/manual/en/ref.outcontrol.php
Euge is offline   Reply With Quote
Old 20th November 2005, 12:01 PM   #3 (permalink)
DeanGreenhough
Registered User
 
Join Date: Dec 2003
Posts: 22
Thanks for that, interesting link - life's complicated ! I've decided not to fix it.

Maybe it will fix itself if I leave it for 6 months?

-------

I was trying to run down the page, performing a sql query and mail() and then outputting an image (a green tick) and some text to indicate that the query ran (becuase sometimes the clients don't require an email to be sent and that info is in the db).

Thinking about it 'now', it's not the best way to do it, the queries need to run at the top of the page - setting, say $client_emailed = 1; then further down the page picking up the value of $client_emailed to output the image (green tick) and some text.

Doah !

If programming were common sense, i'd probably be quite good at it.

Last edited by DeanGreenhough : 20th November 2005 at 12:30 PM.
DeanGreenhough is offline   Reply With Quote
Old 29th November 2005, 12:14 AM   #4 (permalink)
acutecomputing
Senior Member
 
Join Date: Mar 2003
Location: Syracuse, Utah, USA
Posts: 117
Send a message via Skype™ to acutecomputing
Quote:
Originally Posted by DeanGreenhough
When using mail() command, I keep getting error:
WARNING: RunAsUser for MSP ignored, check group ids (egid=0, want=51)

Research suggests that this becasue there is output to the browser before sending the mail.

My research also suggests that this can be fixed by turning ON 'output_buffering' in php.ini

Now, how do I do that OR is it a support ticket job.
I'm getting exactly the same error. I've tried using ob_start() and ob_end_flush at the beginning and end of the offending page, but all that happens is that I can move the error messages around the page (without the ob code, the error messages end up in line with the code. With it, all the error messages appear at the top)

Still confused.

Pete.
acutecomputing is offline   Reply With Quote
Old 30th November 2005, 09:14 AM   #5 (permalink)
abarfield
Senior Member
 
Join Date: Sep 2003
Posts: 187
I hate me-too's - but me too!

Hi,
Had the same problem as you, but edited the php.ini file on all of my sites which has solved the problem. I'm not sure why that should be.

I don't really like this as it is fixing a symptom, rather than the problem and it doesn't seem clean. Mail seems to be sent OK, but thhe thread below suggests there may be a problem in the way that the mail call is structured:
http://www.mailarchive.ca/lists/comp...4-07/0274.html
http://www.mailarchive.ca/lists/comp...4-07/0278.html

Hope this helps, regards,

Andy
abarfield is offline   Reply With Quote
Old 14th December 2007, 04:58 PM   #6 (permalink)
richard
Richard
 
Join Date: Apr 2005
Location: Burnham UK
Posts: 98
Send a message via MSN to richard Send a message via Yahoo to richard Send a message via Skype™ to richard
Php.ini

Looks like the PHP.ini files were overwritten in the rescent upgrades...

Im getting:

[Fri Dec 14 16:55:49 2007] [error] [client 87.xxxxxx.142] Requested content-length of 10720616 is larger than the configured limit of 8192000, referer: http://xxxxxxx/index.php

When trying to upload a large file.

I have updated etc/php.ini but get the same error. Am I editing the right php.ini. Is it cached?

Rich
__________________
Techex

Last edited by richard : 10th May 2008 at 10:34 PM.
richard is offline   Reply With Quote
Old 14th December 2007, 05:51 PM   #7 (permalink)
MrBen
Munky!
 
MrBen's Avatar
 
Join Date: Sep 2003
Location: nr Woking, England
Posts: 2,597
Check you have the permissions to write to the file and that the change you make are being saved.

Also, if you site is running in PHP5, there is a different php.ini... in /etc/php5/

Ben
__________________
Veterinary Practice Management System by SoftFooding
Internet Data Usage Calculator: Estimate your monthly bandwidth usage for your Internet connection.
MrBen is offline   Reply With Quote
Old 14th December 2007, 06:06 PM   #8 (permalink)
richard
Richard
 
Join Date: Apr 2005
Location: Burnham UK
Posts: 98
Send a message via MSN to richard Send a message via Yahoo to richard Send a message via Skype™ to richard
Hi Ben, im running SugarCRM, how do I establish whether I am running PHP5? I thought I was on 4....

Rich
__________________
Techex
richard is offline   Reply With Quote
Old 14th December 2007, 06:23 PM   #9 (permalink)
knapper
Senior Member
 
Join Date: Jun 2006
Location: Co. Durham
Posts: 107
Since the recent server upgrades you can run php5 instead of the default php4 by adding:

Action php5-script /interpreters/php5-script
AddHandler php5-script .php

to .htaccess. If you haven't done this you'll be running php4. To check which php version just use the php function phpinfo().
knapper is offline   Reply With Quote
Old 14th December 2007, 06:35 PM   #10 (permalink)
richard
Richard
 
Join Date: Apr 2005
Location: Burnham UK
Posts: 98
Send a message via MSN to richard Send a message via Yahoo to richard Send a message via Skype™ to richard
It shows as php Version 4.4.4.... and the /etc/php.ini has all of the changes but im still getting that error!!!

grrrr

Rich
__________________
Techex
richard is offline   Reply With Quote
Old 14th December 2007, 08:37 PM   #11 (permalink)
UH-Tony
Senior Server Administrator
 
UH-Tony's Avatar
 
Join Date: Mar 2006
Location: Houston, TX USA
Posts: 492
Richard, I suspect that your issue was resolved earlier via ticket by me.

Anyone else seeing the error "Requested content-length of **** is larger than the configured limit of 8192000", this is due to a limit set via httpd.conf at the server level so a ticket will be required for us to permit a temporary adjustment to the setting as this error usually only occurs during an installation/upgrade of an application and can be set back to default once the install/upgrade is completed.
__________________
.
Tony
UnitedHosting Staff

For official support please use our helpdesk at UnitedSupport.co.uk

UnitedHosting proudly hosting more than 20,000 sites since 1998.
UH-Tony is offline   Reply With Quote
Old 11th January 2008, 06:44 PM   #12 (permalink)
richard
Richard
 
Join Date: Apr 2005
Location: Burnham UK
Posts: 98
Send a message via MSN to richard Send a message via Yahoo to richard Send a message via Skype™ to richard
Yep, many thanks Tony!

Rich
__________________
Techex
richard is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 07:33 PM.

UK Web Hosting  |  UK Reseller Hosting  |  UK Dedicated Servers UnitedHosting  |  UnitedSupport  |  UnitedForums  |  SEO by vBSEO 3.0.0
Copyright © 1998-2008 United Communications Limited. All Rights Reserved. Registered in England and Wales 3651923 - VAT Reg No. 737662309