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 (Developer)

174 Topics 1.5k Posts
  • 3 Votes
    12 Posts
    356 Views
    P

    @marcusquinn I use these commands, via Terminal MySQL Access:

    //display active users select user_login, user_nicename, display_name from wp_users; //change user_nicename UPDATE wp_users SET user_nicename = 'myusername' WHERE user_nicename = 'admin'; //change user_login UPDATE wp_users SET user_login = 'myusername' WHERE user_login = 'admin'; //change display_name UPDATE wp_users SET display_name = 'myusername' WHERE display_name = 'admin'; //change user email UPDATE `wp_users` SET `user_email` = "myemail@email.com" WHERE `wp_users`.`user_login` = "myusername"; //change admin password UPDATE WORDPRESSDATABASE.wp_users SET user_pass = MD5('NEWPASSWORD') WHERE user_login = 'myusername';
  • Make "Redis Object Cache" deactivated by default on fresh installs

    3
    3 Votes
    3 Posts
    81 Views
    marcusquinnM

    @girish Thanks, that makes some memory-saving sense, too. My specific issue was just at having the addon enabled, but the plugin disabled, as it makes sense to have it on a live site that isn't being developed, but not during development.

  • 0 Votes
    3 Posts
    102 Views
    marcusquinnM

    @BrutalBirdie You're right, directory browsing is blocked at the server level. I just spotted these missing files and thought a simple no-harm way to cover the same for all instances.

  • SMTP password for sending email with the Wordpress FluentSMTP plugin

    3
    0 Votes
    3 Posts
    81 Views
    marcusquinnM

    @luckow Thanks! Hidden in plain sight 😅

    I did quickly try checking documentation first, just not enough, I guess!

    Wen CloudronGPT? 😁

  • WordPress 6.2.1 Maintenance & Security Release

    Solved
    3
    0 Votes
    3 Posts
    68 Views
    P

    @girish 👏👏👏

  • Hacked

    18
    0 Votes
    18 Posts
    747 Views
    RazielKanosR

    check out in the options table. I once had a hacked plugin that was writing executable code in the options table, and by that, it was able to reinstall itself again and again.

    Well securing the page should be a matter of less than an hour. Just export those pages, make a fresh install and import the pages back in 🙂

  • Wordpress Backup

    2
    0 Votes
    2 Posts
    96 Views
    nebulonN

    Are you talking about https://docs.cloudron.io/apps/#data-directory or some other directory for data within Wordpress?

  • Wordpress: Redis object cache or W3 Total Cache?

    Moved
    14
    0 Votes
    14 Posts
    836 Views
    marcusquinnM

    @humptydumpty Nothing to feel bad for. That's just how GPL works. Plenty of non-GPL platforms they could develop for and not benefit from the size of the market. Microsoft does just fine with a % of unlicensed users, it's just a marketing cost. At the end of the day utility and user counts is worth more. The plugin with 700,000 installs registering on wordpress.org will be getting ample monetisation opportunities. The one with 70 installs likely won't be worth any GPL site unlocking.

  • Jetpack alerting on security vuln

    7
    0 Votes
    7 Posts
    205 Views
    C

    @ianhyzy
    Update to 6.2 and that message should go away. Other control panels reported this as well but WP saw no need to act on it as there was no likely risk of it being exploited.

  • XMLRPC or WP-Login Brute Force Login Attempt

    10
    0 Votes
    10 Posts
    212 Views
    jdaviescoatesJ

    @p44 no idea

  • PHP Fatal error

    19
    1 Votes
    19 Posts
    921 Views
    jordanurbsJ

    @d19dotca @girish

    X theme, may also be called Pro

  • Wordpress site not responding - Healtheck error: Error: connect ECONNREFUSED

    Moved Solved
    12
    0 Votes
    12 Posts
    639 Views
    E

    @girish WHOOP!! deleteing object-cache.php solved it! Thank you so much!!!

  • How do you use WordPress (Developer) for dev/staging?

    3
    2 Votes
    3 Posts
    146 Views
    P

    This is how I do it, personally.

    Though I delete the dev.tld.com app when I no longer need it.

  • 0 Votes
    4 Posts
    171 Views
    M

    @p44 for me personally I wouldn't want that. When I use the clone feature, it clones an empty WP with a few basics installed to start the development process. When I migrate that to prod, I use duplicator, which does the heavy lifting and replacing.

  • MySql Grant All Permissions - remove those unnecessary

    5
    1 Votes
    5 Posts
    149 Views
    girishG

    It's mostly this way already. The credentials given to an app do not allow the app to operate outside the scope of the database. The app cannot drop the database as well. But it's allowed to do whatever it wants inside it's own database.

  • /wp-config.php file is writable

    4
    0 Votes
    4 Posts
    166 Views
    girishG

    In managed WP, the file is not writable.. But in Developer edition, a user has to change that file themselves, from the filemanager. This is by design though - the developer edition is vanilla and developer sets it up as they see fit.

  • Change the default wp_ database tables prefix

    3
    3 Votes
    3 Posts
    123 Views
    girishG

    Are you suggesting this for the default setup? There are already plugins that do this (and indeed many of our customers have randomized tables). IIRC, it's one of those security plugins. The Developer edition is vanilla, the intent is not to change the defaults.

    On a side note, this whole table name randomization is .. questionable. Pretty much no app outside WP does this, it's not really needed when apps are deployed properly. But only needed maybe because people install plugins. Also, see https://www.wordfence.com/blog/2016/12/wordpress-table-prefix/

  • Change wp-content foldername not possible?!

    Solved
    8
    0 Votes
    8 Posts
    211 Views
    S

    As expected it worked as expected with the above code in Developer Edition. 🙂 Didn't noticed that before, so thanks for your help and sorry for the noise.. 😉

  • 1 Votes
    9 Posts
    520 Views
    d19dotcaD

    @girish Just wanted to say I finished testing and yes this works great! Thank you so much for the fix! 🙂

  • Unmanaged Wordpress - Content Security Policy Issues

    Moved
    2
    1 Votes
    2 Posts
    197 Views
    girishG

    @jagan by default, Cloudron doesn't set any CSP or CORS headers for apps. The apps set the appropriate CSP for themselves. The CSP setting in Cloudron is only meant to used as an extreme measure (i.e no way to change an app's hardcoded CSP).

    With this mind, I would remove any custom CSP setting you have added in Cloudron dashboard. This is most likely the wrong approach.

    Next, I would investigate the CSP/CORS headers sent by WordPress. Per, https://community.adobe.com/t5/acrobat-services-api-discussions/pdf-embed-api-got-error/td-p/13142824 , you need something like Access-Control-Allow-Origin: * sent from WordPress.