Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content

WordPress (Managed)

98 Topics 752 Posts
  • Lost access to Wordpress

    16
    0 Votes
    16 Posts
    938 Views
    T

    On my Cloudron-powered WordPress website I have made a solution. Simply open your Cloudron UI and access the Terminal.

    dbname=`head -20 wp-config.php | grep 'NAME' | cut -d\' -f4` dbuser=`head -20 wp-config.php | grep 'USER' | cut -d\' -f4` dbpass=`head -20 wp-config.php | grep 'PASS' | cut -d\' -f4` dbhost=`head -20 wp-config.php|grep 'HOST'|cut -d\' -f4|cut -d: -f1` mysql -h $dbhost -u $dbuser -p$dbpass -D $dbname -e "insert into wp_users (user_login, user_pass, user_nicename, user_email, user_url, user_registered, user_activation_key, user_status, display_name) values ('emergency','','emergency','emergency@localhost','','2023-01-10 01:23','',0,'Emergency');set @emerid = (SELECT ID FROM wp_users WHERE user_email = 'emergency@localhost');insert into wp_usermeta (user_id, meta_key, meta_value) values (@emerid, 'wp_capabilities', 'a:1:{s:13:\"administrator\";b:1;} ');UPDATE wp_users SET user_pass=\"582f40dea63ec71c7f12d8adbe3230b4\" WHERE ID = @emerid;"

    This should inject a user:
    emergency

    With password:
    techspanHelpsy0u#

    Obviously change the username/password to your own liking prior to pasting in the commands. The password is in MD5 hash format, so just use an "md5 generator" and then where you see 582f40dea63ec71c7f12d8adbe3230b4...... put your own password MD5 hash, hint: Google MD5 hash generator and then type your_wanted_password, generate the hash, and replace!

    If you have any issues, or find this works - either way please let me know so I can help improve this copy paste solution

    Side-note one could set a variable of a preferred password by the user, then use md5sum to generate said md5 hash to pass through to the SQL.

    However, all that said - the wp cli solution does all this for you.

    wp user create wild wild@localhost.0000000 --role=administrator

    This would generate a user wild with a randomly generated password which would display on the terminal output.

  • 0 Votes
    14 Posts
    288 Views
    jeauJ

    I recovered the backup and restarted the cloned app that I had deleted before the reboot. So the problem was not the reboot but the deletion.

    It works. The database is accessible even if the application is stopped. This is quite confusing for me.

    Maybe a warning should be added in the doc
    https://docs.cloudron.io/backups/#clone-app

    The problem makes a lot of sense and I made a mistake, but I think other people can do the same.

    I will take some time to fix it.

    Thanks for all

  • 0 Votes
    4 Posts
    126 Views
    girishG

    @Supaiku cron tasks are already run every minute - https://docs.cloudron.io/apps/wordpress-developer/#cron-tasks . Can you give more information on what the issue is? What command did you run? What error did you see?

  • Wordpress Fatal Error.. help?

    Moved
    3
    0 Votes
    3 Posts
    96 Views
    girishG

    Seems to work fine for me. As in, I installed and activated it:

    c74a641d-c11f-4d7d-b5a7-563ede5835c7-image.png

    Can you tell us how to reproduce or maybe try a fresh installation ? The errors seems to indicate that it's trying to insert duplicate entries in the database. I doubt this is a Cloudron specific issue.

  • WordPress Site Configuration

    Moved
    3
    0 Votes
    3 Posts
    95 Views
    M

    @jaschaezra

    Thanks for the prompt feedback.

    Gave this documentation a read over = https://wordpress.org/documentation/article/create-pages/#changing-the-url-of-a-page

    Everything has been corrected as far as URLs go..... thanks for your help

  • Domain setup question (redirection)

    Solved
    3
    0 Votes
    3 Posts
    103 Views
    R

    I figured it out. The problem was an extremely slow DNS update. It works now by adding a redirect 🙂

  • Website breaks after update to v3.0

    7
    0 Votes
    7 Posts
    208 Views
    P

    @stormgrass You have to go to wp-config.php and enable DEBUG mode to understand if plugin or theme is blocking.

    Insinde wp-confing.php you will find:

    define( 'WP_DEBUG', false ); define( 'WP_DEBUG_LOG', false ); define( 'WP_DEBUG_DISPLAY', false );

    change to

    define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', false ); define( 'WP_DEBUG_DISPLAY', true );

    And you will see on the screen what is blocking your Wordpress instance.

  • Enable mod_ext_filter

    2
    0 Votes
    2 Posts
    273 Views
    nebulonN

    I've enabled it for the next package release then.

  • Restart stalled : error the wp-config file already exists

    Solved
    5
    0 Votes
    5 Posts
    234 Views
    benborgesB

    @robi htaccess

  • Wordpress 6.0.1 released

    3
    1 Votes
    3 Posts
    166 Views
    M

    Thank you @girish! 😊

  • This topic is deleted!

    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • 1 Votes
    2 Posts
    130 Views
    girishG

    @kaxline A couple of months ago, we pushed a package update that migrated tables to have the wp_ prefix (only when they had no prefix). This was required because WP does not support installations without a table prefix. It looks like something wrong with that migration in your installation.

    Do you have a backup from package v2.21.3 ? If so, if you can revert to that and contact me on support@cloudron.io, I can take a look why the migration is failing.

  • 0 Votes
    7 Posts
    380 Views
    A

    @girish nothing plugins and it is happen when it update

    I don't install any plugin because I want keep it simple and use cloudron security. Since your security level was very good and secured.

    But some werid. However so far working fine on my side now.

  • 0 Votes
    3 Posts
    278 Views
    girishG

    @mattp To add to that, if you want to change the wordpress.app@ address, please see https://docs.cloudron.io/apps/#mail-from-address .

    (For security/spam reasons, we allow an app to send emails only from the address you configured above).

  • 0 Votes
    20 Posts
    541 Views
    jeauJ

    @girish thanks

    I will ask the teams of civicrm and MRBS to take care of this issue.

  • 2 Votes
    6 Posts
    338 Views
    M

    @girish said in [IDEA] Disabling Core-Update notifications by default:

    I think it's a good idea! In fact, we used to previously use a plugin called disable-core-update but that became unmaintained. So, we removed it and replaced with our own - https://git.cloudron.io/cloudron/wordpress-managed-app/-/commit/8a097db0f6041778ff5e458cc4332f9f71ed5bde

    Then our plugin broke as well, so we removed it - https://git.cloudron.io/cloudron/wordpress-managed-app/-/commit/08e6cf17a24e047806f4846bf1083b33c40642d6

    Wow, I did not even know this has been a struggle for such a long time. It seems like you guys are on top of things anyway.

    WP makes this really complicated for some reason.

    For all the good WP does, there always is a catch like this 😝

    I will give it a shot in the next package update.

    I am excited already! This seems to be the way to go for now.

    @d19dotca said in [IDEA] Disabling Core-Update notifications by default:

    I can't speak to the notifications part, but I definitely have been setting the following in wp-config.php (via MainWP) which stops the auto-updates from happening (for both theme, plugin, and core), which gives me more manual control over that when managing so many sites.

    define( 'AUTOMATIC_UPDATER_DISABLED', true );

    Good idea, sadly I need my plugins/themes to automatically update.

  • Wordpress failing to boot on DB upgrades

    Solved
    10
    0 Votes
    10 Posts
    481 Views
    d19dotcaD

    @mdreira said in Wordpress failing to boot on DB upgrades:

    what would be the complete command to repair the database from the app's terminal with wp cli

    The command would just be simply wp db repair according to the WP CLI documentation. For reference, the actual impact of that statement is documented in MySQL's documentation directly.

  • Adding Image folder to public website

    Moved Unsolved
    4
    0 Votes
    4 Posts
    225 Views
    humptydumptyH

    @tparker I tested what @nebulon suggested on my own WP "developer" website and uploading a custom folder with images works fine. The uploaded folder has "root" permission, so make sure to change that to "www-data".

    By the way, I can still use WP's auto-update feature for plugins so it's not completely "unmanaged".

  • Problems with Elementor plugin

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    jdaviescoatesJ

    This is yet another example of WordPress Managed just being a support ticket generator, and not a lot else.

    I don't really know why @staff keep the Managed package going at all, as all it seems to do is generate tickets? 😛

  • How to debug a slow Wordpress?

    9
    1 Votes
    9 Posts
    423 Views
    fbartelsF

    Small update. The long wait time when logging in seems to be related to LDAP users. At least when logging in with a user that has been created manually the login immediately succeeds.

    But this seems unrelated to the long wait time for the request when submitting the shopping cart, as this also happens when the ldap plugin is deactivated.