{"id":282,"date":"2010-11-15T18:28:13","date_gmt":"2010-11-15T17:28:13","guid":{"rendered":"https:\/\/www.uk-cheapest.co.uk\/support\/?p=282"},"modified":"2011-11-15T19:22:13","modified_gmt":"2011-11-15T18:22:13","slug":"how-do-i-install-and-run-a-cgi-or-perl-script","status":"publish","type":"post","link":"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-install-and-run-a-cgi-or-perl-script\/","title":{"rendered":"How do I install and run a CGI or Perl script?"},"content":{"rendered":"<p>CGI \/ Perl scripting support is not included with our Budget hosting plan, however it is included with all our other hosting plans.<\/p>\n<p>To install a CGI \/ Perl script within Plesk, simply upload the script to your cgi-bin folder, ensure that he script permissions are set to 755 and execute the script in your browser. If your script is valid and the file permissions are correct then your script will run.<\/p>\n<p><span style=\"text-decoration: underline;\">CGI \/ Perl commonly asked questions:<\/span><\/p>\n<p><strong>1.<\/strong>\u00a0What is my path to perl?<\/p>\n<p>#!\/usr\/bin\/perl<\/p>\n<p><strong>2.<\/strong>\u00a0What is my path to sendmail?<\/p>\n<p>\/usr\/sbin\/sendmail<\/p>\n<p><strong>3.<\/strong>\u00a0May I run custom CGI scripts?<\/p>\n<p>Yes, you may.<\/p>\n<p><strong>4.<\/strong>\u00a0Can I use perl to talk to my MySQL database?<\/p>\n<p>Yes, as long as you have a hosting package that includes CGI \/ Perl support.<\/p>\n<p><strong>5.<\/strong>\u00a0Can I use PHP to connect to my MySQL database?<\/p>\n<p>Yes, you may.<\/p>\n<p><strong>6.<\/strong>\u00a0What directory must my Perl files reside in?<\/p>\n<p>CGI or Perl scripts must reside in your cgi-bin directory.<\/p>\n<p><strong>7.<\/strong>\u00a0What is the absolute path to my cgi-bin?<\/p>\n<p>\/var\/www\/vhosts\/yourdomain.com\/cgi-bin<\/p>\n<p><strong>8.<\/strong>\u00a0How do I reach them from a browser?<\/p>\n<p><a href=\"http:\/\/www.yourdomain.com\/cgi-bin\/filename\" target=\"_blank\">http:\/\/www.yourdomain.com\/cgi-bin\/filename<\/a><\/p>\n<p><strong>9.<\/strong>\u00a0What directory must my PHP files reside in?<\/p>\n<p>PHP files must reside in your html directory<\/p>\n<p><strong>10.<\/strong>\u00a0What is the absolute path to my html directory?<\/p>\n<p>\/var\/www\/vhosts\/yourdomain.com\/httpdocs<\/p>\n<p><strong>11.<\/strong>\u00a0How do I reach them from a browser?<\/p>\n<p><a href=\"http:\/\/www.yourdomain.com\/filename\" target=\"_blank\">http:\/\/www.yourdomain.com\/filename<\/a><\/p>\n<p><strong>12.<\/strong>\u00a0I keep getting internal server error from my Perl script. What does this mean?<\/p>\n<p>Make sure your script was uploaded in ASCII<br \/>\nMake sure the permissions on the files are 755<br \/>\nMake sure the top line of your scripts reads #!\/usr\/bin\/perl<\/p>\n<p>For tutorials and help guides on all aspects related to your hosting account please follow the link below:<\/p>\n<p><a href=\"https:\/\/www.uk-cheapest.co.uk\/help-web-hosting.php?ref=esupport\" target=\"_blank\"><strong>Web Hosting Help Centre<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CGI \/ Perl scripting support is not included with our Budget hosting plan, however it is included with all our other hosting plans. To install a CGI \/ Perl script within Plesk, simply upload the script to your cgi-bin folder, ensure that he script permissions are set to 755 and execute the script in your &#8230; <a title=\"How do I install and run a CGI or Perl script?\" class=\"read-more\" href=\"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-install-and-run-a-cgi-or-perl-script\/\" aria-label=\"Read more about How do I install and run a CGI or Perl script?\">Read more&#8230;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"generate_page_header":"","footnotes":""},"categories":[93],"tags":[139,140,141],"class_list":["post-282","post","type-post","status-publish","format-standard","hentry","category-knowledgebase","tag-cgi","tag-perl","tag-scripts"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How do I install and run a CGI or Perl script? - UK-Cheapest.co.uk<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-install-and-run-a-cgi-or-perl-script\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How do I install and run a CGI or Perl script? - UK-Cheapest.co.uk\" \/>\n<meta property=\"og:description\" content=\"CGI \/ Perl scripting support is not included with our Budget hosting plan, however it is included with all our other hosting plans. To install a CGI \/ Perl script within Plesk, simply upload the script to your cgi-bin folder, ensure that he script permissions are set to 755 and execute the script in your ... Read more...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-install-and-run-a-cgi-or-perl-script\/\" \/>\n<meta property=\"og:site_name\" content=\"UK-Cheapest.co.uk\" \/>\n<meta property=\"article:published_time\" content=\"2010-11-15T17:28:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2011-11-15T18:22:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/IMG_3064.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"768\" \/>\n\t<meta property=\"og:image:height\" content=\"439\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"UKC\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ukchelpdesk\" \/>\n<meta name=\"twitter:site\" content=\"@ukchelpdesk\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"UKC\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-do-i-install-and-run-a-cgi-or-perl-script\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-do-i-install-and-run-a-cgi-or-perl-script\\\/\"},\"author\":{\"name\":\"UKC\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#\\\/schema\\\/person\\\/135cf981b8a3a120603fcbc027eed746\"},\"headline\":\"How do I install and run a CGI or Perl script?\",\"datePublished\":\"2010-11-15T17:28:13+00:00\",\"dateModified\":\"2011-11-15T18:22:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-do-i-install-and-run-a-cgi-or-perl-script\\\/\"},\"wordCount\":303,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#organization\"},\"keywords\":[\"cgi\",\"perl\",\"scripts\"],\"articleSection\":[\"Knowledgebase\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-do-i-install-and-run-a-cgi-or-perl-script\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-do-i-install-and-run-a-cgi-or-perl-script\\\/\",\"url\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-do-i-install-and-run-a-cgi-or-perl-script\\\/\",\"name\":\"How do I install and run a CGI or Perl script? - UK-Cheapest.co.uk\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#website\"},\"datePublished\":\"2010-11-15T17:28:13+00:00\",\"dateModified\":\"2011-11-15T18:22:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-do-i-install-and-run-a-cgi-or-perl-script\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-do-i-install-and-run-a-cgi-or-perl-script\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/how-do-i-install-and-run-a-cgi-or-perl-script\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"UK-Cheapest.co.uk\",\"item\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How do I install and run a CGI or Perl script?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/\",\"name\":\"UK-Cheapest.co.uk\",\"description\":\"Cheap Domain Names, Web Hosting, Site Builder &amp; Web Security\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#organization\",\"name\":\"UKC\",\"url\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/Screenshot-2023-12-14-at-17.40.07.png\",\"contentUrl\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/Screenshot-2023-12-14-at-17.40.07.png\",\"width\":217,\"height\":55,\"caption\":\"UKC\"},\"image\":{\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/ukchelpdesk\",\"https:\\\/\\\/www.instagram.com\\\/ukc_hosting\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/#\\\/schema\\\/person\\\/135cf981b8a3a120603fcbc027eed746\",\"name\":\"UKC\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/afbfe91204852778e8698de79f854348bec9aea508bef650c084d0c6daf2588d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/afbfe91204852778e8698de79f854348bec9aea508bef650c084d0c6daf2588d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/afbfe91204852778e8698de79f854348bec9aea508bef650c084d0c6daf2588d?s=96&d=mm&r=g\",\"caption\":\"UKC\"},\"sameAs\":[\"https:\\\/\\\/www.uk-cheapest.co.uk\"],\"url\":\"https:\\\/\\\/www.uk-cheapest.co.uk\\\/support\\\/author\\\/colin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How do I install and run a CGI or Perl script? - UK-Cheapest.co.uk","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-install-and-run-a-cgi-or-perl-script\/","og_locale":"en_GB","og_type":"article","og_title":"How do I install and run a CGI or Perl script? - UK-Cheapest.co.uk","og_description":"CGI \/ Perl scripting support is not included with our Budget hosting plan, however it is included with all our other hosting plans. To install a CGI \/ Perl script within Plesk, simply upload the script to your cgi-bin folder, ensure that he script permissions are set to 755 and execute the script in your ... Read more...","og_url":"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-install-and-run-a-cgi-or-perl-script\/","og_site_name":"UK-Cheapest.co.uk","article_published_time":"2010-11-15T17:28:13+00:00","article_modified_time":"2011-11-15T18:22:13+00:00","og_image":[{"width":768,"height":439,"url":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/IMG_3064.jpeg","type":"image\/jpeg"}],"author":"UKC","twitter_card":"summary_large_image","twitter_creator":"@ukchelpdesk","twitter_site":"@ukchelpdesk","twitter_misc":{"Written by":"UKC","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-install-and-run-a-cgi-or-perl-script\/#article","isPartOf":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-install-and-run-a-cgi-or-perl-script\/"},"author":{"name":"UKC","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/person\/135cf981b8a3a120603fcbc027eed746"},"headline":"How do I install and run a CGI or Perl script?","datePublished":"2010-11-15T17:28:13+00:00","dateModified":"2011-11-15T18:22:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-install-and-run-a-cgi-or-perl-script\/"},"wordCount":303,"commentCount":0,"publisher":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#organization"},"keywords":["cgi","perl","scripts"],"articleSection":["Knowledgebase"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-install-and-run-a-cgi-or-perl-script\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-install-and-run-a-cgi-or-perl-script\/","url":"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-install-and-run-a-cgi-or-perl-script\/","name":"How do I install and run a CGI or Perl script? - UK-Cheapest.co.uk","isPartOf":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#website"},"datePublished":"2010-11-15T17:28:13+00:00","dateModified":"2011-11-15T18:22:13+00:00","breadcrumb":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-install-and-run-a-cgi-or-perl-script\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-install-and-run-a-cgi-or-perl-script\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/how-do-i-install-and-run-a-cgi-or-perl-script\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"UK-Cheapest.co.uk","item":"https:\/\/www.uk-cheapest.co.uk\/support\/"},{"@type":"ListItem","position":2,"name":"How do I install and run a CGI or Perl script?"}]},{"@type":"WebSite","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#website","url":"https:\/\/www.uk-cheapest.co.uk\/support\/","name":"UK-Cheapest.co.uk","description":"Cheap Domain Names, Web Hosting, Site Builder &amp; Web Security","publisher":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.uk-cheapest.co.uk\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#organization","name":"UKC","url":"https:\/\/www.uk-cheapest.co.uk\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-14-at-17.40.07.png","contentUrl":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-14-at-17.40.07.png","width":217,"height":55,"caption":"UKC"},"image":{"@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/ukchelpdesk","https:\/\/www.instagram.com\/ukc_hosting\/"]},{"@type":"Person","@id":"https:\/\/www.uk-cheapest.co.uk\/support\/#\/schema\/person\/135cf981b8a3a120603fcbc027eed746","name":"UKC","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/afbfe91204852778e8698de79f854348bec9aea508bef650c084d0c6daf2588d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/afbfe91204852778e8698de79f854348bec9aea508bef650c084d0c6daf2588d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/afbfe91204852778e8698de79f854348bec9aea508bef650c084d0c6daf2588d?s=96&d=mm&r=g","caption":"UKC"},"sameAs":["https:\/\/www.uk-cheapest.co.uk"],"url":"https:\/\/www.uk-cheapest.co.uk\/support\/author\/colin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts\/282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/comments?post=282"}],"version-history":[{"count":2,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts\/282\/revisions"}],"predecessor-version":[{"id":363,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/posts\/282\/revisions\/363"}],"wp:attachment":[{"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/media?parent=282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/categories?post=282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.uk-cheapest.co.uk\/support\/wp-json\/wp\/v2\/tags?post=282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}