Re: Writing scripts that don't run on the web

From: Date: Thu, 21 Dec 2000 20:42:11 +0000
Subject: Re: Writing scripts that don't run on the web
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-31467@lists.php.net to get a copy of this message
On Thu, 21 Dec 2000, Tom Harris wrote: > This is probably a dumb question. > > I've been told it's possible to write a php script that can be run from the > shell like a perl script. You just have to have the first line point to > where php is installed. Now I've installed PHP as an apache module on a Red > Hat 6.2 box. Is it still possible to run php scripts from the shell, if so > what would be the most likely place its installed. I have this horrible > feeling I'm going to have to re-install php in CGI mode (given the disaster > the install as module was I really don't want to try uninstall the module > and then install php in cgi mode). > No, that's not necessary. Go to the directory where you first configured / compiled PHP (assuming you still have it), edit config.nice, remove "--with-apxs=..." from it, and run the edited config.nice. Then run make and then copy the php executable to either /usr/local/bin or /usr/bin depending on your preference. -- Ignacio Vazquez-Abrams <ignacio@openservices.net>

« previous php.general (#31467) next »