Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 915527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:54:09+00:00 2026-05-15T17:54:09+00:00

Trying to get a simple test perl script working. Have the following files/folder structure

  • 0

Trying to get a simple test perl script working. Have the following files/folder structure on a shared hosting service:

~/public_html/

  • .htaccess

~/public_html/lookup Permissions: “drwxrwxrwx 2 myusername myusername”

  • .htaccess
  • lookup.pl* Permissions: “-rwxr-xr-x myusername myusername”

The first .htaccess contains:

# disable directory browsing
Options All -Indexes

RewriteEngine on
RewriteBase /
RewriteRule ^(r)$ $1/ [R]
RewriteRule ^(r)/(.*)(\.[a-z]+)$ redirect.php?$1 [L]
RewriteRule ^(r)/(.*)$ redirect.php?$1 [L]

The second .htaccess contains:

RewriteEngine On
RewriteBase /lookup

RewriteCond %{REQUEST_URI} !^/lookup/lookup.pl [NC]
RewriteCond %{REQUEST_URI} !\.(css|png|jpg|gif)$ [NC]
RewriteRule ^(.*)$ lookup.pl/$1 [QSA,NC]

But direct access to: http://www.mysite.com/lookup/lookup.pl does not work and shows a “500 Internal Server Error”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T17:54:10+00:00Added an answer on May 15, 2026 at 5:54 pm

    Just a rough guess, because I don’t know your complete configuration: Are you running the site under suEXEC (having a VirtualHost with User or Group directives in it)?

    In that case you cannot run the script because the directory it’s stored in is world-writable, which suEXEC does not like, and no error message is shown in the error_log (as Mike pointed out, the error message you provided does not relate to the real error, but to an error presenting a correct error page to you), but in the suexec_log which most people normally do not consult.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So i am trying to get a simple system working where i have an
I have been trying to get a simple networking test program to run with
I'm just trying to get a simple test app working with AlarmManager. public class
When trying to build a simple test program that uses atomic operations, I get
I'm trying to make a very simple OSGi test but I can't get it
I'm trying to get a simple winsock program working, so I create my socket
I'm trying to get a simple socket.io server running: Client: <script src=http://www.my-server.com:8080/socket.io/socket.io.js></script> var socket
I'm trying to get a simple example working with GCDAsyncSocket, and am discovering that
I have some simple test code which I am trying to generate AVX optimized
I'm trying to get a simple test going with QUnit but for some reason

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.