Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Problem changing PHP handlers

Discussion in 'EasyApache' started by That1Hosts, Jun 7, 2018.

  1. That1Hosts

    That1Hosts Member

    Joined:
    Jun 7, 2018
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Scotland
    cPanel Access Level:
    Root Administrator
    i am looking to see if anyone can help me my server has been setup however its been a while since i used WHM and there quite a bit of changes anyway .
    i had to enable mod_userdir i did tht fine and but when i uploaded my php script on cpanel i got "not supported" so i then had todo SuPHP installation . i have done that but when i change my
    PHP Handlers from cgi to suphp i get just blank white pages no sort of errors but no scripts seem to be running correctly im not sure if i am doing it wrong or changing the wrong settings any suggestions please?

    can anyone help me?
     
    #1 That1Hosts, Jun 7, 2018
    Last edited by a moderator: Jun 7, 2018
  2. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    700
    Likes Received:
    112
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Did you try checking any related log files like apache error log when refreshing the script throwing a blank page.

    Code:
    tail -f /etc/apache2/logs/error_log
    You may want to run easyapache and just use a default profile to try and get things working again for now.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. That1Hosts

    That1Hosts Member

    Joined:
    Jun 7, 2018
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Scotland
    cPanel Access Level:
    Root Administrator
    ok i have managed to get it working however this VPS i am using for my emails and i am getting errors on the php scripts now .

    error codes on php script:
    Deprecated: Function split() is deprecated in
    Warning: mail(): Multiple or malformed newlines found in additional_header in


    Error Log:
    Code:
    [root@*** ~]# tail -f /etc/apache2/logs/error_log
    [Fri Jun 08 01:41:02.958275 2018] [ssl:warn] [pid 29738] AH01909: sauron.******.com:443:0 server certificate does NOT include an ID which matches theserver name
    [Fri Jun 08 01:41:02.959010 2018] [ssl:warn] [pid 29738] AH01909: proxy-subdomains-ssl-default-vhost.localhost:443:0 server certificate does NOT include an ID which matches the server name
    [Fri Jun 08 01:41:02.962639 2018] [mpm_prefork:notice] [pid 29738] AH00163: Apache/2.4.33 (cPanel) OpenSSL/1.0.2o mod_bwlimited/1.4 configured -- resuming normal operations
    [Fri Jun 08 01:41:02.962665 2018] [core:notice] [pid 29738] AH00094: Command line: '/usr/sbin/httpd'
    [Fri Jun 08 01:44:11.452631 2018] [mpm_prefork:notice] [pid 29738] AH00171: Graceful restart requested, doing restart
    [Fri Jun 08 01:44:11.835299 2018] [ssl:warn] [pid 29738] AH01909: sauron.********.com:443:0 server certificate does NOT include an ID which matches theserver name
    [Fri Jun 08 01:44:11.836046 2018] [ssl:warn] [pid 29738] AH01909: proxy-subdomains-ssl-default-vhost.localhost:443:0 server certificate does NOT include an ID which matches the server name
    [Fri Jun 08 01:44:11.939788 2018] [mpm_prefork:notice] [pid 29738] AH00163: Apache/2.4.33 (cPanel) OpenSSL/1.0.2o mod_bwlimited/1.4 configured -- resuming normal operations
    [Fri Jun 08 01:44:11.939816 2018] [core:notice] [pid 29738] AH00094: Command line: '/usr/sbin/httpd'
    [Fri Jun 08 01:44:45.615838 2018] [access_compat:error] [pid 32463] [client ] AH01797: client denied by server configuration: /home/iamtop/public_html/mail/application/error_log, referer: http://*******/~*****/mail/
    
     
  4. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    700
    Likes Received:
    112
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    No errors reported in the log you provided.

    As far as the PHP errors, those shouldn't be causing any actual issues but it seems like you have error_reporting / display errors on, you can disable error_reporting via MultiPHP Editor to rid those from appearing, or if you want them to continue to log but not display on the page itself, then disable display_errors

    If the errors continue to show, then you will want to check your PHP scripts and have them suppress the errors or comment out the lines

    you can use grep to find out, example

    Code:
    grep -rl 'display_errors\|error_reporting' --include='*php'
    run that in the directory where your PHP scripts reside. Any hits, open up the script and comment out and/or suppress the errors by setting error_reporting to 0 / display_errors to 0
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. That1Hosts

    That1Hosts Member

    Joined:
    Jun 7, 2018
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Scotland
    cPanel Access Level:
    Root Administrator
    is it "display_errors" i disable .
    thank you for the help man really appreciate it
     
  6. That1Hosts

    That1Hosts Member

    Joined:
    Jun 7, 2018
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Scotland
    cPanel Access Level:
    Root Administrator
    ok no errors now .however when i click send email it tells me that it has been sent however it has not been sent do i need to edit my outgoing servers at all or anything ?
    - i can't see anything in php.ini (disable_functions) that could cause it :(
     
  7. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    700
    Likes Received:
    112
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    do:

    Code:
    tail -f /var/log/exim_mainlog
    while you are tailing that log file, try sending a test email, do you see anything log when you click send?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. That1Hosts

    That1Hosts Member

    Joined:
    Jun 7, 2018
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Scotland
    cPanel Access Level:
    Root Administrator
    Code:
    2018-06-08 03:14:33 SMTP connection from [127.0.0.1]:49282 (TCP/IP connection count = 1)
    2018-06-08 03:14:35 SMTP connection from [127.0.0.1]:49282 closed by QUIT
    2018-06-08 03:14:35 SMTP connection from [127.0.0.1]:45930 (TCP/IP connection count = 1)
    2018-06-08 03:14:35 SMTP connection from (localhost) [127.0.0.1]:45930 closed by QUIT
    2018-06-08 03:15:17 cwd=/etc/csf 2 args: /usr/sbin/exim -bpc
    2018-06-08 03:19:34 SMTP connection from [127.0.0.1]:54822 (TCP/IP connection count = 1)
    2018-06-08 03:19:36 SMTP connection from [127.0.0.1]:54822 closed by QUIT
    2018-06-08 03:19:36 SMTP connection from [127.0.0.1]:51452 (TCP/IP connection count = 1)
    2018-06-08 03:19:36 SMTP connection from (localhost) [127.0.0.1]:51452 closed by QUIT
    2018-06-08 03:20:17 cwd=/etc/csf 2 args: /usr/sbin/exim -bpc
     
  9. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    700
    Likes Received:
    112
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    So no attempt at all. Does the script use SMTP authentication or PHP mail?

    What happens if you open up developer console in chrome, click the console tab, then try and send an email, do you see any red 500 error?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. That1Hosts

    That1Hosts Member

    Joined:
    Jun 7, 2018
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Scotland
    cPanel Access Level:
    Root Administrator
    phpmail() ill try that on chrome and let you know
     
  11. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    700
    Likes Received:
    112
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Do you have SMTP restriction enabled in WHM and/or using CSF with SMTP block enabled?

    Might be the issue as well
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. That1Hosts

    That1Hosts Member

    Joined:
    Jun 7, 2018
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Scotland
    cPanel Access Level:
    Root Administrator
    The SMTP restriction is disabled. :( not that
     
  13. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    700
    Likes Received:
    112
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    And no errors via console? or error_log file in the directory where that PHP script resides?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. That1Hosts

    That1Hosts Member

    Joined:
    Jun 7, 2018
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Scotland
    cPanel Access Level:
    Root Administrator
    Code:
    [07-Jun-2018 17:55:59 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 45
    [07-Jun-2018 17:55:59 UTC] PHP Deprecated:  Function split() is deprecated in /home/iamtop/public_html/Email.php on line 148
    [07-Jun-2018 17:55:59 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 167
    [07-Jun-2018 17:55:59 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 168
    [07-Jun-2018 17:55:59 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 169
    [07-Jun-2018 17:55:59 UTC] PHP Warning:  mail(): Multiple or malformed newlines found in additional_header in /home/iamtop/public_html/Email.php on line 185
    [07-Jun-2018 17:55:59 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 167
    [07-Jun-2018 17:55:59 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 168
    [07-Jun-2018 17:55:59 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 169
    [07-Jun-2018 17:55:59 UTC] PHP Warning:  mail(): Multiple or malformed newlines found in additional_header in /home/iamtop/public_html/Email.php on line 185
    [07-Jun-2018 17:55:59 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 167
    [07-Jun-2018 17:55:59 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 168
    [07-Jun-2018 17:55:59 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 169
    [07-Jun-2018 17:55:59 UTC] PHP Warning:  mail(): Multiple or malformed newlines found in additional_header in /home/iamtop/public_html/Email.php on line 185
    [07-Jun-2018 17:55:59 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 167
    [07-Jun-2018 17:55:59 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 168
    [07-Jun-2018 17:55:59 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 169
    [07-Jun-2018 17:55:59 UTC] PHP Warning:  mail(): Multiple or malformed newlines found in additional_header in /home/iamtop/public_html/Email.php on line 185
    [07-Jun-2018 18:31:29 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 45
    [07-Jun-2018 18:31:29 UTC] PHP Deprecated:  Function split() is deprecated in /home/iamtop/public_html/Email.php on line 148
    [07-Jun-2018 18:31:29 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 167
    [07-Jun-2018 18:31:29 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 168
    [07-Jun-2018 18:31:29 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 169
    [07-Jun-2018 18:31:29 UTC] PHP Warning:  mail(): Multiple or malformed newlines found in additional_header in /home/iamtop/public_html/Email.php on line 185
    [07-Jun-2018 18:31:29 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 167
    [07-Jun-2018 18:31:29 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 168
    [07-Jun-2018 18:31:29 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 169
    [07-Jun-2018 18:31:29 UTC] PHP Warning:  mail(): Multiple or malformed newlines found in additional_header in /home/iamtop/public_html/Email.php on line 185
    [07-Jun-2018 18:31:29 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 167
    [07-Jun-2018 18:31:29 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 168
    [07-Jun-2018 18:31:29 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 169
    [07-Jun-2018 18:31:29 UTC] PHP Warning:  mail(): Multiple or malformed newlines found in additional_header in /home/iamtop/public_html/Email.php on line 185
    [07-Jun-2018 18:31:29 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 167
    [07-Jun-2018 18:31:29 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 168
    [07-Jun-2018 18:31:29 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 169
    [07-Jun-2018 18:31:29 UTC] PHP Warning:  mail(): Multiple or malformed newlines found in additional_header in /home/iamtop/public_html/Email.php on line 185
    [07-Jun-2018 18:42:10 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 45
    [07-Jun-2018 18:42:10 UTC] PHP Deprecated:  Function split() is deprecated in /home/iamtop/public_html/Email.php on line 148
    [07-Jun-2018 18:42:10 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 167
    [07-Jun-2018 18:42:10 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 168
    [07-Jun-2018 18:42:10 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 169
    [07-Jun-2018 18:42:10 UTC] PHP Warning:  mail(): Multiple or malformed newlines found in additional_header in /home/iamtop/public_html/Email.php on line 185
    [07-Jun-2018 18:42:46 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 45
    [07-Jun-2018 18:42:46 UTC] PHP Deprecated:  Function split() is deprecated in /home/iamtop/public_html/Email.php on line 148
    [07-Jun-2018 18:42:46 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 167
    [07-Jun-2018 18:42:46 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 168
    [07-Jun-2018 18:42:46 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 169
    [07-Jun-2018 18:42:46 UTC] PHP Warning:  mail(): Multiple or malformed newlines found in additional_header in /home/iamtop/public_html/Email.php on line 185
    [07-Jun-2018 18:43:16 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 45
    [07-Jun-2018 18:43:16 UTC] PHP Deprecated:  Function split() is deprecated in /home/iamtop/public_html/Email.php on line 148
    [07-Jun-2018 18:43:16 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 167
    [07-Jun-2018 18:43:16 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 168
    [07-Jun-2018 18:43:16 UTC] PHP Deprecated:  Function ereg_replace() is deprecated in /home/iamtop/public_html/Email.php on line 169
    [07-Jun-2018 18:43:16 UTC] PHP Warning:  mail(): Multiple or malformed newlines found in additional_header in /home/iamtop/public_html/Email.php on line 185
    
    this is the error log but when i use email.php on my other server it works fine .
     
  15. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    700
    Likes Received:
    112
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. That1Hosts

    That1Hosts Member

    Joined:
    Jun 7, 2018
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Scotland
    cPanel Access Level:
    Root Administrator
    thanks im gonna give this a shot now .
     
  17. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,350
    Likes Received:
    90
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    We're glad to see @Jcats was able to provide some assistance, please let us know what you find!


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice