autotutorial
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: 502 Bad Gateway Error after trying to install SSLNET::ERR_CERT_COMMON_NAME_INVALID this error indicates that you have wrong the name for the certificate domain, it had to be without initial www or If you add www to the url of your site, the certificate is valid, so it is very likely he was wrong for configuration on nginx https://letsencrypt.org/docs/faq/
https://certbot.eff.org/glossary#wildcard-certificate wildcard for all subdomain but not for domain.tdIf you add www to the url of your site, the certificate is valid, so it is very likely that you are mistaken for configuration on ngix
Forum: Localhost Installs
In reply to: localhost/wordpress Not Found while setting up wordpress locallyIf you check the file on your pc info.php inside the var folder and inside the www folder exists?
Forum: Fixing WordPress
In reply to: Missing Temporary File and other errorsit depends on the owner of folders and files, via ftp or with my code it shows you the numbers that indicate the owner … The second method can be uncertain.
Then check from the root until you get wp-content if the owner number is the same.
syntax of the POSIX system UGO.
U for owner (user)
G for group (group user)
O for other (other user)
If it works, leave it like this .. so you have also changed good owner.
https://en.wikipedia.org/wiki/Chmod#Special_modesForum: Fixing WordPress
In reply to: Troubleshooting multisite media urlshttps://wordpress.org/support/topic/blogs-dir-in-wp-above-3-5/#post-11609699
https://wordpress.org/support/article/multisite-network-administration/#uploaded-file-pathBy setting the network it is possible to choose the upload folder, whether to use the year-month folders and where to display the images.
before any action a back-up of the files via ftp and the database is required.
If you have checked that the back-ups are working, you can use one of the plugins to modify the old URLs in the new ones, never any changes by hand as the plugins may have serialized the paths into wordpress objects.
https://wordpress.org/support/article/moving-wordpress/#changing-your-domain-name-and-urlsForum: Installing WordPress
In reply to: Error establishing database connection – how to proceed nowsorry we are creating confusion.
If you don’t have phpmyadmin installed please install it.
This is an exhaustive guide to creating the database and the user with the privileges suitable for wordpress. In the field host: create the user with local and notANY HOST. https://wordpress.org/support/article/creating-database-for-wordpress/#using-phpmyadminNow after selecting a user other than root and clicking your database WordPress, repeat the two sql instructions and report the result without a password example
Grants for root@localhost GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD '*######' WITH GRANT OPTION GRANT PROXY ON "@" TO 'root'@'localhost' WITH GRANT OPTION'😉 … even the port.
Forum: Fixing WordPress
In reply to: I can not edit my page after i install ssl certificateThis error ERR_SPDY_PROTOCOL_ERROR It depends on the type of certificate, if you use http2 and use an outdated browser.
Update your browser, try chrome’s incognito mode if the problem is solved, otherwise open only one page on http://www.google.com and delete your browser’s cookies and cache, close the page, switch off and switch on your device.
If you still have this problem, talk to your hosting provider who offers the certificate.
It is not a speech for wordpress since the core WordPress uses is_ssl and only if it matches in $_SERVER[‘HTTPS’] // On or 1
Or $_SERVER[‘SERVER_PORT’] // 443 is https for WordPress.
SSL SERVER TEST
SSL CLIENT TESTdid you create your user (for external wordpress) without
any host? (so only the local user).
What user permissions do you have for that database?
You can use WordPress debug mode if it works ini_set on your server.
Add this before require_once on wp-config.phpdefine( 'WP_DEBUG', true ); define( 'WP_DEBUG_DISPLAY', true ); define( 'WP_DEBUG_LOG', true );default file log is /wp-content/debug.log
also if you don’t work with the object $wpdp which shows the error info only when WP_DEBUG is enabled and the latter works only if you can use ini_set or with external connections to the WordPress $wpdb object if you anticipate errors from your php code (as in this case).
you can check the user who successfully logs in even in sql.
SHOW GRANTS CURRENT_USER;if the user is with the right permissions and is authorized to access the database externally I would activate the debug only after creating the page before clicking edit and then click on edit and I immediately go to check the debug log .. customize the error from your script so as not to create ambiguity between the user $wpdb object wordpress and the external user database. 😉
https://www.php.net/manual/en/mysqli.connect-error.phpForum: Networking WordPress
In reply to: Apache Virtual Hosts file for WP Multisitewordpress does nothing more than join the main or secondary site you set in your dns
If you need different error_log or access log for different domains, the choice is yours.Forum: Networking WordPress
In reply to: Apache Virtual Hosts file for WP MultisiteForum: Networking WordPress
In reply to: Apache Virtual Hosts file for WP MultisiteIf your dns is on a single ip address (for the main domain and subdomain).
https://httpd.apache.org/docs/2.4/vhosts/examples.html
For (SSL) load balancing or reverse proxy https://httpd.apache.org/docs/2.2/mod/core.html#servername mod_ssl version with SNI support (standard in Apache releases since 2.2.12).
Jolly * (ServerAlias) https://httpd.apache.org/docs/2.2/vhosts/name-based.html#usingListen 172.20.30.40:80 Listen 172.20.30.40:443 <VirtualHost 172.20.30.40:80> DocumentRoot "/www/example1-80" ServerName http://www.example.com:80 </VirtualHost> <VirtualHost 172.20.30.40:443> DocumentRoot "/www/example1-443" ServerName https://www.example.com:443 </VirtualHost>request the certificate from the domain http://www.example.com and add *. for any subdomain.
Forum: Fixing WordPress
In reply to: Missing Temporary File and other errorssorry, I thought you knew the programming, my mistake, forgive me.
I’ll give you an example, I install wordpress in a subdirectory named wp.
my absolute local path is
/home/username/www/wp/
then the ABSPATH constant was created to avoid ambiguously in the path of where wordpress resides.
define('ABSPATH',dirname(__FILE__).'/');
This is the same as the first path I wrote if wp-config.php or wp-settings.php is located in the wp directory.the correct code for the temp directory inside wp-content is
define('WP_TEMP_DIR',dirname(__FILE__).'/wp-content/temp');
try setting the right permissions:Read 4 – Allowed to read files
Write 2 – Allowed to write/modify files
eXecute1 – Read/write/delete/modify/directoryThen try setting the wp-content folder and the temporary folder to 777.
If it works for you we have to do other tests to understand how to limit the permissions 🙂you must also verify the owner file WordPress (wp-settings.php, /wp-content/ etc..) and therefore request support for your hosting for this.
Create test.php into folder WordPress<?php $a[] = fileowner(dirname(__FILE__).'/'); clearstatcache(); $a[] = fileowner(dirname(__FILE__).'/wp-settings.php'); clearstatcache(); $a[] = fileowner(dirname(__FILE__).'/wp-content/'); clearstatcache(); print_r($a);This number is equal?
Forum: Fixing WordPress
In reply to: Multisite – My sites/Dashboard vs View Site https/http discrepanciesso if I understand correctly you have a multisite installation on subdomain.
The first thing I would do is check if your hosting actually creates the HTTPS variable.
Create test.php with this code<?php if(!isset($_SERVER['HTTPS'])){ $_SERVER['HTTPS'] = "Don't exists"; } echo $_SERVER['HTTPS'];Run with http and https your main domain or subdomain.
I don’t know if you encounter problems when editing secondary sites from your network.it is likely that the HTTPS variable does not exist on the subdomains and therefore you cannot redirect.
Forum: Fixing WordPress
In reply to: Missing Temporary File and other errorsWhat permissions do you have in the wp-content folder?
Forum: Fixing WordPress
In reply to: Missing Temporary File and other errorsinstead you’re wrong the error comes from the plugin not from wordpress core.
It may be that other plugins or themes conflict with plugin Custom Sidebars.
Backup your files and your database, then try disabling the plugin Custom Sidebars.
if everything works and you don’t find errors it means that it is the plugin that creates the defect.Note* From the error list you must first resolve the first error the file is not accessible or non-existent (all other errors are derived from the first error).
define('WP_TEMP_DIR','/home/username/www/wp-content/temp');
or
define('WP_TEMP_DIR',dirname(__FILE__).'/wp-content/temp');However this code normally overrides the default folder in one you defined.
because it doesn’t work I don’t know.
https://developer.wordpress.org/reference/functions/get_temp_dir/$temp = WP_CONTENT_DIR . '/'; if ( is_dir( $temp ) && wp_is_writable( $temp ) ) { return $temp; } return '/tmp/';https://github.com/WordPress/WordPress/blob/master/wp-includes/default-constants.php#L71
WP_CONTENT_DIR I read this code will have the value of ABSPATH (root wordpress) wp-content for $temp = ABSPATH.’wp-content’.’/’ if it is a directory and writable return this otherwise /tmp/Forum: Fixing WordPress
In reply to: Missing Temporary File and other errorsHi, the error comes from a plugin.
write in the plugin support area. https://wordpress.org/support/plugin/custom-sidebars