|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23112 exec() not allowed for directories outside /cgi-bin
Submitted: 2003-04-08 07:17 UTC Modified: 2003-04-14 09:14 UTC
From: jlg at huelladigital dot net Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 4.3.2RC1 OS: Linux 2.4.18
Private report: No CVE-ID: None
 [2003-04-08 07:17 UTC] jlg at huelladigital dot net
I am running php cgi in /usr/local/bin and my scripts are in /cgi-bin. Combining #!/usr/local/bin/php, chmod's and apache directives AllowExecCGI this works fine; but when I try to exec() a program anywhere outside /cgi-bin it does nothing. Is it a matter of PHP or Apache?

./configure --with-mysql --enable-ftp --enable-sockets --with-ncurses


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-14 09:14 UTC]
This has nothing to do with PHP
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu May 13 19:01:23 2021 UTC