Error 500 after migration looks that tries to execute subdomains first instead of main

dandumit

Member
May 5, 2021
5
0
1
Bucharest
cPanel Access Level
Website Owner
Hello all,

I am trying to move to a new server .
1. I have used migration tool from WHM . Migrated some part of account but had some warnings and told me to manually migrate home directory
2. I have uploaded a backup of home directory from old server to new server to new server on Cpanel->backup ->Restore a Home Directory Backup

initially I have started to delete subdomains where application was trying to point, then reading trough other forum threads I have activated also "mod_suexec" and changed permission of /home2/dandumit to 755

Finally I have found hint to look on /etc/apache2/logs/error_log.

IT looks that main issue it's related to new server path :

On old server folder was /home/dandumit
On new server folder is /home2/dandumit

I get error 500 and it seems that it tries to execute first all subdomains instead of main domain and now I see that actually server searches for "old path" .

Code:
[[email protected] public_html]# tail /etc/apache2/logs/error_log
[Thu May 06 07:51:19.779998 2021] [core:notice] [pid 19404] AH00094: Command line: '/usr/sbin/httpd'
[Thu May 06 07:51:32.902175 2021] [mpm_prefork:notice] [pid 19404] AH00171: Graceful restart requested, doing restart
[Thu May 06 07:51:33.029244 2021] [mpm_prefork:notice] [pid 19404] AH00163: Apache/2.4.46 (cPanel) OpenSSL/1.1.1k mod_bwlimited/1.4 configured -- resuming normal operations
[Thu May 06 07:51:33.029275 2021] [core:notice] [pid 19404] AH00094: Command line: '/usr/sbin/httpd'
[Thu May 06 07:52:11.726499 2021] [authn_file:error] [pid 19494] (2)No such file or directory: [client 1.2.3.4:57007] AH01620: Could not open password file: /home/dandumit/.htpasswds/public_html/importmagazin/passwd, referer: https://x.x.x.x/~dandumit/
[Thu May 06 07:52:17.978353 2021] [authn_file:error] [pid 19491] (2)No such file or directory: [client 1.2.3.4:50634] AH01620: Could not open password file: /home/dandumit/.htpasswds/public_html/importmagazin/passwd
[Thu May 06 07:52:18.116644 2021] [authn_file:error] [pid 19493] (2)No such file or directory: [client 1.2.3.4:45827] AH01620: Could not open password file: /home/dandumit/.htpasswds/public_html/importmagazin/passwd, referer: https://x.x.x.x/
[Thu May 06 07:52:23.645404 2021] [authn_file:error] [pid 19495] (2)No such file or directory: [client 1.2.3.4:17273] AH01620: Could not open password file: /home/dandumit/.htpasswds/public_html/importmagazin/passwd
[Thu May 06 07:52:23.864697 2021] [authn_file:error] [pid 19492] (2)No such file or directory: [client 1.2.3.4:25342] AH01620: Could not open password file: /home/dandumit/.htpasswds/public_html/importmagazin/passwd, referer: https://x.x.x.x/dandumit
[Thu May 06 07:52:30.295234 2021] [authn_file:error] [pid 19491] (2)No such file or directory: [client 1.2.3.4:34054] AH01620: Could not open password file: /home/dandumit/.htpasswds/public_html/importmagazin/passwd, referer: https://x.x.x.x/~dandumit/
where I can check and correct for path for main domain to have correct path in first step ?

Thank you,
Daniel
 
Last edited by a moderator:

dandumit

Member
May 5, 2021
5
0
1
Bucharest
cPanel Access Level
Website Owner
Thank you !
I have erased all .htaccess.
I have disabled FPM I have changed PHP not to be handled by CGI
Still application tries to serve all subfolders/ subdomains instead of main site.
If I force it to serve index.php just send me to download the file content !

I have open a support ticket as well.
I am desperate and cluelesss
 

dandumit

Member
May 5, 2021
5
0
1
Bucharest
cPanel Access Level
Website Owner
hello @cPRex,

thicket is : 94323590

IT seems that PHP handler was wrong. had to activate mod_suexec. Now it's working , I just need an update how to make it work with PHP-FPM.
I was expecting somehow cpanel to ensure consistency among all those settings.

I am stressed that I have to complete all migration within a short night maintenance window.

Thank you !
Daniel