Skip to main content

PHP error Get/Post

Comments

15 comments

  • ankeshanand
    Maybe, You should check PHP settings and change PHP Version to the supported Version. Many Times, Payment Modules also fail due to cURL Failure. Check if cURL needs to be updated or is connection being reset. Also, Could You share the WebServer Logs for any Errors being Shown?
    0
  • cPRex Jurassic Moderator
    Hey there! It doesn't sound like this is related to cPanel itself, but it could definitely be a connection issue between the machines or a missing PHP module. Seeing error logs from the webserver on cPanel would be helpful to at least confirm if the connection is being made.
    0
  • edgesky
    Maybe, You should check PHP settings and change PHP Version to the supported Version. Many Times, Payment Modules also fail due to cURL Failure. Check if cURL needs to be updated or is connection being reset. Also, Could You share the WebServer Logs for any Errors being Shown?

    the PHP version is the one supported by my theme, 7.3 cURL is enabled. How to check if the connection is being reset?
    0
  • edgesky
    Hey there! It doesn't sound like this is related to cPanel itself, but it could definitely be a connection issue between the machines or a missing PHP module. Seeing error logs from the webserver on cPanel would be helpful to at least confirm if the connection is being made.

    How to check for the log? I got empty log on Raw Apache Log Download.
    0
  • cPRex Jurassic Moderator
    With root access to the system, it would be easiest to run this command while you perform the work, as you'll be able to see the requests happening in real-time: tail -f /etc/apache2/logs/error_log
    0
  • edgesky
    Hi, I've done so and I proceeded with an order to test the module connection between the two servers, i got this log when I first run your mentioned command, then nothing happened while processing: [root@asgard ~]# tail -f /etc/apache2/logs/error_log [ N 2021-08-17 14:56:09.0460 26785/T1 age/Wat/WatchdogMain.cpp:1373 ]: Starting Passenger watchdog... [ N 2021-08-17 14:56:09.0588 26753/T1 age/Cor/CoreMain.cpp:1325 ]: Passenger core shutdown finished [ N 2021-08-17 14:56:09.0652 26789/T1 age/Cor/CoreMain.cpp:1340 ]: Starting Passenger core... [ N 2021-08-17 14:56:09.0654 26789/T1 age/Cor/CoreMain.cpp:256 ]: Passenger core running in multi-application mode. [ N 2021-08-17 14:56:09.0777 26789/T1 age/Cor/CoreMain.cpp:1015 ]: Passenger core online, PID 26789 [Tue Aug 17 14:56:09.078563 2021] [:notice] [pid 26777] mod_ruid2/0.9.8 enabled [Tue Aug 17 14:56:09.083606 2021] [mpm_prefork:notice] [pid 26777] AH00163: Apache/2.4.48 (cPanel) OpenSSL/1.1.1k mod_bwlimited/1.4 Phusion_Passenger/6.0.10 configured -- resuming normal operations [Tue Aug 17 14:56:09.083641 2021] [core:notice] [pid 26777] AH00094: Command line: '/usr/sbin/httpd' [Tue Aug 17 14:57:20.599294 2021] [proxy_fcgi:error] [pid 26817] [client 51.**.***.***:45464] AH01071: Got error 'Primary script unknown' [Tue Aug 17 15:17:16.159570 2021] [proxy_fcgi:error] [pid 26862] [client 51.**.***.***:47354] AH01071: Got error 'Primary script unknown'
    any idea?
    0
  • cPRex Jurassic Moderator
    What about the access log at /etc/apache2/logs/access_log ? I would expect that to show something happening when the connection is made.
    0
  • edgesky
    What about the access log at /etc/apache2/logs/access_log ? I would expect that to show something happening when the connection is made.

    I'm logged in as Root from WHM TERMINAL, when I run that command I got the following: [root@asgard ~]# /etc/apache2/logs/access_log bash: /etc/apache2/logs/access_log: Permission denied [root@asgard ~]#
    0
  • cPRex Jurassic Moderator
    Sorry about that - I should have been more clear. You would also want to tail that file while performing your work to see if you find evidence of the connection happening: tail -f /etc/apache2/logs/access_log
    0
  • ankeshanand
    the PHP version is the one supported by my theme, 7.3 cURL is enabled. How to check if the connection is being reset?

    Just curl the Remote Website in Terminal. Use https in the start so that you are connected to Port 443 Connection only.
    0
  • edgesky
    Sorry about that - I should have been more clear. You would also want to tail that file while performing your work to see if you find evidence of the connection happening: tail -f /etc/apache2/logs/access_log

    The same thing, nothing added after running this command: [root@asgard ~]# tail -f /etc/apache2/logs/access_log 127.0.0.1 - - [17/Aug/2021:14:43:27 +0100] "GET / HTTP/1.0" 200 163 "-" "-" 127.0.0.1 - - [17/Aug/2021:14:48:28 +0100] "GET / HTTP/1.0" 200 163 "-" "-" 127.0.0.1 - - [17/Aug/2021:14:53:34 +0100] "GET / HTTP/1.0" 200 163 "-" "-" 127.0.0.1 - - [17/Aug/2021:15:08:45 +0100] "GET / HTTP/1.0" 200 163 "-" "-" 127.0.0.1 - - [17/Aug/2021:15:13:50 +0100] "GET / HTTP/1.0" 200 163 "-" "-" 127.0.0.1 - - [17/Aug/2021:15:18:52 +0100] "GET / HTTP/1.0" 200 163 "-" "-" 127.0.0.1 - - [17/Aug/2021:15:24:05 +0100] "GET / HTTP/1.0" 200 163 "-" "-" 127.0.0.1 - - [17/Aug/2021:15:29:09 +0100] "GET / HTTP/1.0" 200 163 "-" "-" 127.0.0.1 - - [17/Aug/2021:15:34:21 +0100] "GET / HTTP/1.0" 200 163 "-" "-" 127.0.0.1 - - [17/Aug/2021:15:39:52 +0100] "GET / HTTP/1.0" 200 163 "-" "-"
    0
  • cPRex Jurassic Moderator
    If you aren't seeing anything in the error_log or access_log when you're making the payment, it would seem the connection is not properly making it to the cPanel server.
    0
  • edgesky
    Just curl the Remote Website in Terminal. Use https in the start so that you are connected to Port 443 Connection only.

    0
  • edgesky
    If you aren't seeing anything in the error_log or access_log when you're making the payment, it would seem the connection is not properly making it to the cPanel server.

    Could it be due to the HTTPS redirect?
    0
  • cPRex Jurassic Moderator
    I would not expect the https redirect to cause any issues with the logs.
    0

Please sign in to leave a comment.