ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This thread may belong to Linux-Server since it appears to be a server issue, but i think there must be someway i can change my php script to solve.
My linux / ngx hosting service recently 'upgraded' their hardware and software. Since they have done so, all php scripts trying to invoke a native linux binary in cgi-bin can no longer open or execute the binary. Here's the php code snippet:
This has been working flawlessly for several years, now the fopen fails. I've changed nothing in the php script or binary, so the problem has to be the hosting service's recent upgrade.
When i asked what they've recently changed, their tech support said:
"were using a new php parser calle 'lsapi' and new hardware / cloud infrastructure."
What i'm specifically asking is whether something in my php code is obsolete and may have to change.
Any ideas?
Last edited by dogpatch; 08-16-2017 at 02:46 PM.
Reason: quote tech support
I see nothing in the error log. My php code reports "Fatal error..." as seen in the above code snippet
This affects all of my several ajax calls to a binary executable, so i think the problem must be in the above code snippet. Pure php ajax appears to work ok. Some processes appear to execute when invoked directly, but fail when the above ajax code is used. So i presume the binary itself is working, or would, if the php script were able to invoke it
If you are not seeing any errors in the returned content, temporarily set PHP's error_reporting(...) to something more useful. If it is an ajax request then you need to look in your browser's javascript errors to see any returned error or hit the ajax target url in a separate tab.
All the above is moot, and i am inclined to mark this thread as 'solved', not because it is solved, but unsolvable, at least in any way that pertains to a programming thread. There are no errors reported by the server or php interpreter because according to the server nothing is amiss. What i believe has happened is that my hosting service has recently changed many server settings which i cannot alter, including the one which enables binaries in cgi-bin to be executed. Time to seek a better hosting service, no?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.