Announcement

Collapse
No announcement yet.

Deploy: Cannot change default "scriptcase" password - endless loop

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    @ RR: I have a PHPMaker deployment running in exactly the same configuration and even using the same IIS AppPool, and it works:

    Local IIS7, PHP, Vista -> remote mySQL database, Server 2008 R2.

    So IMO it's not a rights elevation issue. See screenshot:

    Untitled13.jpg

    Comment


    • #32
      Originally posted by hkuersten View Post
      when I log into the SC production environment and choose mysql
      Try edit the MySQL configuration with this link: _lib/prod/lib/php/nm_ini_manager2.php. The dialogue must be displayed completely (with server name, port, user name, password, etc.), otherwise it makes no sense ...
      Best regards: - Reinhard -

      I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

      Comment


      • #33
        Been there before..
        Untitled14.jpg

        As I said, they seem to be "correctly configured" in my local dev environment, and I've generated the local deployment (same machine, same IIS) several times now.

        Another loop...

        Comment


        • #34
          1. have you already re-deployed fully to be sure that you have a correct install
          2. did you have sc on the chat. Don't send tickets.
          3. if you get into this loop then SC is simply not able to save some stuf, which is due to a misconfiguration of nonexistant paths, rights to create paths or rights to write to directories.
          Albert Drent
          aducom software netherlands
          scriptcase partner, reseller, support and (turn-key) development
          www.scriptcase.eu / www.scriptcase.nl

          Comment


          • #35
            Originally posted by hkuersten View Post
            the cmd from #17
            Back to this point: after the cmd have you restart the website in IIS?
            Best regards: - Reinhard -

            I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

            Comment


            • #36
              @ Albert

              1. Yes
              2. I tried chat and noone answered
              3. My local IIS is open as a barn door. I gave every user and group on my local machine full control to all deployment folders.
              4. After the cmd I restarted my local IIS several times. I can even access the remote DB with phpMyAdmin on the same local IIS, using the same apppool

              More:
              - I regenerated the deployment after every change.
              - After the cmd, a new user group popped up, namely that of my IIS apppool. I even gave this user group full control.

              Untitled15.jpg

              So:
              * Everyone on my PC has RWX rights on all SC deployment folders
              * Every PHP app running on my local IIS can access the remote mySQL database, except SC
              * Even the local SC development environment can access the remote DB

              Comment


              • #37
                Sorry I have to give up.
                Albert Drent
                aducom software netherlands
                scriptcase partner, reseller, support and (turn-key) development
                www.scriptcase.eu / www.scriptcase.nl

                Comment


                • #38
                  What setting can I change manually, and in what files in the deployment foldler?

                  Surely there must be a way to overcome this issue by editing the appropriate file.

                  Comment


                  • #39
                    Since you can get to your remote mysql from a phpmaker installation I assume that the settings are doen properly. So all that remains is to install xdebug on your iis server (see for example: http://blog.swiftbyte.com/developmen...ervices-iis-7/ ) and use an xdebug client
                    (see http://xdebug.org/docs/remote). I use XDebugClient for simple work (http://code.google.com/p/xdebugclient/). Install it, allow port 9000 through, restart your iis server etc.. You know the drill. Then check a php connect script on your iis script to see if your debugging works. If so then go to your lib dir url path and setup the database connection but do it with the debug client with it. You should be able to find in detail which statement is failing.
                    Maybe that will show you the cause..... At least you should be able to get a very reduced number of statements to test your mysql connection with.

                    Comment


                    • #40
                      Hello,

                      Please contact our support team as a trial user: https://www.scriptcase.net/scriptcase-support/

                      regards,
                      Bernhard Bernsmann

                      Comment


                      • #41
                        Hello Bernhard,
                        I already have an open ticket: #FRA-805-83378
                        It's asking me for a screenshot. All sceenshots are in this thread.
                        I asked support to read this thread. Must I start from zero?

                        Comment


                        • #42
                          @ rr

                          Thank you fior the tip with the debugger. I already have NetBeans with xDebug installed, so I did a test. This is the code where it does not seem to succeed:

                          Untitled17.jpg

                          The function CheckLogin is failing and I'm not being directed to $nm_config['url_prod']
                          I have no idea if I'm looking at the right place however.

                          This is the result of "test connection":

                          Untitled18.jpg

                          Comment


                          • #43
                            To all who have been so kind to try to help me here:

                            There must be something outside of the deployment folder that the SC production site is trying to access, EXCEPT the database. Something is very fishy, otherwise the IIS would not be blocking it. It doesn't help to refer me to Apache, if SC is not behaving correctly in my opinion.

                            So then I read in the SC manual under:
                            http://downloads.scriptcase.net/down...01-tipica.html

                            Permissions – Reading, Write and Execution. For Windows Servers using Web IIS Server, is necessary to define the permissions in the directory _lib (common libraries),
                            and in the CMD files (C:\WINDOWS\system32) for IIS users


                            WTF, are you serious?? I am supposed to give IIS users of SC full access to the C:\WINDOWS\system32 folder ?!?
                            Am I reading this right or is this a bad joke?

                            Comment


                            • #44
                              Originally posted by hkuersten View Post
                              Am I reading this right or is this a bad joke?
                              Forget the rubbish ...
                              Best regards: - Reinhard -

                              I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

                              Comment


                              • #45
                                After a little debugging, it seems to me that SC cannot build the SESSION from prod.config.php correctly.

                                Untitled21.jpgUntitled20.jpg

                                If I hack the code as in the screenshot, and enter my connection info in cleartext, HEUREKA I get a successful connection. Strangely enough, the password was correctly loaded in $str_pass, but &str_user and $str_host were empty. Now, when I try to save the "successful" connection, I get "User is not informed". So obviously my hack was incomplete.

                                Who can get me "one step beyond", because I'm slowly going MADNESS...

                                The contents of prod.config.php are in this screenshot:
                                Untitled22.jpg

                                I know the stuff is crypted, which is ok, but can someone see any problem here?

                                Support doesn't seem to care - 2 open tickets and no reply. Sad...

                                Comment

                                Working...
                                X