php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jlg at huelladigital dot net
New email:
PHP Version: OS:

 

 [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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-14 09:14 UTC] rasmus@php.net
This has nothing to do with PHP
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC