Regular on 02/11/2007 at 11:25:14PM
Total Posts: 7 |
Can anyone shed some light on the following problem?
I have three areas of web space on Freeola servers 2, 6 and 8.
On server 8 I have some graphics that I need to access from the other two servers. Before attempting to include the required graphics a check, using the php function 'fopen', is made to see if the file exists (if it doesn't a default graphic is used).
The code on server 2 works as expected, ie it finds the file, opens it and then closes it.
The code on server 6 is identical but generates a 'failed to open stream: Permission denied in /freeola/ users/ 6/ 9/ srnumber/ htdocs/ path/ functions.php on line xxx'
The thing that is puzzling me is that it works from one server but not the other. Any suggestions/ideas/solutions would be greatly appreciated.
|
|
|
|
|
|
Delicious Digg Reddit Facebook StumbleUpon
|
|
Eccles
"Aargh! Broken..."
Staff Moderator Send a message on 22/04/2008 at 1:30:12PM
Total Posts: 424
|
|
Yep that's good enough for me. If you could send me the site details (domain, sr number and your name and address) using the link under my avatar then I will set this up for you and email you details on how to continue.
|
|
|
gladiatustools.com
Regular on 22/04/2008 at 9:11:55AM
Total Posts: 3
|
|
Hi Eccles, thanks for your quick response!
We need the fsocketopen function to integrate our site with PayPal's Instant Payment Notification service. We sell digital goods on our site and need to confirm with PayPal that payment has been received and has cleared before we can email the goods automatically to the customer.
I trust this is a good enough reason to move the site? How do we go about doing this please, what's the next step?
Thanks for your assistance in this matter!
|
|
|
|
Eccles
"Aargh! Broken..."
Staff Moderator Send a message on 21/04/2008 at 1:14:15PM
Total Posts: 424
|
|
This has already been suggested. I believe it was intended that outbound connections would not be allowed but is seems slightly different configurations were used on some servers when they were upgraded. The ones that do allow fopen haven't been closed off as we have moved several customers to these servers now.
Please be aware that we will only move your site if you can prove it's absolutely necessary and moving your site will make it unavailable for a short period while the DNS updates.
|
|
|
gladiatustools.com
Regular on 20/04/2008 at 4:21:28PM
Total Posts: 3
|
|
Eccles wrote:
> I believe that the way this was solved before was to move the
> site to another server as for some reason it was not possible to
> implement the necessary change on the servers concerned. If you
> could send in a support ticket with you site details then we can
> see whether we can have it moved servers.
I am having similar problems with the fsockopen function.
As far as I am aware the fix to this problem is to simply to activate "HTTPD scripts to connect to the network" in the SELinux.ini file.
Can you please run this by the server engineers Eccles and see whether this change can be implemented on all servers. If not I am afraid it looks like you may have to move my site gladiatustools.com to server 2 also!
Although it does seem very strange that your servers are set up differently!
Please advise, thank you! :)
|
|
|
|
Eccles
"Aargh! Broken..."
Staff Moderator Send a message on 10/04/2008 at 11:40:15AM
Total Posts: 424
|
|
I've replied to your message via email but in case you read this first:
Moving your site from one server to another will not effect your email accounts. You will simply have a new webspace folder with a different SR number. Email accounts are not linked to this.
|
|
|
|
Eccles
"Aargh! Broken..."
Staff Moderator Send a message on 10/04/2008 at 12:01:12AM
Total Posts: 424
|
|
Ah really sorry, must have missed the message in the pile, will check tomorrow and get back to you.
|
|
|
thesaviour
Regular on 09/04/2008 at 8:25:48PM
Total Posts: 2
|
|
Hi Eccles,
I sent you a private message last week, but have not heard back. I am on server 5. If I were to migrate to another server on Freeola, this presumably would mean that all 'sr' numbers would change too, including email addresses?
If this is the case, it's not an option as I have so many email addresses attached to this domain.
Look forward to hearing from you.
|
|
|
|
Eccles
"Aargh! Broken..."
Staff Moderator Send a message on 01/04/2008 at 7:53:19PM
Total Posts: 424
|
|
I believe that the way this was solved before was to move the site to another server as for some reason it was not possible to implement the necessary change on the servers concerned. If you could send in a support ticket with you site details then we can see whether we can have it moved servers.
|
|
|
thesaviour
Regular on 01/04/2008 at 4:13:18PM
Total Posts: 2
|
|
Hi Eccles. I have just found this thread and I too need outbound http access for a script. But it's being blocked.
What is the status of getting things opened up?
Thanks.
|
|
|
|
Eccles
"Aargh! Broken..."
Staff Moderator Send a message on 14/02/2008 at 11:00:50PM
Total Posts: 424
|
|
That might be possible. Could you send me your user details (website address, sr number and any special details I may need to know about, such as specific script permissions etc) using the link under my avatar and I'll see what I can do. Sorry for the delay in replying, been a little busy with the recent password changes.
|
|
|
postmanpat
Regular on 14/02/2008 at 6:39:09PM
Total Posts: 13
|
|
I will ask again:
"Well, could my sites be moved to server number 2 then?"
|
|
|
postmanpat
Regular on 12/02/2008 at 11:43:24PM
Total Posts: 13
|
|
server 9 has the same problems!
|
|
|
postmanpat
Regular on 12/02/2008 at 2:12:29PM
Total Posts: 13
|
|
Well, could my sites be moved to server number 2 then?
|
|
|
|
Eccles
"Aargh! Broken..."
Staff Moderator Send a message on 12/02/2008 at 1:20:24PM
Total Posts: 424
|
|
Still working on it. Sorry I don't have good news yet. It appears the the engineers are struggling to find the cause but I have hassled them again today.
|
|
|
postmanpat
Regular on 12/02/2008 at 9:13:39AM
Total Posts: 13
|
|
Any news on this? As it seems to be dragging on a bit :(
I'm surprised no other web site developers have encountered this issue and reported it.
If any other web site developers have the time, please could you test whether this issue will affect you, by creating a 'tester.php' file containing the following:
<?php
$fp=fopen( 'http://www.google.co.uk/index.html', 'rt');
$testSTR=fgets($fp);
echo $testSTR;
?>
Upload it to your website then navigate to it using your usual web browser, do you see:
a) window.google={BLAH BLAH BLAH}
OR
b) Warning: fopen(http://www.google.co.uk/index.html) ... /freeola/users/#/#/
If you see (a) then you are OK, but, if you see (b) then the issue affects you, the first # is the server number your site is hosted on.
Please report your findings.
Gotta get this sorted ... ... ... please!
|
|
|
|
Eccles
"Aargh! Broken..."
Staff Moderator Send a message on 08/02/2008 at 3:41:10PM
Total Posts: 424
|
|
No problem. I have chased up the problem again today and should hopefully get a resolution soon. I haven't forgotten about it though!
|
|
|
postmanpat
Regular on 08/02/2008 at 12:47:35PM
Total Posts: 13
|
|
Sorry, but I've got to keep asking in case it gets forgotten; is there any progress on this problem? As its been over 2 weeks since I raised the ticket :o(
|
|
|
|
Eccles
"Aargh! Broken..."
Staff Moderator Send a message on 06/02/2008 at 11:14:44AM
Total Posts: 424
|
|
That would be the logical way of approaching it, yes. However I'm not sure of the complexities behind tracking down the problem, although I would have though a firewall would be to blame. We are chasing it for you and will get it resolved.
|
|
|
postmanpat
Regular on 06/02/2008 at 10:08:57AM
Total Posts: 13
|
|
Do the engineers need anything more from me?
Have they looked at my 'tester.php' script at the locations I gave?
Its just I wouldn't have thought it'd take too long to rectify this problem, because as it works on some servers, surely they can identify the server differences and make the relevant changes ... can't they?
|
|
|
|
Eccles
"Aargh! Broken..."
Staff Moderator Send a message on 04/02/2008 at 1:04:27PM
Total Posts: 424
|
|
I'm afraid I can't give a definite time scale. I passed this to the managers last week but the engineers haven't given us a reason why they cannot sort this yet. We know they can fix it otherwise all the servers would be suffering from this problem.
Please accept our apologies for the delay in getting this problem resolved.
|
|
|
|
Eccles
"Aargh! Broken..."
Staff Moderator Send a message on 31/01/2008 at 12:10:04PM
Total Posts: 424
|
|
No I'm afraid not. I have had to escalate this to people higher up so it should be sorted soon. Apologies for the delay.
|
|
|
|
Eccles
"Aargh! Broken..."
Staff Moderator Send a message on 29/01/2008 at 9:56:44AM
Total Posts: 424
|
|
Not yet, still waiting to hear back. I sent the engineers a reminder yesterday but the was at about 7pm.
|
|
|
postmanpat
Regular on 28/01/2008 at 9:18:58PM
Total Posts: 13
|
|
Any updates on this issue?
|
|
|
toshinmac
Regular on 27/01/2008 at 5:24:29PM
Total Posts: 7
|
|
Hi,
I've been busy on other things for the last week or so and haven't been checking the forum. So apologies for the lack of communication.
I can confirm that the base_dir issue has been resolved. Thanks for that.
As postmanpat has provided example scripts that are causing issues I'll not duplicate the submission. If you do need any further information then please let me know.
Regards.
|
|
|
postmanpat
Regular on 25/01/2008 at 3:12:07PM
Total Posts: 13
|
|
I must admit I thought you were asking for scripts to toshinmac other problem; the open_basedir one.
Anyway I've sent you my locations of a basic fopen script working on one server but causing the error on another 2 servers.
Lets hope this gets sorted soon.
Thanks.
|
|
|
|
Eccles
"Aargh! Broken..."
Staff Moderator Send a message on 25/01/2008 at 1:43:04PM
Total Posts: 424
|
|
Not yet. The server engineers have asked me for the location of scripts that are having problems so that is why I asked toshinmac to get in touch.
He hasn't done so yet so if you have scripts that are suffering the fopen problem then please send me their location (server and full path) and I can the forward them on.
|
|
|
postmanpat
Regular on 25/01/2008 at 1:19:23PM
Total Posts: 13
|
|
Eccles,
Any news on the fopen problems?
|
|
|
|
Eccles
"Aargh! Broken..."
Staff Moderator Send a message on 24/01/2008 at 2:58:20PM
Total Posts: 424
|
|
Hi toshinmac,
The issue with sessions and open_basedir should now be fixed. Could you send me the full paths of the scripts that are having trouble using fopen and also the paths of the ones that work on web server 2 and I can then check this out more thoroughly. You can use the link under my avatar to send me a message.
|
|
|
|
Eccles
"Aargh! Broken..."
Staff Moderator Send a message on 23/01/2008 at 11:09:51PM
Total Posts: 424
|
|
No need for a ticket. I'll pass this on to the server engineers tomorrow. I'm not sure how the configuration inconsistencies arose but I'm guessing it through a software upgrade. All the servers should have the same configuration obviously.
|
|
|
toshinmac
Regular on 23/01/2008 at 10:21:27PM
Total Posts: 7
|
|
Hi postmanpat,
Thanks for the feedback.
Nothing to do with this issue but discovered whilst trying to work around the problem.
I tried putting some code onto server 8 - the first line of which is:
session_start();
and I get:
Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path(s): (/freeola/users/) in
/freeola/users/8/5/srnumber/htdocs/index.php5 on line 2
Fatal error: session_start() [<a href='function.session-start'> function.session-
start</a>]: Failed to initialize storage module: files (path: ) in
/freeola/users/8/5/srnumber/htdocs/index.php5 on line 2
The code works without issue on server 6 so I looked further into the problem by looking at the server settings using phpinfo();
Server 8 (and some of the others) have 'open_basedir' set to '/freeola/users/'
Server 6 has 'open_basedir' set to 'no value'.
It looks as though there is some inconsistency across the servers in the way that they have been configured.
I think this one warrants a ticket in the first instance.
|
|
|
postmanpat
Regular on 23/01/2008 at 9:43:22PM
Total Posts: 13
|
|
Hi toshinmac,
They tried to say the problem must be with my script, but after a while they said they'd look into it, and now we've got the response from Eccles which appears to admit they do have something strange going on. I guess we'll have to wait and see ;)
Hi Eccles,
How long until this is sorted? Just a rough guess please ... Are we talking hours, days or weeks.
Thanks
|
|
|
|
Eccles
"Aargh! Broken..."
Staff Moderator Send a message on 23/01/2008 at 12:42:33PM
Total Posts: 424
|
|
Our web servers should be blocked from allowing outbound http access, so any that allow this are lucky! We are looking at getting this restriction removed so that you can check remote files or use things like RSS feeds.
Hopefully I can update you soon and let you know what the decision is.
|
|
|
toshinmac
Regular on 22/01/2008 at 11:16:22PM
Total Posts: 7
|
|
Hi,
Rather than go down a ticket raising avenue, I moved the site onto one of the servers where it all worked fine. Not a permanent fix, which I'm now beginning to regret, as the server I moved to (server 3) is now generating the error. So it looks as though I may have to raise a support ticket.
Have you had any joy with the ticket you raised, yet? I'd be interested to know the outcome or if a generic fix is available.
Cheers.
|
|
|
postmanpat
Regular on 19/01/2008 at 4:16:22PM
Total Posts: 13
|
|
Hi,
How / Did, this problem get resolved?
Because I am suffering from the same problem.
I have some PHP pages which use fopen and if I upload them to either server 0 or 1 they display the error, but if I upload them to server 2 they work fine. And I really want to be able to use them on my web site hosted on server 0.
Also, I swear at the start of the week the same PHP pages were working fine on server 0.
I have raised a support ticket regarding this, so hopefully it will get fixed soon.
Thanks
|
|
|
toshinmac
Regular on 03/11/2007 at 12:03:42AM
Total Posts: 7
|
|
Hi,
Thanks for the reply. I've checked the servers and found that allow_url_fopen is ON.
The file permissions are set at 755. I wouldn't have thought the permissions to be an issue as the code works perfectly on server 2.
I have done a test using the same code on server0 and find that it fails from there as well.
|
|
|
|
Eccles
"Aargh! Broken..."
Staff Moderator Send a message on 02/11/2007 at 11:42:28PM
Edited: 2/11/07 23:45 Total Posts: 424
|
I'm not 100% but it seems as though allow_url_fopen is not set on server 6 (assuming your file permissions are correct). What does running phpinfo(); on server 6 show? If it shows it as disabled but the other servers are showing as enabled the drop us a support ticket.
If it's read only access you need then why not try is_file()?
|
|
|
|
|
 |
|