We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4673
    • 577 Posts

    Checking if assets/export directory exists: OK!
    Checking if assets/export directory is writable: Failed!
    Checking if manager/includes/config.inc.php is writable: Failed!
    For new Linux/Unix installs, please create a blank file named config.inc.php in the manager/includes/ directory with file permissions set to 777.

    Ok, so why isn’t this file already created? Is it some kind of security measure?
    Aslo why does the bold message come after the checking. I wonder if this message shouldn’t come earlier in the install process.

    Just a few comments grin

    @ edit @
    IF everything checks fine ... could we just skip that click?

    installer won’t erase my install directory ...
      Tangent-Warrior smiley
      • 25663 MODX Staff
      • 12,272 Posts
      This is a great opportunity for you to demonstrate your coding prowess Carsten. None of the delete or create functions work in the Linux/BSD/OS X worlds... care to take a crack at getting it to do so?

      Although I don’t know why it doesn’t in reality. The file manager works with these types of functions.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 4673
        • 577 Posts
        Interesting ... I wonder if this works on 10.3?
          Tangent-Warrior smiley
          • 32963
          • 1,732 Posts
          The config.inc.php file is not shipped with modx. This is to prevent the system from overwritting the config.inc.php file of an existing install.

          On some system namely linux MODx will not be able to delete the installer folder due to file security settings.

          Ryan,

          Maybe we should add a check list to the installation guide?
            xWisdom
            www.xwisdomhtml.com
            The fear of the Lord is the beginning of wisdom:
            MODx Co-Founder - Create and do more with less.
            • 22303 MODX Staff
            • 10,725 Posts
            Quote from: rthrash at Jul 26, 2005, 12:32 PM

            This is a great opportunity for you to demonstrate your coding prowess Carsten. None of the delete or create functions work in the Linux/BSD/OS X worlds... care to take a crack at getting it to do so?

            Although I don’t know why it doesn’t in reality. The file manager works with these types of functions.

            Actually, this does work on my hosting service, which is Linux. However, the issue is how the hosting is configured. Until recently, this would not have worked at all, but config changes to the server now allow ftp uploads to assign ownership to my user account, and have the webserver processes running as my user account, so I can edit files (or remove folders) without worrying about permissions beyond that of the user running the web server process.

            (e.g. I can read and write without giving permission to group or world users...)
              • 7455
              • 2,204 Posts
              is it an idea to add a file config.inc.default.php
              so that we do not need to make a empty file but just rename this one if its a clean install
                follow me on twitter: @dimmy01
                • 4673
                • 577 Posts
                I do that currently.

                It’s still a hassle. I was thinking that we should just swallow the hassle and put in checks into the installer to check for it first ... hmmm ... there’s gotta be away to make this simpler!

                :D
                  Tangent-Warrior smiley
                  • 7455
                  • 2,204 Posts
                  on my server (linux) i am able to do a lot with linux commands in php instead of using the php comands that way I was able to chmod and copy / move files like this:
                  system ("chmod -Rf 777 assets/images/");
                  
                  and I use wget to get some images (addes some extra inputfields in the installer)
                  
                  system ("wget -O ../images/$file1 -c http://www.mywebsite.com/images/" .$file1);
                  


                    follow me on twitter: @dimmy01
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    The system configuration that allows the php script to run as the file’s owner and not as the apache user only works for the CGI installation of php; most mass hosting sites use the apache module, where it will not work.
                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                      • 22303 MODX Staff
                      • 10,725 Posts
                      Quote from: sottwell at Jul 27, 2005, 01:14 PM

                      The system configuration that allows the php script to run as the file’s owner and not as the apache user only works for the CGI installation of php; most mass hosting sites use the apache module, where it will not work.

                      Actually, our hosting service, and many shared hosting services, are installing phpSuExec which does this for the Apache module version of PHP (suExec was for the CGI version), and though may take away some flexibility in regards to changing PHP flags in .htaccess files, has added a layer of security to that site that is virtually unbreakable.

                      I offer hosting accounts featuring this.