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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
47 - 32 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 15:01:28 2024 UTC