Re: (0/T) executeing script below public
| From: | Chris Shiflett | Date: | Fri, 12 Dec 2003 22:20:41 +0000 |
| Subject: | Re: (0/T) executeing script below public | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172609@lists.php.net to get a copy of this message | ||
--- Ryan A <ryan@coinpass.com> wrote:
> Am a bit puzzled here, we have to run a script to start/stop a
> server....but we have to run the script below the public folder!
> this is our structure /blah/theServer/public_html/
> the script is located in /blah/theServer/
For future reference, the script in question is in fact not "below"
(under) document root. In fact, it is quite the opposite; it is outside of
document root.
The only things that you have to have under document root are those things
that need to be referenced via a URL. That's it.
> I noticed one funny thing about this script, it starts with: #!/bin/sh
> right on top but does not have a file extention...what kind of a file
> is this?
A shell script.
> According to the documentation the script has to be executed like so
> <scriptname> start
> (or)
> <scriptname> stop
>
> How do I do that?
If the script is named foo, type this from the directory where it is
located:
./foo start
Hope that helps.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security Handbook
Coming mid-2004
HTTP Developer's Handbook
http://httphandbook.org/