TechDex Development & Solutions
live minder, lead generation, trend analysis, market research, internet marketing, seo, social media, keyword analysis


RSS Feed| Blog Home | Log In | View As Guest  | Archives |

Blog Search

How To Add A Custom CGI BIN Directory In Parallels

How To Add A Custom CGI BIN Directory In Parallels
Posted by Dexter Nelson: Tuesday, November 19, 2013 (3:09 PM)

Good afternoon!

Today I have something I wanted to share really quickly.


I've noticed that a lot of people are wondering how you can set a custom cgi-bin or script directory if you're using Parallels Panel, especially since they limit the choice to the document root of the domain or the root directory of the webspace.


This is how I did it.


I have a huge application on one of my websites and scripts needed to be called differently (mostly because of the SSL certificate - I didn't want to buy a second, when i could solve the problem with a simple line of text).


So I have http://music.echoingwalls.com/cgi-bin/musicsense.cgi, however I also needed https://echoingwalls.com/music-sense/cgi-bin/musicsense.cgi to work, (you can click on them - they work now).


Note: Adding the sub domain was a recent addition when i created a member center and wanted to bring a measure of uniformity for sessions.


Continuing on, I had the same problem as most people did - I couldn't add a custom cgi-bin directory (ScriptAlias) within Parallels and many of the solutions I found simply didn't work; so I went back to basics.


In Parallels, the file you need to edit is /etc/httpd/conf/httpd.conf (forget all of the stuff you are told about going to the website root - I've tried and they don't work - parallels either ignored the new files or overwrote the changes).


After you open the file, scroll down to the line that defines the default ScriptAlias. It wil look something like this,

ScriptAlias /cgi-bin/ "/path/to/cgi-bin/"


What you want to do is add your own ScriptAlias below it that line, (keeping in mind that the name of the directory is mapped to each domain already and they have to be unique).

ScriptAlias /directory/cgi-bin/ "/path/to/your/custom/cgi-bin/"


Save the file, then restart httpd to commit the changes.

/etc/init.d/httpd restart


Next you want to make sure the folder itself and all files in it are chmod 755, because file in that directory will now be treated as executables and not documents.


If you find it's not working after this, you should enable multi in the host.conf file in the /etc/ directory (multi on).

Admin
User: Admin 
Member Since: 1/1/2009 
Number of Posts: 143 
Message Admin
--
Dexter Nelson
TechDex Development & Solutions
http://www.techdex.net

Facebook: http://www.facebook.com/dexter.nelson
Twitter: http://twitter.com/dexterwebn

Leave A Reply


Post A Comment


Most Commented Stories
  1. Windows Media Player Crashes Playing MP4 Files (Solved) (662)
  2. Saggy Pants Cost Green Day Singer His Plane Seat (183)
  3. Ounce By Ounce Gold Takes Off (166)
  4. Occupy Protesters Rally Around Wounded Iraq Vet (82)
  5. SOLVED EXE Files Wont Run Cant Run EXE Files (30)
  6. TechDex SMART Mobile Design (21)
  7. Live Minder Case Study 1 (18)
  8. TechDex DirectToDesktop direct2client technology (16)
  9. Updated How To Get Indexed in Yahoo (14)
  10. Live Minder Trend Analysis Statistics Day 4 (13)

Top 10 Stories
  1. How to Increase the WordPress Maximum Upload File Size
  2. Apple Claims Their New iPad Pro Will Replace The Laptop
  3. Secunia PSI 3.0 Stuck on Determining Which Files to Scan SOLVED
  4. How To Successfully Remove Rombertik Malware
  5. Using Dark Post Profits 2.0 To Increase Software Sales
  6. Best Free Ad Blocking Software Review
  7. Free Commercial Real Estate Service And Real Estate Script
  8. Are Earthquakes Causing Global Climate Change
  9. Understanding What Caused The Border Crisis
  10. AT&T trumps Google with first gigabit internet in Raleigh




® Live Minder © TechDex Development & Solutions.
live minder, lead generation, trend analysis, market research, internet marketing, seo, social media, keyword analysis

Powered by TechDex CGI Blog.