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

    I was having problems with my test installation of modx, so I did a complete reinstallation.

    Upon completing the installation, there is no index.php.

    When I navigate with my browser to "http://modx" (the location of my test vhost), I just see a directory listing. I navigated to my docroot with my shell, and ls reveals that there is no index.php.

    What could be happening here ?


    I’m using modx evolution 1.0.3 on apache (ubuntu 9.10), PHP 5.2.10-2ubuntu.

    More info:

    I’ve just ran the installation again from scratch.
    During my previous (failed) installation, I had changed the perms of the modx dir tree, so that www-data (the owner of the apache process) owned everything. This made the installation process easier, because I didn’t have to mess with modx permissions manually.

    This time I left the ownership permissions untouched, so that the tree is owned by my user.
    Of course, this means that I have to fool with the perms for everything to work, and undoubtably creates massive security issues.
    But this time the index.php exists.

    I’d really like to have a secure installation with actual pages.
    How can I have my cake and eat it too ?
      • 9207 ☆ A M B ☆
      • 2,475 Posts
      A better check would be to log in via FTP/SSH and make sure you’ve refreshed the display to show newly added files.

      The default handler may not be configured to use index.php. Try manually adding "index.php" to the domain you have typed into your browser.

      As a simple test, try uploading a static file, e.g. "test.html", and verify that you can hit that in a browser.
        • 25315
        • 68 Posts
        Hi Everett.

        This is on a local test server, so I have access to the file system.

        A third installation has resulted in a success. The index.php is in place, and the directory belongs to the apache user.

        Thanks.
          • 25315
          • 68 Posts
          On an unrelated note....

          Is there a way on this forum to mark topics as solved ?
            • 25663 MODX Staff
            • 12,272 Posts
            Quote from: robrob at May 03, 2010, 07:20 PM

            On an unrelated note....

            Is there a way on this forum to mark topics as solved ?
            Edit the original message and put "[Solved] " in front of the subject.
              Ryan Thrash, MODX Co-Founder
              Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
              • 25315
              • 68 Posts
              Thanks Ryan