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. Is it possible to configure the Apache Logs in Wordpress (Developer)?

Is it possible to configure the Apache Logs in Wordpress (Developer)?

Scheduled Pinned Locked Moved WordPress (Developer)
7 Posts 2 Posters 930 Views 2 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.
    • LonkleL Offline
      LonkleL Offline
      Lonkle
      wrote on last edited by Lonkle
      #1

      Title says it all. Specifically the types of log / notices being sent. Just getting tired of the Cloudron Healthcheck Access service getting logged when I'm trying to log more important things (specifically PHP notices and errors only). 😅

      1 Reply Last reply
      0
      • LonkleL Offline
        LonkleL Offline
        Lonkle
        wrote on last edited by
        #2

        I'm trying to basically throw the apache access_logs into dev/null unless I really need them one day and I'll comment it out.

        1 Reply Last reply
        0
        • LonkleL Offline
          LonkleL Offline
          Lonkle
          wrote on last edited by
          #3

          So far I've found no documentation to do so which is weird cause it's not that uncommong, access logs and error logs are separate to begin with so I just need to take access_log and send it to dev/null - I mean, there is an apache folder at the root of Wordpress (Developer), and it's accepting new commands - I just have to figure out the command to throw out access logs since I can't "comment it out" at the base .conf I'm guessing is used in addition to the one in /app/data/apache/

          1 Reply Last reply
          0
          • LonkleL Offline
            LonkleL Offline
            Lonkle
            wrote on last edited by Lonkle
            #4

            Really thought this was gonna work:

            SetEnvIf Request_URI "^/wp-includes/version.php$" dontlog
            CustomLog /dev/stdout combined env=!dontlog
            

            since that's the specific URL the healthcheck uses so I tried to make it just not log that path. Failed again, next test.

            Note: Obviously the healtcheck is important what the status isn't 200 OK, but so distracting in the logs showing up every 10 seconds or so.

            1 Reply Last reply
            0
            • LonkleL Offline
              LonkleL Offline
              Lonkle
              wrote on last edited by
              #5

              I couldn't even stop all logging via:

              ErrorLog /dev/null
              CustomLog /dev/null combined
              

              so this must be something I can only solve by installing my own LAMP because the log .conf are out of my reach in the Wordpress (Developer) installation. But I don't want to miss out on updates, and LDAP. 🤔

              1 Reply Last reply
              0
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #6

                Currently, you cannot change this, no. You have to use the LAMP app if you want to change the apache configs. In the LAMP app, there is an app.conf which gives you control over logging.

                LonkleL 1 Reply Last reply
                0
                • girishG girish

                  Currently, you cannot change this, no. You have to use the LAMP app if you want to change the apache configs. In the LAMP app, there is an app.conf which gives you control over logging.

                  LonkleL Offline
                  LonkleL Offline
                  Lonkle
                  wrote on last edited by Lonkle
                  #7

                  @girish said in Is it possible to configure the Apache Logs in Wordpress (Developer)?:

                  Currently, you cannot change this, no. You have to use the LAMP app if you want to change the apache configs. In the LAMP app, there is an app.conf which gives you control over logging.

                  You'd expressed interest in more fine-control over logging in another thread. If that's still true, I'll deal with the Apache over-Logging for now looking forward to a time where we figure out a solution for a way to best configure logs for the end-user.

                  Going to LAMP would just feel like I'd be contributing less and less to the Wordpress (Developer) and (Managed) codebase(s) and that's my real goal. To make Wordpress (Developer) the best it can be in Cloudron.

                  So maybe, one day, those access logs will be configurable. 😉

                  1 Reply Last reply
                  2
                  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