PHP FastCGI on SJSWS 6.1 SP8 prevents file_get_contents() to work

Hi,
sorry to bother you again, but we discovered another problem with the FastCGI implementation and I just want to verify if someone else can reproduce that. A site is using file_get_contents() to gather information from the same site, but a different PHP file, and display it on the screen.
I tried both PHP 4.4.7 and 5.2.4 and the problem is always present.
file a.php contains:
<?php
$url="http://servername/b.php";
$file = file_get_contents($url);
echo $file;
?>file b.php contains:
<?
print "Hello World!";
?>Expected result is to see "Hello World!" when browsing http://servername/a.php.
Actual result is: "Warning: file_get_contents(http://servername/b.php) [function.file-get-contents]: failed to open stream: HTTP request failed! in /www/servername/a.php on line 3".
It works correctly with the browser if I point "a.php" to a "b.php" located on another website, configured with FastCGI or NSAPI. It also works correctly on the PHP command line if the "b.php" is located on the same website or another website.
With NSAPI PHP, it works perfectly from the browser or the command line, to the same website or another one.
I'll post that bug to the PHP site, but I would like to know if I'm not the only one with that bug.

I can't speak to WS6.1 (I'm no longer running it), but WS7.0u1 with PHP 5.2.5-dev (built from the tip to work around another PHP bug) I see "Hello world!" after running the test.
PHP is compiled with:
'./configure' '--enable-track-vars' '--enable-force-cgi-redirect' '--with-gettext' '--enable-fastcgi' '--with-zlib' '--with-jpeg-dir' '--with-gd' '--with-mysql=/usr/local/mysql/include/'My php.rc looks like:
session.bug_compat_42 = Off
session.bug_compat_warn = Off
magic_quotes_gpc = Off
memory_limit = 128M
post_max_size = 128M
upload_max_filesize = 128M
fastcgi.logging = true
log_errors = on
error_log = /export/WS7/https-www/logs/php_errors
error_reporting = E_ALL
; Maybe this can keep PHP from eating all my resources
max_execution_time = 30
set_time_limit = 300
include_path = /usr/local/lib/php
extension_dir=/export/WS7/third-party/php/

Similar Messages

  • Need help on lighttpd + php + fastcgi

    I am having one terrible time trying to get the above configured.  Every time I access a .php script I get a "No input file specified" error.  Pulling up .html pages works fine... just not .php.
    The following are installed:
    php 5.2.4-1, lighttpd 1.4.18-1, fcgi 2.4.0-2
    And here is the relevent section of the /etc/lighttpd/lighttpd.conf file:
    server.modules              = (
                                    "mod_rewrite",
                                    "mod_redirect",
                                    "mod_access",
                                    "mod_fastcgi",
                                    "mod_proxy",
                                    "mod_simple_vhost",
                                    "mod_compress",
                                    "mod_accesslog" )
    server.document-root        = "/data/srv/www/"
    static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
    simple-vhost.server-root   = "/data/srv/www/vhosts/"
    simple-vhost.default-host  = "ncc1701a.test.adtran.com"
    simple-vhost.document-root = "/"
    $HTTP["host"] == "ncc1701a.test.xxxxx.com" {
      server.document-root = "/data/srv/www/vhosts/ncc1701a.test.xxxxx.com/"
    server.username             = "lighttpd"
    server.groupname           = "lighttpd"
    fastcgi.server             = ( ".php" =>
                                   ( "localhost" =>
                                       "socket" => "/tmp/php-fastcgi.socket",
                                       "bin-path" => "/usr/bin/php-cgi",
    fastcgi.debug = 1
    All the logs look good (I think)... just cannot get this to work.  If have spent the past six hours reading Google and cannot find anything.  Anyone have any answers?

    Well after about three days of tinkering I finally fixed the problem...
    My original /etc/php.ini did not have the "open_basedir" set... so it was not used.  But when I upgraded the php the new php.ini had a value in it.  Of course that value did not included the path to my scripts... so I added the path to my scripts as follows:
    open_basedir = /data/srv/www/:/tmp/:/usr/share/pear/
    And now everything works fine.

  • "Lync 2013" error we're sorry, but outlook has run into an error that is preventing it from working

    Hi -
    So I've an legal Office 2013 version running on my Surface Pro 2, which works fine. 
    I installed lync client 2013 (not from the appstore, but the desktop version) and on first sight, seems to work as well. 
    Now comes the issue - when I want to join a meeting, the following error comes up:
    "we're sorry, but lync has run into an error that is preventing it from working''
    I already re-installed Office and Lync several times - but the error keeps coming and it getting really frustrated because I cannot join any meeting.
    Tim

    Hi,
    Please check if the Lync conference add-in is active in Outlook.
    You can check with the following steps:
    Click File button on Outlook, Options--Add-Ins. Make sure the Lync Add-in for Microsoft Office 2013 in the list of "Active Application Add-ins". If it is in Inactive Application Add-ins or Disabled Application Add-ins, active it and then restart
    Lync client and Outlook to test the issue.
    If the issue persists, please also delete Lync user profile and Outlook profile to test the issue.
    Best Regards,
    Eason Huang
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Eason Huang
    TechNet Community Support

  • Office 365 Error: We're sorry, but (program name) has run into an error that is preventing it from working correctly. (Program name) will need to be closed as a result.

    Today we had this error code on starting Office programs out of the blue. We've had this error in the past and we know what caused it, but that action wasn't taken. I've already read other posts, but no "Answer" provides a real solution to a clear
    problem with Office 365.
    The error: "We're sorry, but (program name) has run into an error that is preventing it from working correctly. (Program name) will need to be closed as a result."
    It offers "Repair Now", then the two following options: "Online" or "Offline". Neither are effective.
    In the past we used the Office 365 Fix It tool, but uninstalling and reinstalling Office on a regular basis is unacceptable. Resorting to web apps is also not going to happen.
    Running Win 7 Pro 64 bit, fully updated.
    We're starting to get fed up with this broken software. Paying monthly for programs that don't work is ridiculous. Any real answers would be greatly appreciated!

    Locate your Office application and check the setting of Compatibility.
    For example,
    Right click on Excel (.exe) > Properties > Compatibility > uncheck all the boxes, click Ok and check if it helps.
    To access Excel (.exe), open the following location:
    C:\Program Files\Microsoft Office\Office15\Excel.exe
    Or
    C:\Program Files\Microsoft Office 15\Root\Office15\Excel.exe
    Try to open Excel and check if it opens.
    http://social.technet.microsoft.com/Forums/en-US/590617de-629f-413b-8c11-f3cc79e27e7a/excel-2013-error-on-open-were-sorry-but-excel-has-run-into-an-error-that-is-preventing-it-from?forum=officeitpro
    Thanks.
    Tony Chen
    TechNet Community Support

  • HT5367 Does anyone know if I can download this version of Java - for OS X 2012-005 - the new Java update is a total mess and it is preventing me from working... need to go back :-(

    Does anyone know if I can download this version of Java - for OS X 2012-005 - the new Java update is a total mess for me and is preventing me from working remotely...  :-( really need to go back to older Java, don't have the Time Machine set up ...  Thx

    I wonder if it's a variation of this, of which I've seen many different symptoms...
    http://km.support.apple.com/library/APPLE/APPLECARE_ALLGEOS/TS4135/TS4135_01-osx _1072-login_window-001-en.png
    Resolution
    Move the mouse or trackpad cursor over the center area of the login window so you can see the user icons. Click on the icon of the user that you would like to login as, type in the user's password, and press Return.
    If the login window is configured to show only the name and password fields, type in the user's name and password into the fields, and press Return (even if you cannot see the rest of the login window).
    Additional Information
    This issue will not occur if the display is not sleeping when the account is logged out. Use the steps below to confirm that the account is not configured to log out automatically while the display is sleeping:
    Open System Preferences > Security & Privacy > General.  Click the padlock to unlock the preference pane and enter your admin password. Click the Advanced button at the bottom, then see if the option "Log out after N minutes of inactivity" (where N is the number of minutes) is enabled.
    Open System Preferences > Energy Saver and configure Display Sleep to occur after the account is logged out, by dragging the slider to a number of minutes that is greater than N was set to in the previous step.
    Important: If automatic log out is not needed, disable "Log out after Nminutes of inactivity" in System Preferences > Security & Privacy > General. This will also prevent the issue.
    http://support.apple.com/kb/TS4135?viewlocale=en_US

  • Were sorry but "application" has encountered an error that is preventing it from working correctly. Repair now?

    Hello
    win 7- office prof. 2013
    after installation is OK. but every time i restart i get 
    "Were sorry but "application" has encountered an error that is preventing it from working correctly. Repair now?"
    it ask me again for my product key. and than everything is OK until next time i restart my computer.
    it happens with all the applications
    it happens also with other vision of office.
    I tried to uninstall with your tool, I tried  to erase from the registry, clean boot, safe mode... and nothing works

    Hi,
    Uninstall Office and install it again in Clean Boot to determine if background programs are interfering with this:
    http://support.microsoft.com/kb/929135
    Regards,
    Melon Chen
    TechNet Community Support

  • PHP - FastCGI - $_SERVER['DOCUMENT_ROOT']

    I am attempting to host a vendor developed PHP web application in a java System Web Server (Sun Java System Web Server 7.0U5) environment. The application is dependant upon the existance of the $_SERVER['DOCUMENT_ROOT']. It appears that this variable is not present in our environment.
    I've researched the issue extensively however I cannot identify how to enable the existance of this variable.
    My environment information follow:
    java System Web Server (Sun Java System Web Server 7.0U5)
    PHP 5.2.6 (Installed using Sun's Coolstack)
    FastCGI
    FastCGI responder line from obj.conf file:
    Service fn="responder-fastcgi" type="magnus-internal/php" app-path="/path/to/coolstack/php5/bin/php-cgi" bind-path="$(lc($urlhost))" app-env="LD_LIBRARY_PATH=/usr/apps/coolstack/php5/lib/php" app-env="DOCUMENT_ROOT=/path/to/virtualhost/documentroot"
    Can someone direct me how to make the $_SERVER['DOCUMENT_ROOT'] variable available in my environment?
    Thank you in advance.

    If you create your testing server in a virtual host, Live View will display your include files correctly. However, includes that use only HTML will not be displayed in Design view.

  • My mail forms created by muse 2014.0.1.30 do not work. PHP 5.4 is enabled by hoster, so they should work. Can anyone help me, for these forms are crucial for my business.

    My mail forms created by muse 2014.0.1.30 do not work. PHP 5.4 is enabled by my hoster, so they should work. Can anyone help me, for these forms are crucial for my business. The forms confirm delivery, but the mails are not recieved. No spam filters enabled.
    Meanwhile, I was able to narrow the problem down: PHP seems not to accept a re-directed mail address as sender of the mail in some cases. So, it has nothing to do with the mail form itself.

    Hi Ingo,
    Please refer to this document, Troubleshooting Muse Form Widgets Used on Third-Party Servers
    Last section, "I've uploaded my new Muse form, and tried submitting it in the browser, but I never receive an email with the form data. What's wrong?"
    - Abhishek Maurya

  • PHP scripts with a $_SERVER['HTTP_REFERER'] directive inside, no longer work in v16.

    I made a PHP script some time ago, before v16 came out and now that I have upgraded (good thing I did), notice that the $_SERVER['HTTP_REFERER'] directive no longer works. What my script does is, see if a user came in from a website (Facebook for example) and redirects them to the appropriate page. This is no longer the fact and I am not happy at all with this. How do I know FF 16 is at fault? Because, my script still works in IE7 and other web browsers. What have you done?????

    A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.
    *http://forums.mozillazine.org/viewforum.php?f=25
    The helpers at that forum are more knowledgeable about web development issues.<br>
    You need to register at the MozillaZine forum site in order to post at that forum.

  • Acrobat 9 Pro Extended(Vista Ultimate) Data Execution Prevention-program stops working.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   When I open Acrobat 9 Pro Extended using Vista Ultimate, I get the message: " Adobe Acrobat 9.0 has stopped working. Windows can check online for a solution to the problem. Check online for a solution and close."       
    "To help protect your computer, Data Executuion Prevention has closed Adobe Acrobat 9.0 Click to learn more."
    Should I change the settings? Will it harm my computer? Shouldn't the software be compatible with Windows Vista Ultimate?

    Can you please post the scanner brand with which you see the crash?

  • Data Execution Prevention preventing iTunes from working

    I have iTunes 8.0.2.20 running on Windows Server 2008 SP1. Whenever I plug in my iPod Nano, Data Execution Prevention (DEP) shuts down iTunes. I can't create an exception for iTunes in DEP since it gives the following error message:
    +"This program must run with data execution protection (DEP) enabled. You cannot turn off DEP for this program."+
    Any ideas on what might be causing this issue?

    No, i do not have quickTime player.
    I have tried to close dep off for iTunes but failed to do so as i got a msg that iTunes can't work without Dep in execution data prevention.

  • Port blocked prevents app from working

    Dear all,
    Although I don't even have ipfilters support compiled into my kernel, external attempts to connect to my tcp port 4662 fail. This happens although (locally) nmap shows it to be open:
    # nmap -sT -P0 -p 1-65535 localhost
    Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-05-03 23:40 EDT
    Interesting ports on thinkpad (127.0.0.1):
    (The 65533 ports scanned but not shown below are in state: closed)
    PORT     STATE SERVICE
    4662/tcp open  unknown
    6000/tcp open  X11
    Nmap finished: 1 IP address (1 host up) scanned in 2.805 seconds
    However, it is impossible to connect from the internet to this port. Eg, I've used
    http://www.amule.org/testport.php?tcpport=4662
    and it always answers that the port is inacessible.
    Do you have any idea why this port might not be accessible on my machine? I am a residential cable customer, so I'm not behind a firewall.
    Thanks for any clue,
    Mack

    Actually a cable modem, acts as a router, as long as it has DHCP service in it, and im pretty sure its in NAT mode (so if you connect a switch to it, you can access internet from multiple PCs)...
    Arch has no port blocking per default that im aware of.
    EDIT:
    Also, as you see with nmap the port is open in your computer, but you cant reach it from internet because when you are behind a NAT you have to forward that port in the router/cablemodem/dslmodem to your PC IP and port. This was what i was talking in my first post. (Im quite sure about the cablemodem being in NAT mode and causing this problem, but i could be wrong, in my case, this was the problem (though i have DSL)).

  • Security setting is preventing the browser working. its an alert message

    Could not initialise the application's security component. The most probable cause is problems with files in your browser's profile directory. Please check that this directory has no read/write restrictions and your hard drive is not full or close to full. It is recommended that you exit the browser and fix the problem. If you continue to use this browser session, you might see incorrect browser behaviour when accessing security features.

    This link shows things to check - https://support.mozilla.com/kb/Could+not+initialize+the+browser+security+component

  • DEP Data Execution Protection prevents itunes from working?

    Hi
    I'm hoping for some help as DEP on Windows XP keeps closing itunes despite the changing the settings on DEP in the windows control panel (i.e. whether itunes is ticked or unticked in the appropriate panel). I do not think I have any quicktime programmes installed which seems to have related issues. Advice much appreciated, Thank you in advance.

    Doublechecking. If you install the latest version of the QuickTime Player, does that clear up the iTunes DEP?
    http://www.apple.com/quicktime/download/

  • [ANN]  I have small web (php?) project, suit student or hobbyist... paid work.

    I am designing a website and excel formulas and I need someone  to link the two. I can write a very clear spec' for the programmer as I have  some programming experience and plenty of mid-level web design experience and I  wrote specs for an online ordering system and other projects.
    It will involve an interactive quote form where they tick a  box for eg: black and white or colour printing, one side or two etc, these  actions might trigger a pic to appear on the page showing a colour brochure or  whatever, then they fill out how many and a few other options and the site  calculates the price using a formula that I design.
    So it is pretty light work for a programmer, no special knowledge  or layout required, we just need to incorporate scripts into the site.
    I will be able to bill reasonable hourly rates and the overall  quote for a site like that (just the quote page) might run to a couple of grand  for the whole lot, layout and programming so there would be a few hundred bucks in this project with more down the track.
    I would be more than happy to work with someone with limited  knowledge or experience so if any student or newbie to this kind of  thing is keen it might be a good introduction. I am experienced enough to take the lead  and the responsibility for the end product while you get some useful real world  experience. Its probably a bit too small a job for a big professional, but ideal  for noobie looking for pocket money!
    PM me for details and project starts in a couple of days and should last a week or so off and on.

    3360 wrote:
    user13667625 wrote:
    I post it in " Database - General Forum " because it's related with database and JSP
    also i understand that all forums is under this URL , http://forums.oracle.com
    The database in this forum, is the database sold by Oracle, which is why the URL contains the word oracle.
    Access is a product from Microsoft, a competitor of Oracle.
    http://en.wikipedia.org/wiki/Microsoft_Access
    Oracle do not typically provide help for using products sold by Microsoft. I know that may seem a little unfair to you but welcome to the dog eat dog world of the computer software business.
    I would suggest looking for a similar URL for Access checking that it has microsoft of similar in it.
    http://www.google.com/search?q=microsoft+access
    Thank you So much,

Maybe you are looking for

  • Data Types for JDBC Sender/Receiver Adapter

    HI experts,                 I am very much confused how the data types shoudl be for the Sender/receiver for JDBC. And is there any standard format where it should be used, or what is the strucutre to be used,. Please let me know in clear and help me

  • Reading AI on a usb-6008

    Hello I'm making a thread in my program which is listening on the AI ports on my usb-6008. The point of this thread is that if the voltage on the port rises or falls it will trigger an event in the mainThread. Now for the question: When I initialize

  • Package configuration.xml with AnyConnect NAM installer?

    Hi, I am running AnyConnect 3.1. I have configured a new configuration.xml file and tested locally. I would like to package this new configuration file with the AnyConnect installer similar to how an ASA does, but without the ASA. This way, clients c

  • I can't activate my iTunes gift card as i don't know my security questions

    i can't activate my iTunes gift card as i don't know my security questions

  • Moved folders!!! Big mistake?

    Hello everyone, yesterday i received my Ipod and started to make playlist and put music on it. Now, some music files i had stored on some DVD's ( for backup) so i brought them back on my lappy, and got them in Itunes and made playlist then placed tho