Softaculous


Topic : Apache won't start after moving Ampps to new computer


1

Posted By: Clairey1988 on July 3, 2016, 12:40 am
Hello,

I really need your help. I recently bought a new computer with Windows 10, and I would like to continue building on my Wordpress website on this. I have managed to transfer Ampps across from my laptop to my new computer but apache won't start, although my SQL will. When I press 'start' nothing actually happens.

I would really appreciate any advice on this.

Thank you! 
Claire

Posted By: Rishi_P on July 4, 2016, 9:38 am | Post: 1
On windows 10 IIS server is by default runs on port 80.
You have to stop IIS server to Run Ampps Apache.

Try this:

In run(windows+R) type services and press enter.

Search for following services and stop them if they are running.

World Wide Web Publishing Service.
IIS.
Web Deployment Agent Service.

Follow this guide:
https://technet.microsoft.com/en-us/library/cc732317%28v=ws.10%29.aspx

Also check for Skype, because Skype uses by default port 80.

If you are still facing the same issue then please copy paste your Apache Error Log here.

AMPPS Control panel --> Apache --> Error Log files. Copy last few lines and paste here.

Posted By: Clairey1988 on July 4, 2016, 12:18 pm | Post: 2
Hello,

I have tried that and don't seem to have either of these services on my computer. I can't seem to open the error log files- it's just a blank page. I've attached two screenshots of the error messages that I have received. Do you know what this means?

Thank you so much!
Claire

Posted By: Rishi_P on July 5, 2016, 3:29 am | Post: 3
Hi,

Try this:
AMPPS Control panel --> PHP --> change PHP version --> Select php-5.6 or 7.0 and click on apply button.

Now restore all config files.

AMPPS Control panel --> Apache --> click on Restore default configuration.
AMPPS Control panel --> PHP--> click on Restore default configuration.

Now start Apache and if you are still facing the issue then open command prompt, run following commands and copy paste output.

cd /path/to/your/Ampps/folder/apache/bin
httpd

Posted By: Clairey1988 on July 5, 2016, 6:52 pm | Post: 4
Hello,

Thank you so much for your help with this, I have fixed that particular problem. I have been unable to move my wordpress website across using back up and restore. Do you know how to do this? If so, please could you give me the exact steps because I've already tried using the guidelines from Softaculous and it didn't work. I am no computer expert so I need things explaining very simply without skipping anything. When I try and open my wordpress website, I get the following message:

Error establishing a database connection

This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.
•Are you sure you have the correct username and password?
•Are you sure that you have typed the correct hostname?
•Are you sure that the database server is running?

Thank you for your time,
Claire

Posted By: Rishi_P on July 6, 2016, 7:49 am | Post: 5

First follow this guide to take backup of your installation.
https://www.softaculous.com/docs/How_to_Backup_an_Installation

Your backups are created in \path\to\Ampps\private\softaculous_backups\ folder

Copy following files on your new computer on same path.

\path\to\Ampps\private\softaculous_backups\backup_file_name.tar.gz

\path\to\Ampps\private\.softaculous\backups\backup_file_name

Now follow this guide to restore your backup. :angel:

https://www.softaculous.com/docs/How_to_Restore_a_Backup

Posted By: Clairey1988 on July 7, 2016, 12:24 am | Post: 6
Hello,

Thank you for this information. I think the problem I have is that the installation paths are different. On my first computer, the path is C:/ProgramFiles/Ampps where as on my new computer the path is C:/Program Files (x86)/Ampps
When I first installed Ammps, I created the folder called 'ProgramFiles' since I don't know much about computers and thought that would be a good thing to do- now I realise that it probably wasn't!
Is there any way of getting around this?  :squi: Also, if I delete something from Ampps on say computer one, will it automatically be deleted from computer two as well?
Thanks again for all your help!


Posted By: Rishi_P on July 7, 2016, 7:34 am | Post: 7
Hi,

Sorry for misunderstanding.
Quote From : Rishi_P July 6, 2016, 7:49 am

Copy following files on your new computer on same path.

Copy following files on your new computer on same folder.

In your case:

Copy backup file: C:/ProgramFiles/Ampps/private/softaculous_backups/backup_file_name.tar.gz to C:/Program Files (x86)/Ampps/private/softaculous_backups/backup_file_name.tar.gz

Copy backup entry: C:/ProgramFiles/Ampps/private/.softaculous/backups/backup_file_name to C:/Program Files (x86)/Ampps/private/.softaculous/backups/backup_file_name

If .softaculous and backup folders are not present in your New computer then make one and copy.

Posted By: Clairey1988 on July 8, 2016, 12:04 am | Post: 8
Hello,

Thank you. All seemed like it was working but after I tried to restore the backup on my new computer I got this message:

Could not connect to the database Access denied for user 'wp967'@'localhost' (using password: YES)

Do you know what that means? I'm completely stumped :|

Thank you

Posted By: Rishi_P on July 8, 2016, 3:49 am | Post: 9
Hi,

Check your MySQL is running or not. Also can you login to phpMyAdmin ?

Posted By: Clairey1988 on July 8, 2016, 7:18 pm | Post: 10
Hello,

Yes, my SQL is running and I can log in to my php. Any ideas what this means?

Thank you

Posted By: Rishi_P on July 9, 2016, 4:31 am | Post: 11
It means wp967 user has not assign to that wordpress database or password is wrong for wp967 user.

Try this:

simple way to resolve this issue is go to http://localhost/ampps/index.php?act=installations

Select edit details option of your installation.

set Database User= root
set Database Password = mysql

Save it, Now try to access your wordpress.

Another solution is login to phpMyAdmin select your wordpress database --> select Privileges tab --> click on Add user button --> create wp967 user and assign all privileges.

Now Follow first solution if you have set new password for wp967.

Posted By: Clairey1988 on July 9, 2016, 6:53 pm | Post: 12
Thank you for this- I'm definitely getting further now! I changed the username and password to what you suggested, then tried restoring the Wordpress backup and it said it completed successfully. However, when I click on it (the address is http://127.0.0.1/wp) it won't open and I get the message 'HTTP 500 error, Microsoft edge cannot find this page'. I have been able to open my Wordpress blog this whole time, which is at http://127.0.0.1/dir. Do you know why I'm unable to open my actual site?

Thank you for your time and patience :-)

Posted By: Clairey1988 on July 9, 2016, 8:14 pm | Post: 13
Also, I would just like to add, that when I try and open the Wordpress admin page for my site, I get the message:

Error establishing a database connection

This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.
•Are you sure you have the correct username and password?
•Are you sure that you have typed the correct hostname?
•Are you sure that the database server is running?

Thank you again

Posted By: Rishi_P on July 11, 2016, 7:10 pm | Post: 14
Hi,

Open support ticket here:
https://www.softaculous.com/support/

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.