Use mulitple usernames?

WordPress does not allow this “configuration”. And I seriously doubt you would have any luck writing a plugin that would take care of this in a complete way. The WPDB class is heavily utilized throughout the site, and sifting through read-only vs write-enabled uses would be daunting.

Cannot upload anything via wordpress

Right, I’ve managed to solve the problem. Maybe this answer helps other people who encounter the issue again. The problem is inherently in the installation procedure when installing via the package manager in ubuntu. The actual issue was in the database configuration, the installation had set WP_CONTENT_DIR to /srv/www/wp-content/localhost, a directory I did not even … Read more

Iframe a WordPress template

Well, it can’t and won’t work. You should think how iframe really works. All it does is send a request to server with given URL (src parameter) and display response. Why inserting <?php bloginfo(‘template_directory’); ?>/training-form.php as src wouldn’t work? Just go to this address and see, what you’ll get. Nothing or some trash. Why? Because … Read more

Prevent WordPress installing plugins and themes via Admin

You can simply delete the lines from your wp-config.php. define(‘FTP_HOST’, ‘yourhost.com’); define(‘FTP_USER’, ‘youruser’); define(‘FTP_PASS’, ‘yourpass’); However, this does not automatically mean that you are secure. There are a lot of backdoors where malware could be injected, starting from the server, security-issues in your plugins, outdated software etc. Please be sure to check for all the … Read more

Correct folder permissions?

For starters, the WordPress Codex has a wealth of information on this very topic. For the sake of brevity that should take care of most of it; however, there are some relievant points that should be made: If you do not wish WordPress (essentially PHP) to have access to the file system with the exception … Read more

Enable plugin installs without FTP with user from same group as Nginx/PHP-fpm

WordPress specifically checks that the fileowner of the files it creates are identical to the value returned by getmyuid. Meaning that if it creates files using a different owner than the owner of the WordPress files themselves, it won’t use the “direct” mode. Same group is not enough. The files WordPress writes must have the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)