My suphp_log file was huge so I modified the loglevel in the suphp.conf from info to none. That killed all the php files on all websites. Tried changing it back to info but that didn't help.
Similar experience to this person:
https://forum.centos-webpanel.com/centos-6-problems/parsingexception-in-inifile-cpp198-malformed-line-'(global)r'/The advice given on that thread (reinstall suPHP) doesn't help me.
The Details:
- Only php files appear to be broken. Images, videos, and text files all display, as normal.
- CWP Admin module (which is run in part on php and uses the server IP address) works fine. So the source of the problem might be permissions or an error related to accounts/domains?
- When trying to view a php page, the following two errors show up in the error log:
ParsingException in IniFile.cpp:198: Malformed line "[global]\r"
and
End of script output before headers: pagefilenamehere.php
I'm uncertain as whether this is a general php error or one related to suPHP. As mentioned, I made zero changes to any previously working php web page. But, I did see this pinned thread:
https://forum.centos-webpanel.com/php/suphp-500-internal-server-error/Things I tried. All failed:
1. Rebooted Server
2. Fix Permissions in the CWP Admin area
3. Change Permissions of Files/Folders using FTP
4. Change Permissions of Files/Folders using ssh (as shown in above thread)
5. Verified that the problem exists in folders that do not have htaccess or php.ini file
6. Rebuilt apache using the CWP Admin functionality
I'm eager for help and to try to understand what broke. Fortunately, the websites on this server are not revenue-generating, so having them down isn't the end of the world. However, it is super annoying that changing the loglevel configuration breaks php.