Title: Database issue?
Last modified: October 8, 2021

---

# Database issue?

 *  Resolved [zmmccrocklin](https://wordpress.org/support/users/zmmccrocklin/)
 * (@zmmccrocklin)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/database-issue-23/)
 * Hello Friends,
    I recently migrated from CentOS8 to RockyLinux, and am having
   issues with this site. Before this, a while back, somehow I got hit with a mysql
   injection attack or something of that nature and my site had a hidden redirect
   that I couldn’t find. I ended up scrapping everything on it. Now, I’m trying 
   to build it again with a fresh database & wordpress install. The only issue is
   that for some reason I’m getting a 500 error due to an issue on finding the wp-
   options table. I was expecting to get the install pages to set all this up. Someone
   please advise what my issue could be.
 * # uname -r
    4.18.0-305.19.1.el8_4.x86_64
 * # php -v
    PHP 8.1.0RC3 (cli) (built: Sep 28 2021 21:40:07) (NTS gcc x86_64) Copyright(
   c) The PHP Group Zend Engine v4.1.0RC3, Copyright (c) Zend Technologies with 
   Zend OPcache v8.1.0RC3, Copyright (c), by Zend Technologies
 * # httpd -v
    Server version: Apache/2.4.37 (rocky) Server built: Jun 11 2021 15:
   35:05
 * MySQL version: 8.0.26
    -  This topic was modified 4 years, 8 months ago by [zmmccrocklin](https://wordpress.org/support/users/zmmccrocklin/).
    -  This topic was modified 4 years, 8 months ago by [zmmccrocklin](https://wordpress.org/support/users/zmmccrocklin/).
      Reason: corrected CentOS version
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdatabase-issue-23%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Serge](https://wordpress.org/support/users/sergiuspro/)
 * (@sergiuspro)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/database-issue-23/#post-14951666)
 * Hi, check that the `wp_options` table exists in the database. The db table probably
   isn’t there.
 *  Thread Starter [zmmccrocklin](https://wordpress.org/support/users/zmmccrocklin/)
 * (@zmmccrocklin)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/database-issue-23/#post-14951842)
 * Well, that’s the thing. It SHOULDN’T be there. This is a fresh install with no
   previous content & an empty databse (doesn’t even have any tables). I did all
   the normal installation steps & set everything up in the wp-config.php file. 
   Idk why it’s looking for a table instead of giving me the new install page.
 *  [Dion](https://wordpress.org/support/users/diondesigns/)
 * (@diondesigns)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/database-issue-23/#post-14951866)
 * Before you do anything else, please install a production version of PHP to insure
   compatibility with WordPress. I suggest the latest version in the 7.4 branch,
   which right now is 7.4.24.
 *  [Serge](https://wordpress.org/support/users/sergiuspro/)
 * (@sergiuspro)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/database-issue-23/#post-14951893)
 * There is a file in the root of the site wp-config.php ?
    With a clean installation,
   it should not be there.
    -  This reply was modified 4 years, 8 months ago by [Serge](https://wordpress.org/support/users/sergiuspro/).
 *  Thread Starter [zmmccrocklin](https://wordpress.org/support/users/zmmccrocklin/)
 * (@zmmccrocklin)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/database-issue-23/#post-14952111)
 * I’ll get around to working on the php install later today, but yes. I created
   it from the wp-config-sample.php & added the DB info since that was what I had
   done on previous installs.
 *  Thread Starter [zmmccrocklin](https://wordpress.org/support/users/zmmccrocklin/)
 * (@zmmccrocklin)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/database-issue-23/#post-14952918)
 * Welp downgrade in PHP fixed it. Although I wonder if the full restart of apache
   is what fixed it as I had to actually stop & then start it back up since downgrading
   the PHP put all my sites in a 503 error. Ah well. I’ll stick with 7.4 until 8.1
   is supported.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Database issue?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [zmmccrocklin](https://wordpress.org/support/users/zmmccrocklin/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/database-issue-23/#post-14952918)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
