'error showing when starting xampp after changing the hard disk to ssd

I have been running xampp from D drive well. Recently I have changed my hard disk to ssd. After then I can not run the xampp. I have checked the port that is written 8080 in httpd.conf and 4333 httpd-ssl.conf as per other suggestions. yet, I am getting the below message:

    1:56:37 AM  [Apache]    Attempting to start Apache app...
    1:56:38 AM  [Apache]    Status change detected: running
    1:56:38 AM  [Apache]    Status change detected: stopped
    1:56:38 AM  [Apache]    Error: Apache shutdown unexpectedly.
    1:56:38 AM  [Apache]    This may be due to a blocked port, missing dependencies, 
    1:56:38 AM  [Apache]    improper privileges, a crash, or a shutdown by another method.
    1:56:38 AM  [Apache]    Press the Logs button to view error logs and check
    1:56:38 AM  [Apache]    the Windows Event Viewer for more clues
    1:56:38 AM  [Apache]    If you need more help, copy and post this
    1:56:38 AM  [Apache]    entire log window on the forums
    1:56:40 AM  [mysql]     Attempting to start MySQL app...

Please suggest me a solution.

Thank you. 


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source