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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. WordPress (Developer)
  3. Change wp-content foldername not possible?!

Change wp-content foldername not possible?!

Scheduled Pinned Locked Moved Solved WordPress (Developer)
8 Posts 3 Posters 1.2k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sitedock
    wrote on last edited by
    #1

    Hi there!

    I'm trying to rename the wp-content folder name to app.
    I do this on every wp-site for some years now.
    wp is able to handle that so i renamed the folder and set up the respective constants in wp-config.php

    define( 'WP_CONTENT_FOLDERNAME', 'app');
    define( 'WP_CONTENT_DIR', ABSPATH . WP_CONTENT_FOLDERNAME);
    define( 'WP_CONTENT_URL', WP_SITEURL .'/'. WP_CONTENT_FOLDERNAME);
    

    But that seam not to work cause the server-setup seams to mount the exact "wp-content" folder to the docker container... can i change this somewhere?

    Thanks for any hint about this!

    girishG 1 Reply Last reply
    0
    • S sitedock

      Hi there!

      I'm trying to rename the wp-content folder name to app.
      I do this on every wp-site for some years now.
      wp is able to handle that so i renamed the folder and set up the respective constants in wp-config.php

      define( 'WP_CONTENT_FOLDERNAME', 'app');
      define( 'WP_CONTENT_DIR', ABSPATH . WP_CONTENT_FOLDERNAME);
      define( 'WP_CONTENT_URL', WP_SITEURL .'/'. WP_CONTENT_FOLDERNAME);
      

      But that seam not to work cause the server-setup seams to mount the exact "wp-content" folder to the docker container... can i change this somewhere?

      Thanks for any hint about this!

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @sitedock said in Change wp-content foldername not possible?!:

      define( 'WP_CONTENT_DIR', ABSPATH . WP_CONTENT_FOLDERNAME);

      Is this missing a slash in the middle?

      S 1 Reply Last reply
      0
      • girishG girish

        @sitedock said in Change wp-content foldername not possible?!:

        define( 'WP_CONTENT_DIR', ABSPATH . WP_CONTENT_FOLDERNAME);

        Is this missing a slash in the middle?

        S Offline
        S Offline
        sitedock
        wrote on last edited by
        #3

        @girish Thanks for the idea but the ABSPATH is /app/code/ in cloudrons architecture. that seams to be ok. checked this also. 😉

        i think it has something to do with the folder mounts. in the appdata folder the rest of wordpress core folders are also missing. only the ones that are available to edit (wp-config.php, php.ini, wp-content).

        I assume it is not possible to change to dockerfile for the app?!

        girishG 1 Reply Last reply
        0
        • S sitedock

          @girish Thanks for the idea but the ABSPATH is /app/code/ in cloudrons architecture. that seams to be ok. checked this also. 😉

          i think it has something to do with the folder mounts. in the appdata folder the rest of wordpress core folders are also missing. only the ones that are available to edit (wp-config.php, php.ini, wp-content).

          I assume it is not possible to change to dockerfile for the app?!

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by girish
          #4

          @sitedock Ah, maybe you are using the WordPress Managed version of the app. There are two WordPress in the app store - Managed and Developer . The Managed one is setup with a readonly file system and it's meant for "blogs". Developer edition is targeting people who want to customize heavily and build websites (like your use case probably). In the developer edition, you the code is in /app/data/public/, so it's all writable.

          You can check this in the App -> Update section in the Cloudron dashboard.

          jdaviescoatesJ S 2 Replies Last reply
          0
          • girishG girish

            @sitedock Ah, maybe you are using the WordPress Managed version of the app. There are two WordPress in the app store - Managed and Developer . The Managed one is setup with a readonly file system and it's meant for "blogs". Developer edition is targeting people who want to customize heavily and build websites (like your use case probably). In the developer edition, you the code is in /app/data/public/, so it's all writable.

            You can check this in the App -> Update section in the Cloudron dashboard.

            jdaviescoatesJ Online
            jdaviescoatesJ Online
            jdaviescoates
            wrote on last edited by
            #5

            @girish you could save a lot of people a lot of time (not least yourself) by making WordPress (Developer) the default WordPress app that is shown first when searching the app store for WordPress and putting some big warnings in WordPress (Managed) saying something like " you probably do NOT want to use this" with links to docs explaining the difference.

            I think renaming "WordPress (Developer)" to just "WordPress" would help too.

            Should probably supress WordPress (Managed) from being displayed in Popular App etc too, IMHO.

            Nearly every issue people have with WordPress is caused by them using Managed when they should be using Developer.

            I use Cloudron with Gandi & Hetzner

            girishG 1 Reply Last reply
            1
            • jdaviescoatesJ jdaviescoates

              @girish you could save a lot of people a lot of time (not least yourself) by making WordPress (Developer) the default WordPress app that is shown first when searching the app store for WordPress and putting some big warnings in WordPress (Managed) saying something like " you probably do NOT want to use this" with links to docs explaining the difference.

              I think renaming "WordPress (Developer)" to just "WordPress" would help too.

              Should probably supress WordPress (Managed) from being displayed in Popular App etc too, IMHO.

              Nearly every issue people have with WordPress is caused by them using Managed when they should be using Developer.

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              @jdaviescoates I think making WP code writable is too dangerous as the default. There are way too many plugins doing all sorts of things. In fact, the support is quite low only because we prevent people from doing all sorts of things. We don't actually mind redirecting people to WP Developer with sound warnings.

              For example, even changing the code directory of this wp-content (like this request), is not needed. But, there are million wp articles on how to re-configure wp in the same of security... we won't win this battle. Maybe there are real reason to re-configure since it's really insecure , which makes the case for managed WP even more ironically.

              But I agree that we should maybe let people know of the choices upfront. I think WP managed still has a very large number of install, so it's up front.

              1 Reply Last reply
              1
              • girishG girish

                @sitedock Ah, maybe you are using the WordPress Managed version of the app. There are two WordPress in the app store - Managed and Developer . The Managed one is setup with a readonly file system and it's meant for "blogs". Developer edition is targeting people who want to customize heavily and build websites (like your use case probably). In the developer edition, you the code is in /app/data/public/, so it's all writable.

                You can check this in the App -> Update section in the Cloudron dashboard.

                S Offline
                S Offline
                sitedock
                wrote on last edited by
                #7

                @girish Oh yes you're right. I'll switch to Developer-Edition and tell you if it works with that... I like the idea of having a save Managed Version where everything is secured while having the option to use a Developer-Editon which is more open for customizations... 🕶

                1 Reply Last reply
                1
                • S Offline
                  S Offline
                  sitedock
                  wrote on last edited by
                  #8

                  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 Reply Last reply
                  2
                  • nebulonN nebulon marked this topic as a question on
                  • nebulonN nebulon has marked this topic as solved on
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search