500 internal error after changing phpmyadmin aliias

I have an issue, after changing alias of phpmyadmin in php.inc , all my domain are done with 500 internal error , when I login to my dashboard and restart Apache and all php configs site start working for a while and problem comes again , I have read through the comments but did not understand the solution anyone here to help me fix this

I followed this to hide my domain/phpmyadmin

After changing its works but database keeps disconnecting for 2 hours interval says 500 error , server misconfiguration .

After restarting Apache or when I login to my server ip problems resolves and 2 hours disconnects again until I follow the same steps again