Problem changing PHP handlers
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?
-
Did you try checking any related log files like apache error log when refreshing the script throwing a blank page. 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.0 -
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: [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/0 -
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 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 00 -
is it "display_errors" i disable . thank you for the help man really appreciate it 0 -
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 :( 0 -
do: 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?0 -
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 -bpc0 -
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? 0 -
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?
phpmail() ill try that on chrome and let you know0 -
Do you have SMTP restriction enabled in WHM and/or using CSF with SMTP block enabled? Might be the issue as well 0 -
The SMTP restriction is disabled. :( not that 0 -
And no errors via console? or error_log file in the directory where that PHP script resides? 0 -
[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 .0 -
Hmm maybe PHP version related, what PHP version are you running on this server compared to the other? Found this: Error with PHP mail(): Multiple or malformed newlines found in additional_header Seems like it could be related. 0 -
thanks im gonna give this a shot now . 0 -
We're glad to see @Jcats was able to provide some assistance, please let us know what you find! Thanks! 0
Please sign in to leave a comment.
Comments
16 comments