I have my wordpress blog running over openshift server. I have added my own domain instead of opensift. But when i login it will show ssl error. I want to make it false in wp-config.php. But I don't know how to edit this file in openshift. Please help me.
The wp-config.php on openshift is located at $home/app-root/repo/php/wp-config.php (ie: /var/lib/openshift/xxxxUNIQUEAPPIDxxxx/app-root/repo/php/wp-config.php).
You can confirm that you are editing the right wp-config.php file by temporarily moving it to wp-config_copy.php and reloading your blog from a browser. If you get a error that the wp-config.php is missing then you know you've got the right file. Move it back to wp-config.php.
use the FileZila for editing. may be it works. check if it shows any list of files.
Related
how are you?
My website was working well and now I'm unable to create or edit pages using elementor because the 'loading' keeps spinning and nothing happens.
I see a console error where I get /wp-admin/admin-ajax.php 500
How can I fix this? I don't know what caused it.
Thanks!
there are many reason for this. But the common one is WP memory limit issue.
To handle this, first you need to edit the wp-config.php file on your WordPress site. It is located in your WordPress site’s root folder, and you will need to use an FTP client or file manager in your web hosting control panel.
Next, you need to paste this code in wp-config.php file just before the line that says ‘That’s all, stop editing! Happy blogging.’
define( 'WP_MEMORY_LIMIT', '256M' );
This code tells WordPress to increase the PHP memory limit to 256MB.
Once you are done, you need to save your changes and upload your wp-config.php file back to your server.
I had this problem too, I just disabled plugins one by one and I found the problem!
one of my plugins caused this problem.
I changed my Wordpress website site URL prematurely and now it tells me Not found The Requested URL was not found on this server. I've been struggling with this and trying to find a fix but everything I've done has not fixed it. I've gone into the config file to update the URL, define the URL, you name it, I've done it. So I'm pretty desperate at this point and any help would be appreciated.
P.s I'm also running the server off of a Digital Ocean droplet. So I haven't been able to access the DB through MyPhpAdmin.
Thank you!
To change the WordPress site URL you need to do it manually as you can’t do it from your WordPress admin panel. There are two ways to do that:
Method 1 - Change WordPress site URL by editing wp-config.php file. This is the easiest way;
Add the following code to the end of wp-config.php file and save the file.
define('WP_SITEURL', 'http://www.example.com');
define('WP_HOME', ' http://www.example.com');
*Change www.example.com with your site domain.
Method 2 -
Please try to change the URL from PHP MY ADMIN > select your database > goto wp_options and change the URL
Using FTP/ SFTP , or your web-host’s cPanel or whatever file management application your host provides, access phpMyAdmin on your host, then find your DB, there check the wp_options Table (Note: The table prefix of wp_ may be different if you changed it when installing), and make sure site URL field and home field are correct.
I found the fix!!
When the site URL changed so did the root directory. The root directory added another folder to the path. So it looked something like this var/www/html.old/html.
Apache was still trying to access the site through var/www/html.
So I adjusted the file path and boom! Apache was able to make the connection and the website is now showing.
To get to the apache folder it was /etc/apache2/site-available/. I was then able to nano into the 000-default.conf file and adjust the file path through there.
My site is running but I could not log in to admin dashboard, got this error
Not Acceptable!
An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.
After googling I found out it has to do with mod_security. I tried every approach to fix it: changed my plugin folder name, tried disabling mod_security with .htaccess but the error remains the same.
Are there other alternatives that I could take?
Difficult question! To be honest, I wouldn't try to fix it. I would suggest copying files and database to a local WordPress. If everything is running on you local machine, I would delete the WordPress server version and install a new WordPress and copy the database and all the files.
If you think of the hours, you try to fix it instead of copy the whole WordPress and install a new one.
please delete you .htaccess file from the root directory and try to login into wp-admin. Once login gets successfully then regenerate the .htaccess file.
For regenerate the .htaccess file you need to follow the below steps:
Go to setting -> permalink -> change permalink into default.
And save the setting.
After save setting then change permalink into the post.
Now you can see that the .htaccess file gets generated successfully.
site only show 'error'. i have also uninstalled all the plugins from phpmyadmin
but error is still there. Could anyone help me please?
Please enable php errors in wp-config file.
First find wp-config file and enable debug mode set true.
After that please show me error.
Think there is some whitespace at bottom of index.php at root. Now it is working. Thank you very much everybody.
Can you print us here the log-error apache messages?
If you use xampp you can find this file under xampp installed directory such as: \xampp\apache\logs\error.log
Can you try rename plugin folder in wp-content? Maybe some plugins still not uninstalled and they had change login url.
I downloaded a wordpress website to my local machine and set up a host on MAMP Pro with an export of the live database, now I keep hitting a redirect loop on the main page when I try to view the website, it doesn't matter whether I reset the .htaccess file, clear all my cookies, delete my plugins or do any other of the recommended things it keep coming back. The official error is:
This webpage has a redirect loop
ERR_TOO_MANY_REDIRECTS
I had the same issues. Somehow resetting the permalinks settings in the admin panel to plain fixed the problem.
Are you using HTTPS by any chance? If so you may want to add
$_SERVER['HTTPS'] = 'on';
define('FORCE_SSL_ADMIN', true);
To the top of your wp-config.php file.
You might want to also check your database to see if the site url's are correct.
As I was moving from Windows environment to Mac OS probably on the copy files i was missing the install.php file. And when i tried to install the theme it would bring me the redirect loop screen.
It was confusing to me because I was following all steps at the end I went to look for the install.php and saw it was missing there put it in the place and voila!
Maybe will help i don't know, for the next readers to come!
I was able to resolve an identical issue by doing the following:
In the wp_options table of your site's database check if the port numbers for option_name siteurl and home match those of your server. Update them if not.
Remove the port number from $root_dir in wp-config.php
This error occured on an older project running Wordpress 4.1 after changing the ports on my MAMP apache server months earlier. Hope that helps.