LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2014, 11:30 PM   #16
zak100
Member
 
Registered: Jul 2009
Posts: 262

Original Poster
Rep: Reputation: 2

Hi,
I cant run test:
Code:
[root@localhost www]# ls
cgi-bin  html  test
[root@localhost www]# cat test
qqqqqqqqqqqqqqqqqq
qqqqqqqqqqqqqqq
wwwwwwwwwwwwww
wwwwwwwwwwww
wwwwwwwwwwwwww
wwwwwwwwwwwww
[root@localhost www]# ls -l test
-rw-r--r--. 1 root root 92 Oct  3 02:38 test
[root@localhost www]# chmod 755 test
[root@localhost www]# ls -l
total 16
drwxrwxr-x+ 2 root root 4096 Oct 15 06:12 cgi-bin
drwxr-xr-x. 2 root root 4096 Jul 23 06:31 html
-rwxr-xr-x. 1 root root   92 Oct  3 02:38 test
[root@localhost www]# ls -Z
drwxrwxr-x+ root root system_u:object_r:httpd_sys_script_exec_t:s0 cgi-bin
drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 html
-rwxr-xr-x. root root unconfined_u:object_r:httpd_sys_content_t:s0 test
[root@localhost www]# restorecon -R public_html
restorecon:  lstat(public_html) failed:  No such file or directory
[root@localhost www]# ls
cgi-bin  html  test
[root@localhost www]# cd cgi-bin
[root@localhost cgi-bin]# ls -Z
-rwxr-xr-x. root root unconfined_u:object_r:httpd_sys_script_exec_t:s0 first.pl
-rwxr-xr-x. root root unconfined_u:object_r:httpd_sys_script_exec_t:s0 hello.pl
[root@localhost cgi-bin]#
I am getting following error:
Code:
Not Found

The requested URL /test was not found on this server.
However, i can run my cgi-script first.pl. Please guide how to run soap::lit program stored in my cgi-bin directory.

Zulfi.
 
Old 10-21-2014, 11:29 AM   #17
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
I think you should start another thread with title something like: "How to setup cgi-bin in Apache with SELinux" as this is no longer problem with SOAP program.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SOAP-Lite installation for Fedora 20 zak100 Linux - Newbie 1 09-15-2014 02:06 AM
[SOLVED] Problem with executing first cgi program zak100 Linux - Newbie 5 10-03-2013 04:11 AM
[SOLVED] perl soap::lite and wsdl error Boring Programming 11 11-17-2010 02:29 AM
[SOLVED] problem regarding executing c program in ubuntu gerry_bertier Linux - Newbie 6 10-15-2010 07:44 AM
@INC perl SOAP ::Lite Peter Shepard Red Hat 1 09-27-2005 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration