We recently had a problem with emails not being sent from scripts in our websites … we had to modify PHP Settings in cPanel
We changed PHP version from native version (up one) and then hit Site Settings and changed the force mail field value to -f firstname.lastname@example.org and saved … then tested.
Fixed it …
I’ve found that when this happens the .htaccess file is often changed and the database is most likely corrupted. I follow this in PHPmyadmin:
When your website redirects to wp-admin/install.php [FIX] :
1. Login to phpMyAdmin.
2. Select the database and click on ‘Structure’ tab.
3. Right under the list of table there is a “Check All” link. Click on it to select all tables.
4. From a “With selected:” drop-down menu right next to it, choose “Check table”.
1. Login to phpMyAdmin
2. Choose the affected database. If you only have one database, it should choose it by default so you don’t need to do anything.
3. In the main panel, you should see a list of your database tables. Check the boxes by the tables that need repair.
4. At the bottom of the window just below the list of tables, there is a drop down menu. Choose “Repair Table”