Hi again

To fix something (on my WAMP/5.15 intranet multi-blog) I was making changes to the apache config-files then stopping/starting the apache service, (actually I was trying to access phpmyadmin - but I don't think that's relevant).

Then no web-pages at all were returned !!

After a few reboots (it is windows), I found the Apache service was stopped - and wouldn't start.

I uninstalled/reinstalled the service but it still wont start.

I have no backups (its on my list :-))

advise please

richard101

Comments

cayenne’s picture

When I have this kind of problem (all too frequent) I get a default config file, save the old one, and put in the default one, reconfiguring it as needed. Your site files should not be affected by this problem. In fact, you could create a whole new apache or WAMP install and then point it to where your site files live.

Good luck

:)

richard102’s picture

no luck replacing config files (windows drupal/apache service just will not start). I replaced the whole 'apache2' folder from a similar config on a working server.

I'm going to rebuild - But first would like to backup the database (or atleast not overwrite it).

How do I do that please?

heine’s picture

You can try to start services via the command line. Open a command prompt with administrative capabilities (in vista, right-click and select "Run as administrator").

net start wampapache

This will give you a list of errors you can use to correct the problem.

You can use mysqldump to backup your database. (If you need to start the service, try net start wampmysqld). You can also use MySQL Administrator to backup your database if you prefer a GUI.

As your issue is a server configuration problem, http://www.wampserver.com/ might be a more appropriate venue for support.

--
The Manual | Troubleshooting FAQ | Tips for posting | How to report a security issue.

richard102’s picture

sorted, here's how I backed up my windows database without apache ...

I changed the command-prompt to '/mysql/bin' folder, and tried many versions of these two commands without any luck ...

mysqldump.exe --all-database --user root --password=mypassword > d:\ddd.txt
mysql --user=root --password=mypassword

The error messages suggested the password was wrong. Eventually I googled an example that had a database name as the third element in the mysql command. However, I wasn't 100% sure my database name (or by now 100% sure of my root password).

However, I found out every install of mysql has a database inside called 'mysql', so to confirm my password I did ...

mysql --user=root --password=mypassword mysql

... which worked :-)) Now knowing my password for sure, I was able to get my database-name by trial-and-error ...

mysql --user=root --password=mypassword bitnami_drupal5

And then was able to substitute into the backup command...

mysqldump --opt bitnami_drupal5 --user=root --password=mypassword > d:\drupal.bak

... and then found this to backup them all - for luck ...

mysqldump --all-database --user=root --password=mypassword > d:\allmysql.bak

Phew!!

heine’s picture

I'm glad you had success. Just in case you need to do this again: The name of the database can be found in /sites/[sitename]/settings.php, where sitename may be the sitename, or just 'default'.
--
The Manual | Troubleshooting FAQ | Tips for posting | How to report a security issue.