Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

php exec under IIS?

Posted on 2008-10-18
6
Medium Priority
?
722 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 400 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

916 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