To put PHP as script CGI Go to your httpd.conf file and comment with # the lines: LoadModule php4_module modules/libphp4.so Application/x-httpd-php .php
Then at the end of the file add this: ## BEGIN COFIGURATION PHP ScriptAlias /ph/ "Put here the full path to the directory in which is installed PHP" AddType application/x-httpd-php .php Action application/x-httpd-php /ph/php.exe ## END OF CONFIGURATION PHP Save the changes and restart Apache and try your script. ----- Original Message ----- From: "Thomas E. Dukes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 06, 2003 8:39 PM Subject: RE: PHP not working > I got this script from a tutorial on the PHP website. I was interested > in trying to learn some PHP. I can not, at this time, determine if the > syntax is correct. I assume it is because of the source from which it > came. > > What do I need to do to configure PHP as an interpreter CGI? > > TIA > > > First, recheck the sintaxis of your file .php and if it is not the > problem I sugest to configure PHP as an Interpreter CGI instead of > Module in Apache and try again. > > > ----- Original Message ----- > From: "Thomas E. Dukes" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, January 05, 2003 3:34 PM > Subject: PHP not working > > > > I'm having trouble with getting php to work. > > > > The php package is installed. I added 'LoadModule php4_module > > modules/libphp4.so' and 'AddType application/x-httpd-php .php' to my > > httpd.conf. I copied an example php file from a tutorial and it only > > outputs this: > > > > <html> > > > > <body> > > > > <?php > > > > $myvar = "Hello World"; > > > > echo $myvar; > > > > ?> > > > > </body> > > > > </html> > > > > What do I need to do to get php working properly short of downloading > > source and recompiling. I really don't want to do this unless > > absolutely necessary because, given my luck, I'll screw everything up. > > > > TIA > > -- > > Palmetto Shopper > > http://palmettoshopper.com > > Serving all of South Carolina and beyond! > > > > > > > > -- > > redhat-list mailing list > > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe > > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe > https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list