Bompa Posted June 24, 2005 Posted June 24, 2005 (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 June 24, 2005 by Bompa Quote
TCH-Rob Posted June 24, 2005 Posted June 24, 2005 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. Quote
Bompa Posted June 25, 2005 Author Posted June 25, 2005 (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. ... <{POST_SNAPBACK}> 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 June 25, 2005 by Bompa Quote
TCH-Rick Posted June 25, 2005 Posted June 25, 2005 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/. Quote
Bompa Posted June 25, 2005 Author Posted June 25, 2005 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/. <{POST_SNAPBACK}> aHA! That's what I was afraid of. Quote
TCH-Rick Posted June 25, 2005 Posted June 25, 2005 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. Quote
Bompa Posted June 25, 2005 Author Posted June 25, 2005 Also note that perl scripts will run outside of the cgi-bin folder...<{POST_SNAPBACK}> 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.