Portal Home > Knowledgebase > Articles Database > Problems after apache recompilation


Problems after apache recompilation




Posted by cuantica, 04-13-2008, 05:49 PM
I got problems logging to different applications after apache recompilation (via easyapache) to include php5 support in my server running Cpanel. Problem is: Once I try to log into some apps (ie, modernbill) using the correct user and password, the login page is displayed again without any error message. I haven't found errors related in the server logs. If I recompile again to remove php5 support everything works normal again. Any ideas on what would be wrong? Thanks

Posted by blite, 04-13-2008, 06:11 PM
can you paste the errors

Posted by cuantica, 04-13-2008, 07:41 PM
The problem is there are no errors displayed, I have changed php.ini to set error_reporting to all and error_display to on but there is none displayed.

Posted by dd34, 04-13-2008, 07:51 PM
How much RAM do you have?

Posted by cuantica, 04-13-2008, 07:55 PM
2 Gb, this is the free output total used free shared buffers cached Mem: 2073824 2037536 36288 0 147988 1170472 -/+ buffers/cache: 719076 1354748 Swap: 2096440 7852 2088588

Posted by whmcsguru, 04-13-2008, 07:59 PM
Here's your problem right there. Misc apps have their own little quirks and development setbacks. modernbill 5, for instance, may not support 5.2.5 yet. I know the past year has been rough on them and I'd (honestly) be surprised to see that it did. mb4, I'd lay even money against it as well. This isn't php's fault, but the application designer and developer's fault. not really even a 'memory' issue as suggested before either, more like either the app doesn't supply the support for the latest version of php, or the supported modules (curl, etc) are not compiled in there. Find a configuration, stick with it. Don't go back to php4 just because modernbill doesn't work, that's not the answer either.

Posted by blite, 04-13-2008, 08:11 PM
if you haven't checked the error_log please check it sometimes particular configurations turn off errors but its pretty rare not to log them at all. the error level could also be modified but i bet you at least have something in the the error_log. Make sure to actually open the real file, not just through a cpanel account.

Posted by cuantica, 04-13-2008, 08:42 PM
Since I have not disabled php4 support and in fact is the default version for php files, I suppose it should work. I am running modernbill Version 4.4.0:B-2:REL:Z:32 you can verify it is not showing any errors but the login process is failing on this url. http://cmvprivate.com/~celeraho/modernbill/ User redexpertos-at-redexpertos.com Passwd: Ub1rk2oA I have checked the log files directly on /usr/local/apache/logs and domlogs folders but there is nothing about the issue

Posted by blite, 04-13-2008, 08:46 PM
you say you have checked the log files but apache has a separate log file for errors than the regular logs.... also sometimes it will drop the logs in the directory of the application.... also sometimes php is configured not to send errors to apache..

Posted by cuantica, 04-13-2008, 09:25 PM
Yes you are right, errors are located in /usr/local/apache/logs/error_log and domain specific logs are separated logs for each domain on /usr/local/apache/domlogs There are no error files on the domain folder either. So I presume there are no error messages at all, this is very confusing.

Posted by RHS-Chris, 04-13-2008, 09:30 PM
So, you compiled apache with php 4 and php 5, using php 4 as your default, and yet, when you remove php 5, it works again?

Posted by cuantica, 04-13-2008, 09:41 PM
yes, that is.

Posted by RHS-Chris, 04-13-2008, 09:45 PM
Was there something else not compiled when you upgraded? Have you looked here to see if there is something you are missing: http://www.modernbill.com/support/ma...quirement.html

Posted by cuantica, 04-14-2008, 12:04 AM
I have checked but those requirements are for modernbill V5, mine is V4

Posted by david510, 04-14-2008, 08:51 AM
Is register_globals On for php5 ?

Posted by cuantica, 04-14-2008, 09:47 AM
I have swithced back and remove php5, I'll try again during slow hours. Thanks for your help.

Posted by whmcsguru, 04-14-2008, 10:19 AM
Honestly, I wouldn't bother The problem isn't php in this case but modernbill. As I suspected, you're using 4.4, which has numerous issues with php5. At last check (admittedly a couple years ago), they refused to update v4 until there was a pretty large mob demanding it. Now, they're up to 4.4.1 (at minimum, though reports have been rumored about 4.4.3), and I'd be willing to bet it's the same thing. If you're going to stick with MB4, you're stuck with php4. I'm sure modernbill (paralells) won't upgrade mb4 any more than they have to any more. Personally, I'd say toss MB alltogether. 4.4.0 didn't support php 5.1 so I'm particular it's not going to support the later (5.2) versions. You might TRY with updated software, but if you've got to pay for it, don't bother.

Posted by tepezcuintle, 04-14-2008, 04:31 PM
you can use strace to find all the calls that php 5 makes to your application and compare it to all the calls made by php4 you will find that if you log all the strace results you will find that something did not compile properly with php 5. use this example. http://linuxgazette.net/132/vishnu.html



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read