wrknight
Forum Replies Created
-
Problem solved – at least for now. Disabled all plugin files by renaming them xxx.bak. Launched website and restored plugins one by one until I found the culprit which turned out to be WordPress file upload. I still have not completed configuring Wordfence.
Forum: Fixing WordPress
In reply to: Can’t log in.Problem solved. Many thanks.
Forum: Localhost Installs
In reply to: Error 404 when accessing subdomain siteI need to close this topic for now. I rebuilt my server as a standalone that is working. I will try later to install a second WP to host a second site as that seems much easier than multisite. Later on, I may come back to multisite, but for now, I have abandoned it.
Forum: Installing WordPress
In reply to: 403 ForbiddenIt’s definitely a mysql problem at this point. Unfortunately, I seem to have lost my root privileges in mysql. I have no idea how that happened but I am constantly getting permission denied messages. It’s going to take some time to get untangled. In the meantime, I really appreciate your help. It has helped me learn a lot.
Thanks again.
Forum: Installing WordPress
In reply to: 403 ForbiddenUpdate: Progress – I think.
I added a separate server block for wordpress in my nginx config file that was identical to the phpmyadmin block (just changed the names) Now I am not getting any nginx error messages. Instead, I am now getting “Error establishing a database connection.”
Forum: Installing WordPress
In reply to: 403 ForbiddenThere is an index.php file in the wordpress folder.
I renamed the test.html to index.html, entered https://mysite/wordpress in the browser and the test file popped right up.
I suspect I have mysql issues with usernames and passwords as I wasn’t too sure what usernames and passwords to put in. (I have too many usernames and passwords in my system.)
Again, thanks.
Forum: Installing WordPress
In reply to: 403 ForbiddenMany thanks for your help. You are correct in assuming that wp-admin and others are in the wordpress folder. The exact path is /var/www/mysite/wordpress/wp-admin, etc.
I put a test.html file in the wordpress folder with a simple message and when I put https:mysite/wordpress/test.html in the browser, the test message popped right ujp. So the path seems to working as it should.
This is a development site as I wish to move my blog to my own host. I actually have two sites and ultimately want to host both on my own system. I originally started to set up a multisite wordpress but lost the bubble on that one and decided to start fresh with everything new. I am totally unfamiliar with virtual hosting and would like to know more about it.
In the mean time, I want to crack this nut and get the original site back on line.
Again, many thanks for your help.
- This reply was modified 1 year, 4 months ago by wrknight.
Forum: Installing WordPress
In reply to: Setting up multiple sites on WordPressUpdate: I found the following message in debug.log:
[28-Jan-2025 15:14:03 UTC] PHP Warning: chmod(): Operation not permitted in /var/www/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 173
It appears to be attempting to change the file permissions somewhere, but I can’t figure out which file or where it is. Here’s the php code from class-wp-filesystem-direct.php around line 173
149 /**
150 * Changes filesystem permissions.
151 *
152 * @since 2.5.0
153 *
154 * @param string $file Path to the file.
155 * @param int|false $mode Optional. The permissions as octal number, usually 0644 for
156 files,
157 * 0755 for directories. Default false.
158 * @param bool $recursive Optional. If set to true, changes file permissions recursively.
159 * Default false.
160 * @return bool True on success, false on failure.
161 */
162 public function chmod( $file, $mode = false, $recursive = false ) {
163 if ( ! $mode ) {
164 if ( $this->is_file( $file ) ) {
165 $mode = FS_CHMOD_FILE;
166 } elseif ( $this->is_dir( $file ) ) {
167 $mode = FS_CHMOD_DIR;
168 } else {
169 return false;
170 }
171 }
172 if ( ! $recursive || ! $this->is_dir( $file ) ) {
173 return chmod( $file, $mode );
}Forum: Installing WordPress
In reply to: Setting up multiple sites on WordPressI just now confirmed that the additional define commands to allow multiple subdomains, set paths, ids, etc. are in wp-config.php; and the spelling and syntax are correct. Without those instructions I would not have been able to set up the second site. The problem remains that when I try to create pages or posts for the second site they still get published on the original site.
In answer to your question, I had thought about that and right now, it’s very appealing. But I may wish to add more sites later which would require more wp installations. Besides that, being the obstinate cuss that I am, I am determined to beat this sucker one way or another.
Forum: Networking WordPress
In reply to: Setting up WordPress MultisiteAfter reading this handbook, I am still confused, partly by terminology and partly by site organization.
To clarify, my wordpress installation is located at /var/www/wordpress. There is no “global” directory or subdirectory on my system and I am assuming that /var/www/wordpress is the same as “global”. Please verify this is true or correct me if I am wrong.
Second, I have files at /etc/ngnix/sites-available that I call server blocks that appear to be the same as what is called “per site configuration” files in the handbook. I am assuming they are the same thing. Again, please verify this is true or correct me if I am wrong.
Third. There is no “restrictions.conf” file in my wordpress installation. Since I have been running this as a single site for 6 years without a restrictions.conf file, do I really need to add this file to go from single site to multisite?
Finally, let me sumarize the major steps I need to take to convert from single site to multisite:
Modify wp-config.php file. Next, setup the network and add a subdomain. Next, map the website’s domain name to the subdomain in wordpress. Next, add a server block for the second website.
In adding a second server block, I think I can simply copy the original to a new one and edit all the domain names. I also think this will work even with let’s encrypt codes included.
If I am wrong on any of this, please correct me.
Here’s the situation. 2FA was activated about a year ago and I have been using the Google Authenticator app on my cell phone to log in successfully since that time. However, I purchased a new cell phone and installed the Google Authenticator app on it only to find out that it won’t work because it has to scan the QR Code which is not available.
I deactivated all other plugins with no effect.
There is no step 1 under Login > Two Factor Authentication. 2FA is shown to be active. My only option is to deactivate it.
Forum: Everything else WordPress
In reply to: Display PostsAfter solving the FTP problem I installed the Display Posts widget which is currently at the bottom of the widget area and is displaying 10 posts. But like the Recent Posts above, it’s not doing what I want. What I really want is a block about 4 inches long that contains a list of all my blog posts (about 60) that you can scroll through. If I could modify the Recent Posts widget, by renaming it to Posts, increasing the number to include all posts on the site, limiting the size and adding a scroll bar to browse through all the titles, that would be terrific.
Alternatively, if I could style the Display Posts to do the same (sans bullets), that would work as well.
Forum: Everything else WordPress
In reply to: Display PostsI haven’t solved the first problem, but the FTP access problem was solved by adding
define( ‘FS_METHOD’, ‘direct’ );
to sp-config.php.
Forum: Everything else WordPress
In reply to: Display PostsI have run into another problem.
“Failed to connect to FTP Server musingsofamaverick.org:21”
I can’t install plugins, update or download themes as I don’t don’t have a username or password that works with FTP.
As background info, I migrated my website to new hardware, operating system (Ubuntu 20.04) latest versions of all LEMP stack software and wordpress. The site is up and running, but now requires FTP access to do anything and I don’t have that access.
The previous build did not have this problem.