Installing phpgrid on plesk

QuestionsInstalling phpgrid on plesk
Paolo D. asked 2 years ago

I have installed a phpgrid solution (master -> detail structure) on Plesk and everything runs smoothly except for this one thing:
– when I try to add a record an error gets thrown (see below; it occurs both on master and detail grid) even if the record, in the end, gets inserted in the database
– when I edit the record there is no problem.

It may be a permission problem (don't know for sure). Any clue? Thanks

Error:

HTTP Error 500.0 – Internal Server Error
E:Program Files (x86)ParallelsPleskAdditionalPleskPHP54php-cgi.exe – The FastCGI process exited unexpectedly
Detailed Error Information
Module FastCgiModule
Notification ExecuteRequestHandler
Handler PHP-php
Error Code 0xc0000005
Requested URL http://php.mnt.it:80/lunikgas/tab_sedi.php?=&grid_id=list1
Physical Path PATH to httpdocs httpdocslunikgastab_sedi.php
Logon Method Anonymous
Logon User Anonymous

Most likely causes:
IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.
IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.
IIS was not able to process configuration for the Web site or application.
The authenticated user does not have permission to use this DLL.
The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.

Things you can try:
Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account.
Check the event logs to see if any additional information was logged.
Verify the permissions for the DLL.
Install the .NET Extensibility feature if the request is mapped to a managed handler.
Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here.

Links and More Information
This error means that there was a problem while processing the request. The request was received by the Web server, but during processing a fatal error occurred, causing the 500 error.
View more information ยป

Microsoft Knowledge Base Articles:

294807

6 Answers
Abu Ghufran answered 2 years ago

To debug:
Use firefox->firebug->net->ajax-call of grid->response. You will see the output there, in case of any error. It should be proper JSON format data in order to render grid
Review this tutorial for '[debugging with firebug](https://phpgrid.desk.com/customer/portal/articles/926266)'.

Paolo L. answered 2 years ago

Tried but no JSON error shows. The record is inserted, as I stated in the original post, but the http 500 error still shows. On a local installation on my pc there is no error so it is PLESK related, any clue to what it could be? This is, anyway, the JSON response:

{"page":1,"total":1,"records":16,"rows":[{"ID_SEDE":"1","LOCALITA_SEDE":"Basiliano","INDIRIZZO_SEDE":"Via Rossi 2"},{"ID_SEDE":"2","LOCALITA_SEDE":"Bergamo","INDIRIZZO_SEDE":"Via Rossi 2"},{"ID_SEDE":"3","LOCALITA_SEDE":"Bertiolo","INDIRIZZO_SEDE":"Via Rossi 2"},{"ID_SEDE":"4","LOCALITA_SEDE":"Braone","INDIRIZZO_SEDE":"Via Rossi 26"},{"ID_SEDE":"5","LOCALITA_SEDE":"Brescia","INDIRIZZO_SEDE":"Via Rossi 2"},{"ID_SEDE":"6","LOCALITA_SEDE":"Milano","INDIRIZZO_SEDE":"Via Ortles"},{"ID_SEDE":"7","LOCALITA_SEDE":"Fidenza","INDIRIZZO_SEDE":"Via Del Re"},{"ID_SEDE":"8","LOCALITA_SEDE":"Udine","INDIRIZZO_SEDE":"Via Rossi"},{"ID_SEDE":"9","LOCALITA_SEDE":"Palermo","INDIRIZZO_SEDE":"Via Verdi"},{"ID_SEDE":"10","LOCALITA_SEDE":"Asti","INDIRIZZO_SEDE":"Via Roma"},{"ID_SEDE":"11","LOCALITA_SEDE":"Firenze","INDIRIZZO_SEDE":"Via Arona"},{"ID_SEDE":"12","LOCALITA_SEDE":"Torino","INDIRIZZO_SEDE":"Via Chopin"},{"ID_SEDE":"13","LOCALITA_SEDE":"Cuneo","INDIRIZZO_SEDE":"Via Zurigo"},{"ID_SEDE":"14","LOCALITA_SEDE":"Cagliari","INDIRIZZO_SEDE":"Corso Como"},{"ID_SEDE":"15","LOCALITA_SEDE":"Cagliari","INDIRIZZO_SEDE":"Corso Como"},{"ID_SEDE":"16","LOCALITA_SEDE":"Cagliari","INDIRIZZO_SEDE":"Corso Como"}]}

Paolo L. answered 2 years ago

It's related to the php version installed on plesk.
A phpgrid solution works smoothly with Plesk on php 5.3.29, has the above mentioned problem on php 5.4.45 and does not work on php 5.5.38 or 5.6.33

Abu Ghufran answered 2 years ago

Please check php error log for details. There must be some extension missing otherwise we've tested it on php7 as well.

Paolo L. answered 2 years ago

Hi, the php error log does not report anything missing or any kind of error.

The IIS log has all blue records except for the one relating to the error, which is in red:
2018-02-02 11:30:28 POST /lunikgas/tab_sedi.php =&grid_id=list1 HTTP/1.1

But no clue as to what php dependency may be missing.

Abu Ghufran answered 2 years ago

This does not look like php error log message.
Please review this for error log: https://stackoverflow.com/questions/4764230/where-does-iis-7-5-log-errors

Your Answer

17 + 10 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!