Unable to set normal priority

I am trying to run a script from a php program which calls asterisk. THe script runs so far but then I get “Unable to set normal priority” and the script exits.

I have looked on the Wiki but there doesn’t seem to be any information. an anyone suggest what is causing the message and what I can do to fix the problem.

Thanks

Steven

Sorry to post a second time. Ihave been following other threads and it seemed that running AGI_AsteriskManager.php might be the answer to my problem. However, when I try to run that I get an error:

Unable to connect to manager localhost:5038 (13) Permission denied

My config files are as follows:

<manager.conf>

[general]
enabled = yes
port = 5038
bindaddr = 127.0.0.1

[steve]
secret = mysecret
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user

<phpagi.conf>

[phpagi]
debug=true
error_handler=true
;admin=errors@mydomain.com
hostname=myserver
tempdir=/var/spool/asterisk/tmp/

[asmanager]
server=localhost
port=5038
username=steve
secret=mysecret

[fastagi]
setuid=true
basedir=/var/lib/asterisk/agi-bin/

[festival]
text2wave=/usr/bin/text2wave

[cepstral]
swift=/opt/swift/bin/swift
voice=David

I downloaded my original asterisk as an RPM (I’m running FC4) and it is version 1.0.8 running as ‘asterisk’ (apache is running as ‘asterisk’ too)

Can you help?

Steve