UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Web Hosting and Domains > PHP Hosting

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 13-05-2007, 00:47
new member
 
Join Date: May 2007
Posts: 2
Default PHP Website broken - help!

Hi

I've had a website hosted here at EUKhost for a few years now, it runs phpwebsite CMS and has been working fine. Recently the security settings in PHP have been changed on the server to block the php function "ini_set". This has broken phpwebsite which uses this function to set the path correctly for accessing other modules.

The line of code that seems to be causing the problem is:
Code:
ini_set('include_path', '.' . PATH_SEPARATOR . PHPWS_SOURCE_DIR . 'lib/pear/');
Please can someone suggest how I get around this problem? I've seen mention of using .htaccess to set the php_value include_path but I'm not sure how to do this.

Thanks

Mark
Reply With Quote
  #2 (permalink)  
Old 13-05-2007, 10:07
DavidAllen's Avatar
Premium Member
 
Join Date: Jan 2007
Location: Amersham
Posts: 336
Send a message via MSN to DavidAllen Send a message via Skype™ to DavidAllen
Default

Quote:
Originally Posted by markpeers View Post
Hi

I've had a website hosted here at EUKhost for a few years now, it runs phpwebsite CMS and has been working fine. Recently the security settings in PHP have been changed on the server to block the php function "ini_set". This has broken phpwebsite which uses this function to set the path correctly for accessing other modules.

The line of code that seems to be causing the problem is:
Code:
ini_set('include_path', '.' . PATH_SEPARATOR . PHPWS_SOURCE_DIR . 'lib/pear/');
Please can someone suggest how I get around this problem? I've seen mention of using .htaccess to set the php_value include_path but I'm not sure how to do this.

Thanks

Mark
Mark - I'd look to see where/how it gets the values for PHPWS_SOURCE_DIR from - I suspect that might be blank or something and that could be causing the apparent security warnings
__________________
David Allen - www.serina.co.uk
Reply With Quote
  #3 (permalink)  
Old 13-05-2007, 10:19
new member
 
Join Date: May 2007
Posts: 2
Default

Thanks for the reply Dave.

I suspect that if the value of PHPWS_SOURCE_DIR was wrong then the website would always have had this problem. The website has been operating correctly for a couple of years and has suddenly started reporting these errors.

Cheers

Mark
Reply With Quote
  #4 (permalink)  
Old 13-05-2007, 10:41
DavidAllen's Avatar
Premium Member
 
Join Date: Jan 2007
Location: Amersham
Posts: 336
Send a message via MSN to DavidAllen Send a message via Skype™ to DavidAllen
Default

I say that cos a customer had a similar problem (I'm a reseller) and I traced his code back and it was the d/b call to the configuration table that was causing the problem (like you he had changed nothing, been working for years etc etc). His problem was cos the call to the config table was done with pconnect which has stopped being allowed. Your package could be similar or it could be related to the register_globals thing.
Regards
__________________
David Allen - www.serina.co.uk
Reply With Quote
  #5 (permalink)  
Old 14-05-2007, 00:09
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,302
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com
Default

Quote:
Originally Posted by markpeers View Post
Hi

I've had a website hosted here at EUKhost for a few years now, it runs phpwebsite CMS and has been working fine. Recently the security settings in PHP have been changed on the server to block the php function "ini_set". This has broken phpwebsite which uses this function to set the path correctly for accessing other modules.

The line of code that seems to be causing the problem is:
Code:
ini_set('include_path', '.' . PATH_SEPARATOR . PHPWS_SOURCE_DIR . 'lib/pear/');
Please can someone suggest how I get around this problem? I've seen mention of using .htaccess to set the php_value include_path but I'm not sure how to do this.

Thanks

Mark
You can open a ticket from http://support.eukhost.com and get your account moved on another server which has been reserved for insecure code. We have disabled all insecure php functions on all server excluding one which has been reserved for customers who cannot modify their code to make it secure.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Reply With Quote
  #6 (permalink)  
Old 19-05-2007, 20:21
Premium Member
 
Join Date: Oct 2006
Location: Bristol, UK
Posts: 128
Default

I have just discovered that this has just recently been done on my server, effecting many of my websites!!

This really annoys me, because I really don't think you should be doing this without notifying your customers first! You did this a while ago by changing the php version, which broke several of my websites (JXY-45017-391). In this support ticket you said you would try and notify us of any future changes, well, this has obviously not been done!

So now I have to spend my weekend applying emergency fixes to my websites. If I had been warned this was going to happen I could make the nessecary fixes before this change, then my websites don't break, and I don't look stupid.

Chris
Reply With Quote
  #7 (permalink)  
Old 19-05-2007, 20:40
Premium Member
 
Join Date: Oct 2006
Location: Bristol, UK
Posts: 128
Default

Actually I have raised a ticket to get my account moved to this different server..
Reply With Quote
  #8 (permalink)  
Old 19-05-2007, 20:49
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,302
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com
Default

okay. thats fine then.

let me know if you face any problems after getting moved to different server.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Reply With Quote
  #9 (permalink)  
Old 19-05-2007, 22:28
Premium Member
 
Join Date: Oct 2006
Location: Bristol, UK
Posts: 128
Default

Well its not fine, because I wish I had been notified before the change. Please please please is there any way we can be notified before changes like this are made?
Reply With Quote
  #10 (permalink)  
Old 19-05-2007, 23:22
System Administrator
 
Join Date: Dec 2006
Posts: 587
Post

Hi,
I apologize on behalf of our team on not notifying you regarding the changes that were done on the server recently. We have to go for security first in some cases before even notifying people regarding the changes that are meant to be done server wide. We have very little time sometimes in cases of massive attacks/hacks. We have disabled certain php functions on our servers which really cause (& have caused) havoc everywhere. I hope you understand the security concerns, it's better to have a website down for few minutes, maybe even hours than getting to see all unknown & bad stuff all over your website. I think you (or anyone else including the 1500+ clients on the same server) wouldn't like something bad happening like that.
Anyways, care would be taken that clients get a short note on such changes in the future. Thank you for your understanding.
__________________

Rock _a.k.a._ Jack L.

http://www.eUKhost.com
Windows Hosting || Windows Reseller Hosting
Reply With Quote
  #11 (permalink)  
Old 20-05-2007, 18:02
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 4,504
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

As a follow up sprint, I assume by moving to the unsecure server you should have less problems with the updates so hopefully they won't cause you any more problems!
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
NEW LAUNCH! http://djdavid.dpscomputing.com (My DJ Website)
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website)
Reply With Quote
  #12 (permalink)  
Old 20-05-2007, 21:40
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,302
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com
Default

Quote:
Originally Posted by sprint66 View Post
Well its not fine, because I wish I had been notified before the change. Please please please is there any way we can be notified before changes like this are made?
how should we find out if you are using any of the disabled functions in your webpages or not ?

We cannot email all members notifying them of the number of php functions disabled as most of them wont understand anything out of it.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Reply With Quote
  #13 (permalink)  
Old 20-05-2007, 22:19
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 4,504
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

Quote:
Originally Posted by eukhost.com View Post
how should we find out if you are using any of the disabled functions in your webpages or not ?

We cannot email all members notifying them of the number of php functions disabled as most of them wont understand anything out of it.
Yes, think of how many new tickets you would have to answer . It would probably worry many people or confuse like you said
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
NEW LAUNCH! http://djdavid.dpscomputing.com (My DJ Website)
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website)
Reply With Quote
  #14 (permalink)  
Old 21-05-2007, 01:36
jc8654's Avatar
Moderator
 
Join Date: May 2007
Location: Manchester, United Kingdom
Posts: 1,221
Send a message via MSN to jc8654
Default

Slightly off topic, but continuing on this... Maybe a mailing list for people who know about the tech side could help? It might have also helped with the people who had issues about the lack of communication about the server migration as these people all seem to have the "tech know-how".
__________________
Jonathan Crass
Joint Partner in Checker Design

North East Website design
UK based monitoring
Cheap UK Web Hosting

Save Jodrell Bank: www.savejodrellbank.org.uk

eUKhost Forum Moderator
Reply With Quote
  #15 (permalink)  
Old 21-05-2007, 10:13
steppen's Avatar
Member
 
Join Date: May 2007
Location: Norway
Posts: 36
Send a message via MSN to steppen Send a message via Skype™ to steppen
Default

I support that idea!
__________________
Stein
Reply With Quote
  #16 (permalink)  
Old 21-05-2007, 11:37
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,302
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com
Default

Yeah. that seems to be a good suggestion. I am getting that designed right now and it will be emailed to all customers. Those who consider themselves as Geeks should subscribe to the list and rest who have no knowledge of what their webmasters did from them can stay away from that mailing list.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Reply With Quote
  #17 (permalink)  
Old 21-05-2007, 12:40
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 4,504
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

Wohoo! I'm joining! I consider myself a geek and I'm sure it will also help me keep learning and may also provide a solution to future problems that I have due to changes made.

I think its a good idea because some of the more technically minded customers might be able to work out if an update breaks something and could mean less suport tickets and issues to deal with.
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
NEW LAUNCH! http://djdavid.dpscomputing.com (My DJ Website)
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website)
Reply With Quote
  #18 (permalink)  
Old 21-05-2007, 13:02
Premium Member
 
Join Date: Oct 2006
Location: Bristol, UK
Posts: 128
Default

Quote:
Originally Posted by eukhost.com View Post
how should we find out if you are using any of the disabled functions in your webpages or not ?
Why would you need to?

Quote:
Originally Posted by eukhost.com View Post
Yeah. that seems to be a good suggestion. I am getting that designed right now and it will be emailed to all customers. Those who consider themselves as Geeks should subscribe to the list and rest who have no knowledge of what their webmasters did from them can stay away from that mailing list.
Thats wonderful news!!

Quote:
Originally Posted by DPS Computing View Post
As a follow up sprint, I assume by moving to the unsecure server you should have less problems with the updates so hopefully they won't cause you any more problems!
Not sure what you mean?

Last edited by Ben : 21-05-2007 at 13:12. Reason: I have merged your multiple posts in to one post
Reply With Quote
  #19 (permalink)  
Old 21-05-2007, 13:06
DPS Computing's Avatar
Premium Member
 
Join Date: Apr 2007
Location: Manchester, United Kingdom
Posts: 4,504
Send a message via ICQ to DPS Computing Send a message via AIM to DPS Computing Send a message via MSN to DPS Computing Send a message via Yahoo to DPS Computing Send a message via Skype™ to DPS Computing
Default

Quote:
Originally Posted by sprint66 View Post
Not sure what you mean?
I was just saying, there are less functions disabled on the non secure server so there is less chance that you will run into a disabled function that will break your website .
__________________
David Smith
DPS Computing
http://www.dpscomputing.com (Computing, Reviews, News) - New site / new polls / new stories! With many more to follow!
NEW LAUNCH! http://djdavid.dpscomputing.com (My DJ Website)
NEW LAUNCH! http://davidsmith.dpscomputing.com (My Personal Website)
Reply With Quote
  #20 (permalink)  
Old 21-05-2007, 13:32
jc8654's Avatar
Moderator
 
Join Date: May 2007
Location: Manchester, United Kingdom
Posts: 1,221
Send a message via MSN to jc8654
Default

Glad my brain sometimes comes in useful for suggesting things! Now, if only I could get a percentage commission for every time I have a good idea like that!
__________________
Jonathan Crass
Joint Partner in Checker Design

North East Website design
UK based monitoring
Cheap UK Web Hosting

Save Jodrell Bank: www.savejodrellbank.org.uk

eUKhost Forum Moderator
Reply With Quote
Reply



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

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 On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 11:41.

 

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting