Hello, I've installed an application called Hypershrink. It's written in PHP. I get through the initial setup where I put in my database credentials and it connects to the database. However when I click the button to login, I get an Internal Server Error. The error code is 500. I thought it may have been a file permission issue, but the developer tells what files to chmod in case of error but it doesn't help. This is installed on my own VPS, so I have full control to investigate errors, however, my error logs are empty. I have Centos 6.4 with ZPanel installed. I'm using PHP 5.3.3, Mysql 5.1.69, Apache 2.2.15. I've looked in the error logs located at /var/log/httpd and /etc/httpd/logs/ They both appear to be the same log. Or at least they have the same info and time stamps in them. I don't see anything related to a server error in those logs.
FOUND IT!! ZPanel puts error logs in a log directory under each domain directory. It doesn't use the default system error log. The error logs are located in the "/var/zpanel/logs/domains/zadmin/" folder. The errors shown in the log were "Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary." The redirects were caused by an .htaccess file. I've seen a lot of people talk about this error is most likely do to a .htaccess file, but then they (like I did) dismiss that because there seems to be no .htaccess file. My experience, if this can help someone else...I was logged into an ssh session as root. I searched for the .htaccess file via the "ls" command. I didn't see one so I said, nope that's not my problem. I was also logged into ftp as root...still didn't see one. After a tip from another forum had me looking for an error log within my control panel files, I saw the error was do to redirects. At that point, I KNEW there had to be some sort of .htaccess file somewhere somehow. So at the ssh command line I did "locate .htaccess" and it found every instance of the file on my server--including in the domain where my "broken" app was located! It turned out it was there from a previous app that I had installed in that folder so I renamed to something else and my app works now! Someone smarter than me will have to shed light as to why the .htaccess file doesn't show even to the root user when doing a "ls" command. Hope this helps the next person!