# Wordpress Restore

**URL:** <https://forum.virtualmin.com/t/wordpress-restore/115394>\
**Category:** Webmin\
**Created:** [May 28, 2022, 2:05pm UTC](https://forum.virtualmin.com/t/wordpress-restore/115394 "2022-05-28T14:05:50Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![eduardoeltortuga](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/eb9ed0/32.png) [@eduardoeltortuga](https://forum.virtualmin.com/u/eduardoeltortuga)\
**Post date:** [May 28, 2022, 2:05pm UTC](https://forum.virtualmin.com/t/wordpress-restore/115394/1 "2022-05-28T14:05:51Z")

</div>

I have lost Apache Webserver and MySQL Database Server. They won’t start. Don’t know what could have happened.I tried different ideas but no luck so I moved my my websites to a new hard drive.

I managed to move my 17 other websites to a new hard drive, but what is the best way to move the Wordpress folder? I originally installed Wordpress using Virtualmin script.

Local server.  
Ubuntu 20.04.4  
Webmin 1.991  
Virtualmin7.04

---

<div class="post-metadata">

**Author:** ![Randomz](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/839c29/32.png) [@Randomz](https://forum.virtualmin.com/u/Randomz)\
**Post date:** [May 28, 2022, 2:55pm UTC](https://forum.virtualmin.com/t/wordpress-restore/115394/2 "2022-05-28T14:55:29Z")

</div>

I have successfully moved WordPress using a free plugin called Duplicator.

---

<div class="post-metadata">

**Author:** ![eduardoeltortuga](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/eb9ed0/32.png) [@eduardoeltortuga](https://forum.virtualmin.com/u/eduardoeltortuga)\
**Post date:** [May 28, 2022, 10:34pm UTC](https://forum.virtualmin.com/t/wordpress-restore/115394/3 "2022-05-28T22:34:43Z")

</div>

Thanks for your help my friend. I shall try it out and fill you in.

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [May 28, 2022, 11:51pm UTC](https://forum.virtualmin.com/t/wordpress-restore/115394/4 "2022-05-28T23:51:00Z")

</div>

> [@eduardoeltortuga](#):
>
> They won’t start. Don’t know what could have happened.I tried different ideas but no luck so I moved my my websites to a new hard drive.

This doesn’t make sense.

Services not starting is not, in and of itself, any indication of hardware failure. If you post the relevant errors/log entries about why they won’t start, we can help you.

---

<div class="post-metadata">

**Author:** ![eduardoeltortuga](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/eb9ed0/32.png) [@eduardoeltortuga](https://forum.virtualmin.com/u/eduardoeltortuga)\
**Post date:** [May 29, 2022, 12:05am UTC](https://forum.virtualmin.com/t/wordpress-restore/115394/5 "2022-05-29T00:05:17Z")

</div>

I gathered some info from the logs:  
1.Job for apache2.service failed because the control process exited with error code.  
See “systemctl status apache2.service” and “journalctl -xe” for details.

When I try to restart Apache with command line I get this message.  
Restarting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code.  
See “systemctl status apache2.service” and “journalctl -xe” for details.

This is the info I get for MySQL  
Error! MySQL is not running on your system - database list could not be retrieved.  
/usr/bin/mysqlshow: Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)

 ![Lost Servers](https://cdn.forum.virtualmin.com/uploads/default/original/2X/f/f11327d932b2b44a33b883ce241c638b24ea9d51.png)

I can’t even migrate WordPress because Mysql is Kaput

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [May 29, 2022, 12:28am UTC](https://forum.virtualmin.com/t/wordpress-restore/115394/6 "2022-05-29T00:28:27Z")

</div>

Post httpd error log might help more

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cfe78906e9f32492d2e34c3e6e1e812379f0ef9c.png)

---

<div class="post-metadata">

**Author:** ![eduardoeltortuga](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/eb9ed0/32.png) [@eduardoeltortuga](https://forum.virtualmin.com/u/eduardoeltortuga)\
**Post date:** [May 29, 2022, 1:00am UTC](https://forum.virtualmin.com/t/wordpress-restore/115394/7 "2022-05-29T01:00:40Z")

</div>

![httpd error log](https://cdn.forum.virtualmin.com/uploads/default/original/2X/2/2e781316aebe603323632452d6e833357b970dab.png)

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [May 29, 2022, 1:03am UTC](https://forum.virtualmin.com/t/wordpress-restore/115394/8 "2022-05-29T01:03:25Z")

</div>

did you try a restart, logs rotate. Also did you use the icon next to View to locate the file.

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [May 29, 2022, 1:09am UTC](https://forum.virtualmin.com/t/wordpress-restore/115394/9 "2022-05-29T01:09:26Z")

</div>

Neither of those is all that worrying. Definitely not indicative of hardware failure.

> [@eduardoeltortuga](#):
>
> I can’t even migrate WordPress because Mysql is Kaput

Stop being dramatic. There are all sorts of minor reasons either of these services would fail to start, but we need to see the relevant log entries for why.

Try to restart the service from the command line (an ssh session, not the Webmin command shell). And, then look at the error\_log for Apache and `/var/log/mariadb/mariadb.log` for relevant entries about why it’s failing to start.

---

<div class="post-metadata">

**Author:** ![eduardoeltortuga](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/eb9ed0/32.png) [@eduardoeltortuga](https://forum.virtualmin.com/u/eduardoeltortuga)\
**Post date:** [May 29, 2022, 1:30am UTC](https://forum.virtualmin.com/t/wordpress-restore/115394/10 "2022-05-29T01:30:38Z")

</div>

> [@Joe](#):
>
> /var/log/mariadb/mariadb.log

I restarted with logs rotate. Still empty.  
When I restart Apache from command Line I get:

May 28 19:10:34 ubuntu systemd[1]: Starting The Apache HTTP Server…  
May 28 19:10:49 ubuntu apachectl[1043]: AH00526: Syntax error on line 82 of /et\>  
May 28 19:10:49 ubuntu apachectl[1043]: Invalid command ‘php\_admin\_value’, perh\>  
May 28 19:10:49 ubuntu apachectl[975]: Action ‘start’ failed.  
May 28 19:10:49 ubuntu apachectl[975]: The Apache error log may have more infor\>  
May 28 19:10:49 ubuntu systemd[1]: apache2.service: Control process exited, cod\>  
May 28 19:10:49 ubuntu systemd[1]: apache2.service: Failed with result 'exit-co\>  
May 28 19:10:49 ubuntu systemd[1]: Failed to start The Apache HTTP Server.  
lines 1-14/14 (END)

Output from journalctl -n 1000:  
May 28 19:29:07 ubuntu audit[17940]: AVC apparmor=“DENIED” operation=“open” profile=“/usr/sbin/mysqld” name=“/proc/17940/task/18021/mem” pid=17940 comm=“ib\_srv\_wkr-1” requested\_mask=“r” denied\_mask=“r” fsuid=112 ouid=112  
May 28 19:29:07 ubuntu kernel: audit: type=1400 audit(1653787747.196:270): apparmor=“DENIED” operation=“open” profile=“/usr/sbin/mysqld” name=“/proc/17940/task/18021/mem” pid=17940 comm=“ib\_srv\_wkr-1” requested\_mask=“r” denied\_mask=“r” fsuid=112 ouid=112  
May 28 19:29:07 ubuntu systemd[1]: mysql.service: Main process exited, code=exited, status=2/INVALIDARGUMENT  
May 28 19:29:07 ubuntu systemd[1]: mysql.service: Failed with result ‘exit-code’.  
May 28 19:29:07 ubuntu systemd[1]: mysql.service: Scheduled restart job, restart counter is at 235.  
May 28 19:29:07 ubuntu systemd[1]: Stopped MySQL Community Server.  
May 28 19:29:07 ubuntu systemd[1]: Starting MySQL Community Server…

One line of dmesg log:  
[2364.313152] audit: type=1400 audit(1653788834.803:514): apparmor=“DENIED” operation=“open” profile=“/usr/sbin/mysqld” name=“/proc/32726/task/32764/mem” pid=32726 comm=“ib\_srv\_wkr-1” requested\_mask=“r” denied\_mask=“r” fsuid=112 ouid=112

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [May 29, 2022, 2:00am UTC](https://forum.virtualmin.com/t/wordpress-restore/115394/11 "2022-05-29T02:00:33Z")

</div>

> [@eduardoeltortuga](#):
>
> ‘p

Well the apache issue is a well know bug.

> [@Disable mod\_php option not removing php\_\* lines from httpd.conf](https://forum.virtualmin.com/t/disable-mod-php-option-not-removing-php-lines-from-httpd-conf/114990/7):
>
> You shouldn’t apply this patch manually. You should fix Apache config and remove all php\_\* directives instead.

Manually removing php\_\* lines form httpd.conf should resolve the issue.

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [May 29, 2022, 2:13am UTC](https://forum.virtualmin.com/t/wordpress-restore/115394/12 "2022-05-29T02:13:08Z")

</div>

> [@eduardoeltortuga](#):
>
> VC apparmor=“DENIED”

> <https://askubuntu.com/questions/916009/mysql-wont-start-because-of-apparmor>

---

<div class="post-metadata">

**Author:** ![eduardoeltortuga](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/eb9ed0/32.png) [@eduardoeltortuga](https://forum.virtualmin.com/u/eduardoeltortuga)\
**Post date:** [May 29, 2022, 2:24am UTC](https://forum.virtualmin.com/t/wordpress-restore/115394/13 "2022-05-29T02:24:10Z")

</div>

Thanks to both of you! We’re on the right track I’m sure. Let me work on this and I will let you know tomorrow how I did.  
Thanks

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [July 28, 2022, 2:25am UTC](https://forum.virtualmin.com/t/wordpress-restore/115394/14 "2022-07-28T02:25:01Z")

</div>

Closed on July 28, 2022, 2:25am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
