Centos 7, VestaCP
yum update – Done!
Php: latest version 8.01 RC (by yum its updated automatically)
WordPress version: latest
Permissions: all is ok
Domain – https://thedroidgenome.com/
I have installed a ton of WordPress websites. But this time, while I’m installing WordPress. It is giving me White screen, this is happening when I am opening my website without setup-config.php.
]]>i read somewhere it might be an issue with openssl my openssl version is openssl-libs.x86_64 1:1.0.2k-24.el7_9 . Any help would be greatly appreciated. Thanks in advance.
]]>Any help you can offer is greatly appreciated.
]]>I don’t understood my file permission issue with my WordPress 5.7. I’m using Centos 8.
WP Health check say that : [Screenshot of Site Health][1]
I try to do an upadate and it doesn’t work, I got : The update cannot be installed because we will not be able to copy some files. This problem is usually due to inconsistencies in file permissions : wp-admin/includes/update-core.php
I’m not a beginner but despite my investigation I don’t find my issue. Here is all information that I checked :
– In the WP folder, I run :
chown apache:apache -R *
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
– My WP folder have a 775 permission
– I run chown apache:apache -R * in all my /var/www folder
– When I open with my web browser a test.php file which contains <?php echo(exec(‘whoami’)); ?> , I get apache
– When I exec with my centos user php test.php , I got centos
– When I exec ps aux | egrep ‘(apache|httpd)’ with my centos user, I got this : [Result of ps aux | egrep ‘(apache|httpd)’ ][2]
– When I exec with my Centos user sudo chmod 777 -R wordpress/ , the problem persist.
– I checked /var/log/php-fpm/www-error.log and there is : [16-Apr-2021 14:27:32 UTC] PHP Warning: copy(/var/www/wordpress/wp-admin/includes/update-core.php): failed to open stream: Permission denied in /var/www/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 309
– Else, everything is working on my wordpress (I can upload media for example)
Thank you a lot in advance.
[1]: https://i.stack.imgur.com/B1Ulr.png
[2]: https://i.stack.imgur.com/p7L9U.png
You need to either provide the config for every popular OS or get the path from the system variable.
]]>I specify that the PHP-Mysqlnd library is installed.
System:
CentOS Linux 8.2.2004
Webmin 1,953
Virtualmin 6.10
Nginx
PHP 7.2
Log error Nginx:
[error] 19696 # 0: * 16 FastCGI sent in stderr: “PHP Warning: Use of undefined constant WP_CONTENT_DIR – assumed ‘WP_CONTENT_DIR’ (this will throw an Error in a future version of PHP) in / home / myvideoimage / public_html / wp -includes / load.php on line 141 “while reading response header from upstream, client: 192.168.1.12, server: myvideoimage.com, request:” GET /wp-admin/install.php HTTP / 1.1 “, upstream:” fastcgi : // unix: /var/php-nginx/159611529162207.sock/socket: “, host:” 192.168.1.13 ”
2020/08/01 09:44:09 [error] 19696 # 0: * 16 FastCGI sent in stderr: “PHP Warning: Use of undefined constant WP_CONTENT_DIR – assumed ‘WP_CONTENT_DIR’ (this will throw an Error in a future version of PHP ) in /home/myvideoimage/public_html/wp-includes/load.php on line 141 “while reading response header from upstream, client: 192.168.1.12, server: myvideoimage.com, request:” GET / wp-admin / install. php HTTP / 1.1 “, upstream:” fastcgi: // unix: /var/php-nginx/159611529162207.sock/socket: “, host:” 192.168.1.13 ”
Do you have any idea about the problem and how to solve it?
I tried to insert the line: define (‘WP_CONTENT_DIR’, ABSPATH. ‘Wp-content’);
at the end of wp-config.php, but it doesn’t work.
Thank you very much.
]]>System:
Centos 7.8.2003
Apache 2.4.6
PHP 7.4.7
MariaDB 10.4.13
Wordpress 5.4.2
Browser: Firefox on Win10
Steps to reproduce: Attempt to upload a file to media gallery
Let me list what I’ve tried to do to fix this on my own:
Disable all plugins and themes
Disable Apache mod_security
Ensured Selinux context is correct for ~/wp-content/uploads (httpd_sys_rw_content_t)
Ensured file permissions and ownership are correct (apache:apache, 755)
Set Selinux to permissive
Ensured that file_uploads = On in /etc/php.ini
Ensured max file upload size and post size are appropriate
Re-installed PHP
Downgraded to PHP 7.3.x
Reinstalled WordPress through browser
Read through as many similar posts as possible and tried their solutions before becoming too mentally exhausted to keep working at it.
This has got to be some cruel joke because I cannot for the life of me figure out why file uploads won’t work. Every other aspect of the site works perfectly, even with Selinux enforcing and mod_security enabled (core ruleset). I can create new pages, posts, users, forms, etc but can’t upload an image or select an image I manually place on the host. It has got to be an issue with Apache or PHP and not the database. I even have a separate FTP server on the same machine that I built for practice and it works perfectly fine even with fairly paranoid security settings.
I am hoping for some kind of silver bullet I’m missing here. Please give me a response with any ideas you may have towards this issue!
]]>I have this well known problem about a recently installed www.remarpro.com that has an error on any part that tries to connect to the www.remarpro.com servers (updating, installing plugins, insalling themes, etc):
Error message:
Warning: An unexpected error occurred. Something may be wrong with www.remarpro.com or this server’s configuration. If you continue to have problems, please try the support forums. WordPress could not establish a secure connection to www.remarpro.com. Please contact your server administrator.
I know that this sounds familiar. I’ve found hundreds of similar posts over the internet (here and other sites), but every single solution people give doesn’t work. Some posts even have tens of completely different answers like “just do this” with only frustrated people that can’t solve the problem with those (like me).
I’ve spent days trying to fix it with no solution So, yes, I’m kind of almost hopless now. I’d really appreciate if someone can lend me a hand with this.
This is what I have:
– A www.remarpro.com 5.4.1 fresh install
– MariaDB brand new database and user
– Apache server (“httpd”)
– PHP 7.4
– CentOS 8 in a GCloud VM micro-instance
– A just installed LetsEncrypt certification
This is what I’ve tried:
– Checked if cURL is installed
– Checked that OpenSSL is installed
– Manually added api.www.remarpro.com and downloads.www.remarpro.com IPs in my hosts file
– Checked that my firewalls allow 80 and 443 ports traffic in and out (gcloud and CentOS iptables/firewalld)
– Checked that ;extension=curl.so is present in my php.ini
– Checked that the vhost is correct in the apache conf file
– Checked that I can ping both WordPress URLs
– Prooooobably I’ve tried some other things, but I cannot remember now (seriously, I’m into this for like 4 hours now)
If someone has a clue on how to solve this, I’d be really happy. I can send any other information, log, or anything that is needed.
Thank you very much in advance!
]]>That said, this was an especially refreshing experience. Took maybe 15 minutes to install UpdraftPlus on my blogsite, make my first backup, activate my Google Drive account for backup, upload a backup, and read my incoming email describing what just happened. I explored a couple of false trails, and the app gently and correctly suggested how I could do what I seemed to be trying to do. I have Google Drive on 2-Step Verification so I was expecting to have to enter a code from my iPhone, but no, UpdraftPlus must have taken advantage of my desktop being already logged into Google. Once I clicked the correct button, everything happened just as I’d requested. Quickly. I checked – my local backup files were on my server where they’re supposed to be, and also on Google Drive in a shiny new folder named “Update Plus”. I seem to be scheduled for automated backup a week from now, both local and Drive, as I requested. All this for free.
What a delightful experience. If it’s still working a week from now, I’ll cheerfully donate some money. Meanwhile, back to my original task: update my outdated PHP version.
]]>I have a WordPress site hosted on CentOS shared server that’s having some weird issues.
My localhost and .dev site work (hosted on Mint and CentOS respectively) so my guess is something server-level, but just wanted to fly past here and see if anyone else already knows the cause/fix.
What happens is:
User requests password change, request email is sent. They click link and reset password and submit. This is fine.
But for X (seems to be varied, but usually no more than 60 [1 hour]) amount of minutes, wp-admin and wp-login.php return a 500 server internal error. Error log for site shows nothing for around that time so debugging is really difficult.
Has anyone come across this and/or know how to fix?
]]>