Hi all I have RH6.2 running php4.0, trying to configure apache 1.3.12 to run .php files from cgi-bin directory, I just keep getting header errors. Can anyone help me configure php from cgi-bin
Thanks
If you are ftp'ing the files from a Windows machine, make sure to tranfer the files in ASCII mode. The mod version does not care, but the cgi version does. At least that has been my experience. It is worth a shot.
Hi that is not a problem for me, any code including the phpinfo() doesnt work if I try to access the file from cgi-bin directory. Uploads happen fine and otherwise but my problem is with the cgi-bin operation.
Thank you
Dear Kaushik, Can you give me details about the our system I mean the OS you are using and others. If you are using apache under linux see to it that the apache configuration file has the required LoadModule , AddType and AddModule lines added to it. You have to even have the mod_php4.o in your modules directory. If you have done all this then try this - Move your .php3 files to the html directory I mean the document root directory of the apache server and see if it works.
uday.
Kaushik
I am having exactly the same problem. When I run the script from the command line, it seems to work fine, but when I try to access it via apache, I get premature end of header errors.
Have you solved it - if so how?
Thanks,
Patrick
I believe that the cgi-bin directory will start functioning once the LoadModule, AddModule and AddType are added to the httpd.conf. But I couldnt get it going. But I ofcourse got a php-bin directory by setting alias and chmod the privileges to make the directory work almost like cgi-bin. Good luck, do let me know if you get any thing