Solved

php exec under IIS?

Posted on 2008-10-18
6
696 Views
Last Modified: 2013-12-13
Hello,

When I try to run file 1.php with code

<?
  exec("lame.exe -m m -b 16 --resample 22.050 1.mp3 2.mp3");
?>

On my local machine (my machine use apache as web server) it works fine, and create second file.

When I try to run same code on server which running IIS 6 (on windows 2003 platform) it doesn't  work.

Does anyone know how to solve this problem?
0
Comment
Question by:dctengineer
  • 4
  • 2
6 Comments
 
LVL 7

Expert Comment

by:pr0t0c0l12
ID: 22748576
a couple of things.  Make sure that in the properties of IIS you have allowed 1.asp as a recognized page. Meaning that index.html, index.htm, default.php and some other ones are allowed.  

Please go to your web properties, and then add 1.asp to be allowed to run.  If this doesn't work for you...

Try allowind active server pages to run. It is a setting in the IIS menu:
To enable Active Server Pages you will do the following:

1. Go into Internet Information Services

2. Select Web Service Extensions

3. Select "allow" for Active Server Pages
0
 
LVL 7

Expert Comment

by:pr0t0c0l12
ID: 22748580
There is a better tutorial to show you how to run active server pages here.

http://msdn.microsoft.com/en-us/library/ms972337.aspx
0
 

Author Comment

by:dctengineer
ID: 22748599
I have problem with executing .exe files from PHP, not ASP.
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 7

Expert Comment

by:pr0t0c0l12
ID: 22749203
0
 
LVL 7

Assisted Solution

by:pr0t0c0l12
pr0t0c0l12 earned 100 total points
ID: 22754140
dctengineer this might help you...

http://www.php.net/manual/en/ref.exec.php
0
 

Accepted Solution

by:
dctengineer earned 0 total points
ID: 22834027
Problem resolved by adding rights for appropriate usarname to cmd.exe
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question