PHPsuexec !*!#!@!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hexadecimal
    Junior Member
    • Mar 2004
    • 6

    #1

    PHPsuexec !*!#!@!

    I know that PHPsuexec is installed on the Dathorn servers and that prevents the ability to modify PHP configuration through the normal way of using an .htaccess file and that I need a "php.ini" file to do that job.

    What I do not know is anything about what a php.ini file is or how the code goes.

    I have a cms script that needs the following in the .htaccess file to make the script work.

    php_value session.use_trans_sid 0
    php_value session.use_cookies 1
    php_value session.use_only_cookies 1

    <Files idx>
    ForceType application/x-httpd-php
    </Files>

    Can someone please translate those requirements into php.ini language so that I can make a php.ini file and make the script work under a PHPsuexec situation?

    Also I assume that the php.ini file can be made as a simple txt file and then uploaded to the main directory of the cms script?

    Thanks very much for any help.
  • Buddha
    Senior Member
    • Mar 2004
    • 825

    #2
    In the "php.ini" text file (upload as ASCII):
    Code:
    session.use_trans_sid = 0
    session.use_cookies = 1
    session.use_only_cookies = 1
    Leave this stuff in the ".htaccess" file (also an ASCII FTP upload):
    Code:
    <Files idx>
    ForceType application/x-httpd-php
    </Files>
    You will probably need a "php.ini" file for every directory where php scripts execute. You'll need to experiment.
    "Whatcha mean I shouldn't be rude to my clients?! If you want polite then there will be a substantial fee increase." - Buddha

    Comment

    • hexadecimal
      Junior Member
      • Mar 2004
      • 6

      #3
      Thanks very much Buddha.

      In my reading around these forums, there are references to a "default" php.ini file.

      Should the

      session.use_trans_sid = 0
      session.use_cookies = 1
      session.use_only_cookies = 1

      be "added to" a copy of the default php.ini file or should the three lines of code be a "standalone" php.ini file just for the script's directory?

      If I need to "add to" the default php.ini file then where would I get a copy of it?

      Thanks a lot for the help.

      Comment

      • Buddha
        Senior Member
        • Mar 2004
        • 825

        #4
        The default (master) php.ini file is controlled by Dathorn (root) and they're not going to change it. That's a good thing.

        You should just need to create a text file named "php.ini" (without the quotes) with the three lines and upload it to the scripts directory.

        If numerical values don't seem to work try...

        Code:
        session.use_trans_sid = Off
        session.use_cookies = On
        session.use_only_cookies = On
        0(zero) is equal to Off
        1 is equal to On

        You can check that the values have changed by uploading (ASCII) this little script to the same directory as the "php.ini" file:

        PHP Code:
        <?php
        phpinfo
        ();
        ?>
        Name it "phpinfo.php" and access it through your browser with something like "http://www.yourdomain.com/phpinfo.php". It will output a page full of php configure values. Check your changes.

        What script are you trying to get to work? Bet someone can give you a step by step for getting it to work at Dathorn.
        Last edited by Buddha; 08-08-2004, 04:14 PM.
        "Whatcha mean I shouldn't be rude to my clients?! If you want polite then there will be a substantial fee increase." - Buddha

        Comment

        Working...