I'm not sure if this question fits this site, since the title specifically mentions development of WordPress.
Anyway, i am running a Linode Debian Stretch server that I just built. Previously, I was running Debian Jessie, so I decided to upgrade.
After having made a backup of /var/www/html/sensation-experience, which contained backup, public_html, and other things, as well as created a backup.sql, and exported my blog's content as an XML, I rebuilt my VPS.
After completing all the initial steps to set up my LAMP stack, setting up the database and user account for MariaDB, then restoring the backup.sql, moving everything back to /var/www/html/sensation-experience
resetting all the ownership and permissions for files and directories, I found that only one content management system is working, which is a Podcast Generator.
Since I restored the entire SQL backup, everything in that content management system was salvaged. But, what could cause WordPress to malfunction? I checked the .htaccess
file and set the limit according to an article I found via a Google search, but those didn't work.
About two years ago, I attempted to do this same thing on Ubuntu 16.04 with PHP7, but I learned that WordPress worked better with PHP5. I was still using WordPress 4 at the time. Now I have WordPress5.
So, is this a PHP problem, WordPress problem, both, neither, or something else?
Wait, I think I may have found an error in
/var/log/apache2/error.log
[Mon May 27 12:17:06.635491 2019] [:error] [pid 5749] [client 162.158.106.170:23624] PHP Fatal error: require(): Failed opening required '/var/www/html/sensation-experience/public_html/blog/wp-includes/class-wp-paused-extensions-storage.php' (include_path='.:/usr/share/php') in /var/www/html/sensation-experience/public_html/blog/wp-settings.php on line 20
I'm not sure if this question fits this site, since the title specifically mentions development of WordPress.
Anyway, i am running a Linode Debian Stretch server that I just built. Previously, I was running Debian Jessie, so I decided to upgrade.
After having made a backup of /var/www/html/sensation-experience, which contained backup, public_html, and other things, as well as created a backup.sql, and exported my blog's content as an XML, I rebuilt my VPS.
After completing all the initial steps to set up my LAMP stack, setting up the database and user account for MariaDB, then restoring the backup.sql, moving everything back to /var/www/html/sensation-experience
resetting all the ownership and permissions for files and directories, I found that only one content management system is working, which is a Podcast Generator.
Since I restored the entire SQL backup, everything in that content management system was salvaged. But, what could cause WordPress to malfunction? I checked the .htaccess
file and set the limit according to an article I found via a Google search, but those didn't work.
About two years ago, I attempted to do this same thing on Ubuntu 16.04 with PHP7, but I learned that WordPress worked better with PHP5. I was still using WordPress 4 at the time. Now I have WordPress5.
So, is this a PHP problem, WordPress problem, both, neither, or something else?
Wait, I think I may have found an error in
/var/log/apache2/error.log
[Mon May 27 12:17:06.635491 2019] [:error] [pid 5749] [client 162.158.106.170:23624] PHP Fatal error: require(): Failed opening required '/var/www/html/sensation-experience/public_html/blog/wp-includes/class-wp-paused-extensions-storage.php' (include_path='.:/usr/share/php') in /var/www/html/sensation-experience/public_html/blog/wp-settings.php on line 20
Share
Improve this question
edited May 27, 2019 at 12:37
The Harmonic Rainbow
asked May 27, 2019 at 4:26
The Harmonic RainbowThe Harmonic Rainbow
1195 bronze badges
6
- Can you share some debug info? – Mayeenul Islam Commented May 27, 2019 at 4:45
- If I know where to look for it..... – The Harmonic Rainbow Commented May 27, 2019 at 5:08
- The link, please: wordpress.stackexchange/tags/debug/info – Mayeenul Islam Commented May 27, 2019 at 5:20
- Okay, I enabled PHP Debug in wp-config and refreshed the page. I didn't see any new files like a debug.log, though. – The Harmonic Rainbow Commented May 27, 2019 at 5:44
- but I learned that WordPress worked better with PHP5 AFAIK, wordpress better works with php 7.x – Vishwa Commented May 27, 2019 at 7:59
1 Answer
Reset to default 1Okay, here's what I did. If this happens, hopefully this will work favourably for you.
- If this is disabled by default, enable wp-debug by changing the value from false to true.
- Check that you have enabled WP_DEBUG_LOG and WP_LOG_DISPLAY.
- Try refreshing the page and see what happens.
- Either using WinSCP or the terminal, go to /var/log/apache2/error.log
- If you see that certain PHP files are missing, download a fresh copy from here.
- Follow the prompts in the error log to replace each file that is missing, making sure to change ownership and permissions to www-data 0640 or 0644.
- If, after you have replaced everything, you find that WordPress is giving you a permission denied message, type the following: # find -type f -exec chmod 640 /var/www/html/my_site/html/blog {} \; # find -type d -exec chmod 750 /var/www/html/my_site/html/blog {} \;
- Continue repeating this process until your blog shows up.
- If WordPress tells you that a plugin is missing, you can either download a new copy or delete it and install it via the dashboard.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745460166a4628672.html
评论列表(0条)