Solved

php exec under IIS?

Posted on 2008-10-18
6
676 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
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now