LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-02-2012, 01:50 AM   #1
adam_1784
Member
 
Registered: Dec 2011
Posts: 41

Rep: Reputation: Disabled
suexec with mod_dir


I have enable mod_dir on my server.
It work fine for me following i had added in httpd conf:

<IfModule mod_userdir.c>

#UserDir disable
UserDir public_html

</IfModule>
<Directory /home/*/public_html>
Options Indexes Includes +FollowSymLinks +ExecCGI
AllowOverride All
Order deny,allow
Allow from all
AddHandler cgi-script .cgi .pl .plx .ppl .perl
</Directory>

I had done this settings for access:
http:\\mydomain.com\~user
It shows my user dir content. and i can run php and perl file also.
But when I access http:\\mydomain.com\demo.cgi(perlfile).
It gives me 500 internal error.
But when I run http:\\mydomain.com\~user\demo.cgi it allowed.
I want to access my perl file as http:\\mydomain.com\demo.cgi.
what more settings i have to make?
Shoud i have to add Alias?

Last edited by adam_1784; 02-02-2012 at 01:51 AM.
 
Old 02-07-2012, 11:03 PM   #2
rustek
Member
 
Registered: Jan 2010
Location: Melbourne, IA, USA
Distribution: Ubuntu
Posts: 93

Rep: Reputation: 8
What is your DocumentRoot set to?
Do you have a <Directory definition for your DocumentRoot dir?

For http:\\mydomain.com\demo.cgi
demo.cgi would need to be in your DocumentRoot dir not one of the users dirs.

You could probably symlink the DocumenRoot dir to one of the user dirs, but you still would need to have DocumentRoot defined and a <Directory setup much like the one you have for your users.
 
Old 02-22-2012, 05:07 AM   #3
adam_1784
Member
 
Registered: Dec 2011
Posts: 41

Original Poster
Rep: Reputation: Disabled
[QUOTE=rustek;4596682]What is your DocumentRoot set to?
==>> Documentroot set to /home/soft/www
Do you have a <Directory definition for your DocumentRoot dir?
yes i have.

My document root and userdir is the same
 
Old 02-22-2012, 06:13 AM   #4
rustek
Member
 
Registered: Jan 2010
Location: Melbourne, IA, USA
Distribution: Ubuntu
Posts: 93

Rep: Reputation: 8
Look at your suexec.log, it may provide some insight into the error.
 
  


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
httpd-2.2.3 | error - suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) jmahto Linux - Enterprise 3 07-14-2010 01:53 AM
suexec and suphp liang3391 Linux - Server 1 08-16-2009 06:11 PM
problem in using suexec Barq Linux - Server 0 06-15-2009 10:58 AM
Apache 2.0.52 - mod_dir ZC1 Linux - General 2 05-20-2006 10:40 AM
Apache suexec Rachel Carter Linux - Software 0 01-31-2003 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:38 PM.

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