apache service :php exec() not working

Problems with the Windows version of XAMPP, questions, comments, and anything related.

apache service :php exec() not working

Postby spacewalker » 23. April 2014 07:45

Hello,

I'm running xampp 1.8.3 on a Windows Server 2008R2 machine.
I have connfigured apache to run as a service and I use (for testing) the local Administrator as service account.

My problem is:
The PHP function exec, system, passthru don't work correctly:
If I start "7zip.exe" using exec() I get Errorcode 1 and 7ZIP stops.
According to 7ZIP homepage the errorcode 1 could mean that a file is locked - but I dont think this is the case here because:

When running apache NOT as a service, everything works OK

The 7zip command has no GUI, it's just a commandline that I try to execute, something like:
7z a -tzip -mem=AES256 -p123 -mx0 "C:/xampp/htdocs/users/user1/test.zip" "C:/xampp/htdocs/users/user1/test.txt"

Is there a way to use exec() or passthru() together with 7zip when running apache as a service?
spacewalker
 
Posts: 13
Joined: 25. July 2013 09:46
Operating System: Windows 2008R2

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 84 guests