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

    i have installed Revo a half-dozen times in the RC days, so i am familiar with the process. tho it has been a while.

    thot now was a good time to get the official release version.

    i have a CentOS-based VPS (cPanel) config’ed to use suPHP as the default PHP handler.

    getting a 500 server error when I navigate to /setup & try to launch the installer.

    reviewed the revo basic install documentation & server req’ments:

    http://rtfm.modx.com/display/revolution20/Basic+Installation

    http://rtfm.modx.com/display/revolution20/Server+Requirements

    apache: 2.2.14
    php: 5.3.1
    (had to turn off magic_quotes_gpc, and i up’ed the php memory limit to 128MB. (my server has 512 MB.)
    mysql: 5.0.91 community
    kernel 2.6.18

    i up’ed the install file directly to my server via wget.

    reviewed troubleshooting:

    http://rtfm.modx.com/display/revolution20/Troubleshooting+Installation

    tried both firefox 3.6 and ie8.

    the default server permissions during install were 775 for folders and 664 for files. is this cool?

    can i have TOO MUCH permission?

    doesn’t seem like 664 is gonna cut it, no?

    why no *.tar.gz

    doesn’t tar preserve file file & directory permissions?
      Radified, VPS guide, Revo 206 Traditional, PHP 534, suPHP, MySQL 5151, Apache 2217, CentOS 5.5 on Virtuozzo VPS.
      • 3749
      • 24,544 Posts
      AFAIK, suPHP generally likes 755 for folders and 644 for directories.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 32829
        • 108 Posts
        hi BobRay.

        yeah, 755 with suPHP for directories, but 644 gives NO execute permissions.

        does not there need to be execute permissions?

        are you familiar with a way i could *install* (unzip) the package with the desired perms?

        like i said, i have VPS with <root> access.

        do not want to manually set perms on every file.

        if i recall correctly, after i enabled suPHP, having TOO MUCH perms gave problems.

        why no tarball available?

        does zip maintain file perms these days?

        my hosting tech sppt guy says suPHP "expects 655 for files".

        never heard that one before.
          Radified, VPS guide, Revo 206 Traditional, PHP 534, suPHP, MySQL 5151, Apache 2217, CentOS 5.5 on Virtuozzo VPS.
          • 3749
          • 24,544 Posts
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 32829
            • 108 Posts
            wow, that was a good post. very informative.

            i am first going to try to set perms to 755 + 644, via a shell script. but i am getting an error:

            find ./ -type d -e chmod 755
            find ./ -type f -e chmod 644

            invalid predicate ’-e’

            linux guy i know is helping.

            i have been able to run the installer after changing the perms on /core/cache and /core/config to 755 (from 775).

            but i am hanging at the database:

            http://modxcms.com/forums/index.php/topic,58525.0.html

            there’s a problem i never had before.

            i precreated the database in cPanel.

            maybe i create another & try again.

            did you ever write that book? are there any revo books out yet?
              Radified, VPS guide, Revo 206 Traditional, PHP 534, suPHP, MySQL 5151, Apache 2217, CentOS 5.5 on Virtuozzo VPS.
              • 3749
              • 24,544 Posts
              Quote from: xeeter at Dec 26, 2010, 11:24 PM

              did you ever write that book? are there any revo books out yet?

              1. I’m working on it.
              2. Not that I know of.

              :)
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 32829
                • 108 Posts
                do you happen to know WHY the following (as per the link you provided) will generate a 500 server error:

                Your PHP scripts are incorrectly set to permission 666 or 777

                Your folders or higher level folders are incorrectly 666 or 777

                Why does setting perms HIGHER than necessary throw an error?

                Doesn’t make sense to me.

                tried another database. still stuck at verifying the database.
                  Radified, VPS guide, Revo 206 Traditional, PHP 534, suPHP, MySQL 5151, Apache 2217, CentOS 5.5 on Virtuozzo VPS.
                  • 3749
                  • 24,544 Posts
                  I’m not sure, but I assume that suPHP just throws a server error when it doesn’t like something. It’s designed to keep people from compromising security.

                  On the DB, make sure you’re using localhost as the server name and that you have the DB name and username correct. Many hosts add a prefix to them so they may not be what you entered.

                  Be sure also, that you’re using the DB username and password and not the MODx username and password and that the user you created for the DB has full rights.

                  If that doesn’t do it, ask your host if localhost is the correct MySQL server name. It’s almost always right, but sometimes not.
                    Did I help you? Buy me a beer
                    Get my Book: MODX:The Official Guide
                    MODX info for everyone: http://bobsguides.com/modx.html
                    My MODX Extras
                    Bob's Guides is now hosted at A2 MODX Hosting
                    • 32829
                    • 108 Posts
                    I actually DID forget to add the server name prefix .. for database name & user name. But I remembered after looking more closely for a problem, and it still had the same problem after I added prefix.

                    Yes, I’m sure it’s localhost, cuz I woulda know the last time I installed Revo beta. But I will check with my host to make sure.
                      Radified, VPS guide, Revo 206 Traditional, PHP 534, suPHP, MySQL 5151, Apache 2217, CentOS 5.5 on Virtuozzo VPS.
                      • 32829
                      • 108 Posts
                      k, here’s note from tech sppt:

                      Hello there,

                      Yes, localhost is correct for mysql connection settings if your database is on the same server as the site that will be accessing it.
                      I feel stymied. Absolutely nothing happens when I click the ’test database server connection.’

                      The database abstraction layer is one of the things that makes Revo so cool.

                      I waited a few months before jumping in to get all the glitches ironed out. I installed beta5 no problem (.. after enabling suPHP).

                      I am pretty familar with databases and config’ing their connections. I mean, there are only a few variables.

                      I’m hoping it’s due to a problem with directory perms being set too high. I have a new shell script I’m gonna try to set all directories to 755, and files to 644.

                      chmod -R 755 /absolute/path/modx

                      If that doesn’t work, I’ll wait another 3 months.

                      I was really looking fwd to this.

                      btw - here’s a good link on suPHP from cPanel:

                      http://docs.cpanel.net/twiki/bin/view/EasyApache3/ApachePHPRequestHandling#suPHP considerations

                      For PHP scripts to execute, permissions of 0644 are sufficient. Scripts are run as the user who owns the VirtualHost, and as long as this user has permissions sufficient to write to a file or directory, PHP scripts will also have the ability to do so.
                        Radified, VPS guide, Revo 206 Traditional, PHP 534, suPHP, MySQL 5151, Apache 2217, CentOS 5.5 on Virtuozzo VPS.