Thread: xinetd issue : 'failed: No such file...', but file exists
hi, i'm new in community , hope find help.
xinetd issue : xinetd won't find file exists.
storyboard :
code:ubuntu@ip-10-204-237-44:/etc/xinetd cat /etc/issue ubuntu 11.10code:ubuntu@ip-10-204-237-44:/etc/xinetd uname -r 3.0.0-23-virtualcode:ubuntu@ip-10-204-237-44:/etc/xinetd xinetd -version xinetd version 2.3.14 libwrap loadavg
code:ubuntu@ip-10-204-237-44:/etc/xinetd more /etc/xinetd.conf # simple configuration file xinetd # # defaults, , include /etc/xinetd.d/ defaults { # please note need log_type line able use log_on_success # , log_on_failure. default following : # log_type = syslog daemon info instances = 60 log_type = syslog authpriv log_on_success = host pid log_on_failure = host cps = 25 30 } includedir /etc/xinetd.dcode:ubuntu@ip-10-204-237-44:/etc/xinetd ls -la total 32 drwxr-xr-x 2 root root 4096 2013-03-19 15:04 . drwxr-xr-x 85 root root 4096 2013-03-20 06:55 .. -rw-r--r-- 1 root root 798 2013-03-19 15:18 chargen -rw-r--r-- 1 root root 660 2010-12-06 21:32 daytime -rw-r--r-- 1 root root 549 2010-12-06 21:32 discard -rw-r--r-- 1 root root 580 2010-12-06 21:32 echo -rw-r--r-- 1 root root 299 2013-03-20 11:07 fastagi -rw-r--r-- 1 root root 727 2010-12-06 21:32 timecode:ubuntu@ip-10-204-237-44:/etc/xinetd. more fastagi # default: off # description: fastagi remote agi interface service fastagi { socket_type = stream user = ubuntu group = ubuntu groups = yes server = /home/ubuntu/phpagi/phpagi-fastagi.php wait = no protocol = tcp disable = no }start xinetd :code:ubuntu@ip-10-204-237-44:/etc/xinetd ls -la /home/ubuntu/phpagi/ total 152 drwxrwxr-x 4 ubuntu ubuntu 4096 2013-03-19 16:30 . drwxr-xr-x 8 ubuntu ubuntu 4096 2013-03-19 20:44 .. drwxrwxr-x 6 ubuntu ubuntu 4096 2010-09-30 09:54 api-docs -rw-rw-r-- 1 ubuntu ubuntu 541 2013-03-19 18:58 a_sample.php -rw-rw-r-- 1 ubuntu ubuntu 24389 2010-09-30 09:54 copying -rwxrwxrwx 1 ubuntu ubuntu 0 2013-03-19 16:30 data.txt drwxrwxr-x 2 ubuntu ubuntu 4096 2010-09-30 09:54 docs -rwxrwxr-x 1 ubuntu ubuntu 239 2010-09-30 09:54 mkdocs.php -rw-rw-r-- 1 ubuntu ubuntu 25079 2010-09-30 09:54 phpagi-asmanager.php -rwxrwxrwx 1 ubuntu ubuntu 2324 2013-03-20 10:15 phpagi-fastagi.php -rw-rw-r-- 1 ubuntu ubuntu 67704 2013-03-19 20:50 phpagi.php -rw-rw-r-- 1 ubuntu ubuntu 1641 2010-09-30 09:54 readme
client requestcode:ubuntu@ip-10-204-237-44:/etc/xinetd sudo xinetd -d service defaults instances = 60 cps = max conn:25 wait:30 bind = addresses. from: sites no access: no blocked sites logging syslog. facility = authpriv, level = info log_on_success flags = host pid log_on_failure flags = host service configuration: fastagi id = fastagi flags = ipv4 socket_type = stream protocol (name,number) = (tcp,6) port = 4573 wait = no user = 1000 group = 1000 groups = yes per_source = -1 bind = addresses. server = /home/ubuntu/phpagi/phpagi-fastagi.php server argv = phpagi-fastagi.php from: sites no access: no blocked sites logging syslog. facility = authpriv, level = info log_on_success flags = host pid log_on_failure flags = host 13/3/20@11:51:19: debug: 12135 {cnf_start_********** started service: fastagi 13/3/20@11:51:19: debug: 12135 {cnf_start_********** mask_max = 6, services_started = 1 13/3/20@11:51:19: notice: 12135 {main} xinetd version 2.3.14 started libwrap loadavg options compiled in. 13/3/20@11:51:19: notice: 12135 {main} started working: 1 available service 13/3/20@11:51:19: debug: 12135 {main_loop} active_services = 1
as see xineted don't find file exists.code:13/3/20@11:52:07: debug: 12135 {main_loop} select returned 1 13/3/20@11:52:07: debug: 12135 {server_start} starting service fastagi 13/3/20@11:52:07: debug: 12135 {main_loop} active_services = 1 13/3/20@11:52:07: debug: 12136 {exec_server} duping 7 13/3/20@11:52:07: error: 12136 {exec_server} execv( /home/ubuntu/phpagi/phpagi-fastagi.php ) failed: no such file or directory (errno = 2) 13/3/20@11:52:07: debug: 12135 {main_loop} active_services = 1 13/3/20@11:52:07: debug: 12135 {main_loop} select returned 1 13/3/20@11:52:07: debug: 12135 {check_pipe} got signal 17 (child exited) 13/3/20@11:52:07: debug: 12135 {child_exit} waitpid returned = 12136 13/3/20@11:52:07: debug: 12135 {server_end} fastagi server 12136 exited 13/3/20@11:52:07: info: 12135 {conn_free} freeing connection 13/3/20@11:52:07: debug: 12135 {child_exit} waitpid returned = -1 13/3/20@11:52:07: debug: 12135 {main_loop} active_services = 1
idea?
does first line in /home/ubuntu/phpagi/phpagi-fastagi.php point php not exist?
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] xinetd issue : 'failed: No such file...', but file exists
Ubuntu
Comments
Post a Comment