anyone can help me with this? i had it working for a while but i was trying to run php scripts in a cgi-bin dir but it kept screwing up.
i forgot what changes i made and my backup doesnt work... argh!

hope someone out there cld help me... and anyone know how to run scripts in another dir

i am using winxp, apache 2 and php 4.3

thanks

    Are you trying to run php as cgi? or just trying to run a php file from the cgi-bin?

    to change your cgi-bin directory look for the line in php.ini that should look along the lines of

    ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/"

    change that to what ever your cgi-bin is 🙂

      are u sure i shld add that to php.ini? aint it http.conf?

      anyone cld hlp me with the starting config of php.ini??

      stevil: yes i am using php as cgi.... i keep getting the permissions error

        PHP doesn't need to be run in the CGI-BIN if you explain what your trying to do I'll be able to give you a hand.

        Also if thats the only errors your getting you may not have errors in your php.ini file or conf file.

        And yes I ment the conf file sorry, watching T.V and wasn't paying attention to what I was typing, my bad blushes

          that wld be great....

          ok i jus started on php..

          what i wanted to do is to store or my scripts in a dir which is solely for scripts. i wanted to separate the html files into the doc root. apparently i did wat you mentioned but the php scripts jus dont run.

          it onli runs when i put them in the doc root... i know its something abt the scriptalias or alias part of the http.conf...

          configuring gives me headache....😕

            PHP doesn't need to be in the CGI-BIN thats for other things such as perl. If you want to make a seperate folder just create a new one from your root directoy named "php" or something like that.

            When running files in the CGI-BIN it doesn't work the same as normal files and runs it through what ever you have setup in your conf files. This is why you'd be getting your errors 🙂

            Did you install the system yourself? if so have you change the conf file an php.ini files at all ?

              yeah i certainly did edited those files... getting irritated by the config man...

              thanks for the info man... i prefer my scripts all in one folder so that i can find them easily...

              anyway wats the difference if i run php as a mod in apache and run it as cgi?

              i know how to program but all this terms are foreign to me...

                Write a Reply...