php-install Digest 21 Jan 2002 05:44:51 -0000 Issue 660
Topics (messages 5638 through 5641):
Re: PHP path shown on browser
5638 by: Tony
How to disable internal functions like chown, chmod, exec, passthru.
5639 by: Frederic Trudeau
APXS runs empty on install
5640 by: John Z
5641 by: John Z
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
I put the binary out side of the web tree becasue i want to enhance the
security.
"Steven Cayford" <[EMAIL PROTECTED]>
???????:[EMAIL PROTECTED]
> I don't know if this is exactly the problem but check out
> http://www.php.net/manual/en/security.cgi-bin.php
>
> Under case 4 at the bottom it has a referce to a compile time option
> --enable-discard-path which sounds like what you're looking for. Or else
> put the binary in your cgi-bin directory?
>
> -Steve
>
> On 2002.01.20 06:14:16 -0600 Tony wrote:
> > FYI
> >
> > The version of my PHP is 4.1.1
> >
> > "Tony" <[EMAIL PROTECTED]> 撰寫於郵件新聞
> > :[EMAIL PROTECTED]
> > > I have fixed the problem. The problem came out because PHP cannot
> > access
> > > php.ini. "#!/usr/local/bin/php" will disappear once PHP can read the
> > > doc_root in php.ini.
> > >
> > > However, i got another problem. If i run a problem that involve many
> > php
> > > files, many "#!/usr/local/bin/php" will appear on the browser. If
works
> > fine
> > > if the program is just a php file.
> > >
> > > For example :
> > > Case I
> > > ----------------------------
> > > #!/usr/local/bin/php
> > > <?
> > > print "Hello World";
> > > ?>
> > > -----------------------------
> > > It works fine.
> > >
> > > Case II
> > > ---- index.php ------------------
> > > #!/usr/local/bin/php
> > > <?php
> > > echo "Hello World!";
> > > require("config.php");
> > > echo "Hello World?";
> > > ?>
> > > ----- config.php ---------------------
> > > #!/usr/local/bin/php
> > > <?php
> > > echo "In configure file";
> > > .....
> > > ?>
> > > -----------------------------------
> > > The result is
> > >
> > > Hello World!
> > > #!/usr/local/bin/php
> > > In configure file
> > > Hello World?
> > >
> > > i know the reason. PHP treat "#!/usr/local/bin/php" in config.php as
> > html.
> > > Simply remove "#!/usr/local/bin/php" in config.php can fix the
problem.
> > > However, it is very time-consuming to find out which files should take
> > away
> > > the line.
> > >
> > > Does someone know how to modify the source code so that
> > > "#!/usr/local/bin/php" will be ignored or the lines starting with "#"
> > will
> > > be treated as commend.
> > >
> > > If you have no time to tell me the step, just tell me what file I
> > should
> > > modify or give me some hints. Thanks
> > >
> > >
> > > "Tony" <[EMAIL PROTECTED]> 撰寫於郵件新聞
> > > :[EMAIL PROTECTED]
> > > > Hi all,
> > > >
> > > > I got a problem when i run php as a CGI binary.
> > > > I wrote a php script as follow
> > > >
> > > > #!/usr/local/bin/php
> > > > <?
> > > > print "Hello World";
> > > > ?>
> > > >
> > > > however, i got the following result when i called it from browser
> > > >
> > > > #!/usr/local/bin/php
> > > > Hello World
> > > >
> > > > The path of PHP is always shown at the top of the browser.
> > > >
> > > > Does anyone know the solution?
> > > >
> > > > Thanks
> > > > Tony.
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
> >
> > --
> > PHP Install Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
--- End Message ---
--- Begin Message ---
I would like to disable those 'potentially' dangerous functions on my
server ... I can I manage to do that, other then manually edit de C code ?
Thanks
Frederic Trudeau
[A]dvanced [S]upport [A]gent
Colocation/Customer Support Agent
CAM Internet -> http://www.cam.org
"My God ! It's full of stars"
--- End Message ---
--- Begin Message ---
Ok, what gives? I'm trying to build PHP 4.4.1 to upgrade from 4.0.4, which
was working fine.
RedHat 7.1, Apache 1.3.19, modules supported
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql
<snip>
checking for pthreads_cflags... -pthread
checking for pthreads_lib...
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS...
Sorry, I was not able to successfully run APXS. Possible reasons:
1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
The output of /usr/local/apache/bin/apxs follows
Usage: apxs -g [-S <var>=<val>] -n <modname>
apxs -q [-S <var>=<val>] <query> ...
apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
[-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
[-Wl,<flags>] <files> ...
apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
configure: error: Aborting
--- End Message ---
--- Begin Message ---
Ok, what gives? I'm trying to build PHP 4.4.1 to upgrade from 4.0.4, which
was working fine.
RedHat 7.1, Apache 1.3.19, modules supported
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql
<snip>
checking for pthreads_cflags... -pthread
checking for pthreads_lib...
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS...
Sorry, I was not able to successfully run APXS. Possible reasons:
1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
The output of /usr/local/apache/bin/apxs follows
Usage: apxs -g [-S <var>=<val>] -n <modname>
apxs -q [-S <var>=<val>] <query> ...
apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
[-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
[-Wl,<flags>] <files> ...
apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
configure: error: Aborting
--- End Message ---