500 Error and Errors in cPanel accounts transfer

postcd

Well-Known Member
Oct 22, 2010
717
19
68
I have moved some cpanel accouints from my old server and after its done, nor old and new accounts on this new server works. It gives:

500 Internal Server Error

The request was not completed. The server met an unexpected condition.

And when i see log of account transfer i see errors in section:

Rebuilding Apache Conf
Initial configuration generation failed with the following message:An error occurred while running: /usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf.1318388324Exit signal was: 0Exit value was: 1Output was:---Syntax error on line 44 of /usr/local/apache/conf/httpd.conf.1318388324:RLimitMEM takes 1-2 arguments, Soft/hard limits for max memory usage per process---Rebuilding configuration without any local modifications.Failed to generate a syntactically correct Apache configuration.Bad configuration file located at /usr/local/apache/conf/httpd.conf.1318388324Error:An error occurred while running: /usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf.1318388324Exit signal was: 0Exit value was: 1Output was:---Syntax error on line 44 of /usr/local/apache/conf/httpd.conf.1318388324:RLimitMEM takes 1-2 arguments, Soft/hard limits for max memory usage per process---

Please what does it mean and how can i quickly fix it? Like rebuilding Apache, or upgrading apache? What is the cause?

Thank you,
P.
 

rwoody

Member
Jul 26, 2003
24
0
151
I have this exact situation. I'm moving to a new server and I could not get the transfer to work, so we moved thebackup drive over to the new server and I'm restoring the backups to the new box via the restore function. Any site using PHP is giving me this 505 error and I have absolutely no clue. Something that should have been easy has turned out to be a nightmare.

Can someone please advise what I need to do.

I've checked the file/folder permissions - they are all as they should be
I've checked the ownership of the files/folder - they are also as they should be the user name is the owner.

What would cause this?

Please help!
 

postcd

Well-Known Member
Oct 22, 2010
717
19
68
I dont know exactly but i think i somehow solved it by transfering failed accounts manually one by one. Maybe it has to do with full swap. not sure.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,222
463
Hello :)

If the website is displaying an error message, it's always a good idea to check the Apache error log. The Apache error log is located at:

Code:
/usr/local/apache/logs/error_log
Check to see what the exact error message is when visiting the website, and post it here so we can provide you with some possible solutions.

As for the error message when rebuilding the Apache configuration file, you can try resetting the RLimit entries in /usr/local/apache/conf/httpd.conf using the following option:

"WHM >> Service Configuration >> Apache Configuration >> Memory Usage Restrictions"

Thank you.