Jump to content

Recommended Posts

Posted (edited)

Hello,

 

I need to move my site from powweb, (been there two years and hated

every day of it), but all my handwritten perl cgi's contain file paths to dirs

located above the cgi-bin dir, such as:

"../htdocs/filename.html"

"../data/blah.db".

 

Q: What would be the path to my htdocs dir and cgi-bin dir.

 

Or, more simply, is the cgi-gin located *inside* the htdocs dir?

 

Thank you,

Bompa

 

PS:

My eyes are bloodshot from reading these forums, (over an hour), yet I have

still not found the info I need. One post I did stumble accross suggested a

re-organization of the forum and I second that motion.

 

Like navigation on a web site, a forum should be organized for a newcomer

and we should never think: "once they use it, they'll figure it out".

Edited by Bompa
Posted

Bompa,

 

Welcome to the forums. The cgi-bin directory is located in the root directory. I am not sure of htdocs as I do not have that folder in my file system. As for the forums, I do not believe that question has been asked before and therefore would not be found. Granted, we only have a little over 6,000 registered users on this forum but I think that the structure is laid out relatively well.

 

Then again, I have been here over two years so maybe it is just familiar to me. Even at that it was pretty easy to find what to post and where. Most new users seem to be able to find what they need and post in the right place, otherwise there would be many more requests to redo the site.

Posted (edited)
Bompa,

 

Welcome to the forums.  The cgi-bin directory is located in the root directory.  I am not sure of htdocs as I do not have that folder in my file system.  ...

 

 

Rob, thank you.

 

When I said htdocs, I meant whatever dir contains the html files for

the site. Anyways, I think you answered my question.

 

 

thank you

Bompa

Edited by Bompa
Posted

The public_html folder is the "htdocs" directory. The cgi-bin folder is inside of it. The absolute path would be /home/cpanelusername/public_html/cgi-bin/.

Posted
The public_html folder is the "htdocs" directory. The cgi-bin folder is inside of it. The absolute path would be /home/cpanelusername/public_html/cgi-bin/.

 

aHA!

 

That's what I was afraid of. :blush:

Posted

Also note that perl scripts will run outside of the cgi-bin folder and that any subdomains will also have a cgi-bin folder created in the subdomain folder.

Posted
Also note that perl scripts will run outside of the cgi-bin folder...

 

:D Does that mean I would be able to create a new cgi-bin dir at the same

level as the public_html dir and run my scripts from there?

 

 

Bompa

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...