{"id":71085,"date":"2020-01-09T12:56:21","date_gmt":"2020-01-09T07:26:21","guid":{"rendered":"https:\/\/www.vskills.in\/certification\/tutorial\/?p=71085"},"modified":"2024-04-12T14:22:22","modified_gmt":"2024-04-12T08:52:22","slug":"unix-non-root-installation-notes","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/unix-non-root-installation-notes\/","title":{"rendered":"UNIX (non-root) Installation Notes"},"content":{"rendered":"\n<p><strong>Introduction<\/strong><\/p>\n\n\n\n<p>If you are running a *NIX OS as non-root, either due to lack of access (web hosts, for example) or for security reasons, this will detail how to install Bugzilla on such a setup.<\/p>\n\n\n\n<p><strong>MySQL<\/strong><\/p>\n\n\n\n<p>You may have MySQL installed as root. If you&#8217;re setting up an account with a web host, a MySQL account needs to be set up for you. From there, you can create the bugs account, or use the account given to you.<\/p>\n\n\n\n<p>You may have problems trying to set up GRANT permissions to the database. If you&#8217;re using a web host, chances are that you have a separate database which is already locked down (or one big database with limited\/no access to the other areas), but you may want to ask your system administrator what the security settings are set to, and\/or run the GRANT command for you.<\/p>\n\n\n\n<p>Also, you will probably not be able to change the MySQL root user password (for obvious reasons), so skip that step002E<\/p>\n\n\n\n<p><strong>Running MySQL as Non-Root<\/strong><\/p>\n\n\n\n<p>The Custom Configuration Method<\/p>\n\n\n\n<p>Create a file .my.cnf in your home directory (using \/home\/foo in this example) as follows&#8230;.<\/p>\n\n\n[mysqld]\n\n\n\n<p>datadir=\/home\/foo\/mymysql<\/p>\n\n\n\n<p>socket=\/home\/foo\/mymysql\/thesock<\/p>\n\n\n\n<p>port=8081<\/p>\n\n\n[mysql]\n\n\n\n<p>socket=\/home\/foo\/mymysql\/thesock<\/p>\n\n\n\n<p>port=8081<\/p>\n\n\n[mysql.server]\n\n\n\n<p>user=mysql<\/p>\n\n\n\n<p>basedir=\/var\/lib<\/p>\n\n\n[safe_mysqld]\n\n\n\n<p>err-log=\/home\/foo\/mymysql\/the.log<\/p>\n\n\n\n<p>pid-file=\/home\/foo\/mymysql\/the.pid<\/p>\n\n\n\n<p>The Custom Built Method<\/p>\n\n\n\n<p>You can install MySQL as a not-root, if you really need to. Build it with PREFIX set to \/home\/foo\/mysql, or use pre-installed executables, specifying that you want to put all of the data files in \/home\/foo\/mysql\/data. If there is another MySQL server running on the system that you do not own, use the -P option to specify a TCP port that is not in use.<\/p>\n\n\n\n<p><strong>Starting the Server<\/strong><\/p>\n\n\n\n<p>After your mysqld program is built and any .my.cnf file is in place, you must initialize the databases (ONCE).<\/p>\n\n\n\n<p>bash$ mysql_install_db<\/p>\n\n\n\n<p>Then start the daemon with<\/p>\n\n\n\n<p>bash$ safe_mysql &amp;<\/p>\n\n\n\n<p>After you start mysqld the first time, you then connect to it as &#8220;root&#8221; and GRANT permissions to other users. (Again, the MySQL root account has nothing to do with the *NIX root account.)<\/p>\n\n\n\n<p>You will need to start the daemons yourself. You can either ask your system administrator to add them to system startup files, or add a crontab entry that runs a script to check on these daemons and restart them if needed.<\/p>\n\n\n\n<p>Do NOT run daemons or other services on a server without first consulting your system administrator! Daemons use up system resources and running one may be in violation of your terms of service for any machine on which you are a user!<\/p>\n\n\n\n<p><strong>Perl<\/strong><\/p>\n\n\n\n<p>On the extremely rare chance that you don&#8217;t have Perl on the machine, you will have to build the sources yourself. The following commands should get your system installed with your own personal version of Perl:<\/p>\n\n\n\n<p>bash$ wget http:\/\/perl.org\/CPAN\/src\/stable.tar.gz<\/p>\n\n\n\n<p>bash$ tar zvxf stable.tar.gz<\/p>\n\n\n\n<p>bash$ cd perl-5.8.1<\/p>\n\n\n\n<p>bash$ sh Configure -de -Dprefix=\/home\/foo\/perl<\/p>\n\n\n\n<p>bash$ make &amp;&amp; make test &amp;&amp; make install<\/p>\n\n\n\n<p>Once you have Perl installed into a directory (probably in ~\/perl\/bin), you will need to install the Perl Modules, described below.<\/p>\n\n\n\n<p>Perl Modules<\/p>\n\n\n\n<p>Installing the Perl modules as a non-root user is accomplished by running the install-module.pl script.<\/p>\n\n\n\n<p>HTTP Server<\/p>\n\n\n\n<p>Ideally, this also needs to be installed as root and run under a special web server account. As long as the web server will allow the running of *.cgi files outside of a cgi-bin, and a way of denying web access to certain files (such as an .htaccess file), you should be good in this department.<\/p>\n\n\n\n<p><strong>Running Apache as Non-Root<\/strong><\/p>\n\n\n\n<p>You can run Apache as a non-root user, but the port will need to be set to one above 1024. If you type httpd -V, you will get a list of the variables that your system copy of httpd uses. One of those, namely HTTPD_ROOT, tells you where that installation looks for its config information.<\/p>\n\n\n\n<p>From there, you can copy the config files to your own home directory to start editing. When you edit those and then use the -d option to override the HTTPD_ROOT compiled into the web server, you get control of your own customized web server.<\/p>\n\n\n\n<p>You will need to start the daemons yourself. You can either ask your system administrator to add them to system startup files, or add a crontab entry that runs a script to check on these daemons and restart them if needed.<\/p>\n\n\n\n<p>Do NOT run daemons or other services on a server without first consulting your system administrator! Daemons use up system resources and running one may be in violation of your terms of service for any machine on which you are a user!<\/p>\n\n\n\n<p><strong>Bugzilla<\/strong><\/p>\n\n\n\n<p>When you run .\/checksetup.pl to create the localconfig file, it will list the Perl modules it finds. If one is missing, go back and double-check the module installation, then delete the localconfig file and try again.<\/p>\n\n\n\n<p>One option in localconfig you might have problems with is the web server group. If you can&#8217;t successfully browse to the index.cgi (like a Forbidden error), you may have to relax your permissions, and blank out the web server group Of course, this may pose as a security risk. Having a properly jailed shell and\/or limited access to shell accounts may lessen the security risk, but use at your own risk.<\/p>\n\n\n\n<p>suexec or shared hosting<\/p>\n\n\n\n<p>If you are running on a system that uses suexec (most shared hosting environments do this), you will need to set the webservergroup value in localconfig to match your primary group, rather than the one the web server runs under. You will need to run the following shell commands after running .\/checksetup.pl, every time you run it (or modify checksetup.pl to do them for you via the system() command).<\/p>\n\n\n\n<p>For i in docs graphs images js skins; do find $i -type d -exec chmod o+rx {} \\; ; done<\/p>\n\n\n\n<p>For i in jpg gif css js png html rdf xul; do find . -name \\*.$i -exec chmod o+r {} \\; ; done<\/p>\n\n\n\n<p>Find . -name .htaccess -exec chmod o+r {} \\;<\/p>\n\n\n\n<p>Chmod o+x . data data\/webdot<\/p>\n\n\n\n<p>Pay particular attention to the number of semicolons and dots. They are all important. A future version of Bugzilla will hopefully be able to do this for you out of the box.<\/p>\n\n\n\n<p><strong>A great career is just a certification away. So, practice and validate your skills to become&nbsp;<a href=\"https:\/\/www.vskills.in\/certification\/testing\/bugzilla-testing-certification\">Certified Bugzilla Testing Professional<\/a><\/strong><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/bugzilla-testing\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Back to Tutorials<\/strong><\/a><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>Introduction If you are running a *NIX OS as non-root, either due to lack of access (web hosts, for example) or for security reasons, this will detail how to install Bugzilla on such a setup. MySQL You may have MySQL installed as root. If you&#8217;re setting up an account with a web host, a MySQL&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[8203],"tags":[8214],"class_list":["post-71085","page","type-page","status-publish","hentry","category-bugzilla","tag-unix-non-root-installation-notes"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>UNIX (non-root) Installation Notes - Tutorial<\/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.vskills.in\/certification\/tutorial\/unix-non-root-installation-notes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"UNIX (non-root) Installation Notes - Tutorial\" \/>\n<meta property=\"og:description\" content=\"Introduction If you are running a *NIX OS as non-root, either due to lack of access (web hosts, for example) or for security reasons, this will detail how to install Bugzilla on such a setup. MySQL You may have MySQL installed as root. If you&#8217;re setting up an account with a web host, a MySQL...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/unix-non-root-installation-notes\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vskills.in\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-12T08:52:22+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/unix-non-root-installation-notes\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/unix-non-root-installation-notes\/\",\"name\":\"UNIX (non-root) Installation Notes - Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"datePublished\":\"2020-01-09T07:26:21+00:00\",\"dateModified\":\"2024-04-12T08:52:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/unix-non-root-installation-notes\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/unix-non-root-installation-notes\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/unix-non-root-installation-notes\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"UNIX (non-root) Installation Notes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"name\":\"Tutorial\",\"description\":\"Vskills - A initiative in elearning and certification\",\"publisher\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\",\"name\":\"Vskills\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"width\":73,\"height\":55,\"caption\":\"Vskills\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/vskills.in\/\",\"https:\/\/x.com\/vskills_in\",\"https:\/\/www.linkedin.com\/company-beta\/1371554\/\",\"https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"UNIX (non-root) Installation Notes - Tutorial","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.vskills.in\/certification\/tutorial\/unix-non-root-installation-notes\/","og_locale":"en_US","og_type":"article","og_title":"UNIX (non-root) Installation Notes - Tutorial","og_description":"Introduction If you are running a *NIX OS as non-root, either due to lack of access (web hosts, for example) or for security reasons, this will detail how to install Bugzilla on such a setup. MySQL You may have MySQL installed as root. If you&#8217;re setting up an account with a web host, a MySQL...","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/unix-non-root-installation-notes\/","og_site_name":"Tutorial","article_publisher":"https:\/\/www.facebook.com\/vskills.in\/","article_modified_time":"2024-04-12T08:52:22+00:00","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/unix-non-root-installation-notes\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/unix-non-root-installation-notes\/","name":"UNIX (non-root) Installation Notes - Tutorial","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"datePublished":"2020-01-09T07:26:21+00:00","dateModified":"2024-04-12T08:52:22+00:00","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/unix-non-root-installation-notes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/unix-non-root-installation-notes\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/unix-non-root-installation-notes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"UNIX (non-root) Installation Notes"}]},{"@type":"WebSite","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","name":"Tutorial","description":"Vskills - A initiative in elearning and certification","publisher":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization","name":"Vskills","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","width":73,"height":55,"caption":"Vskills"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/vskills.in\/","https:\/\/x.com\/vskills_in","https:\/\/www.linkedin.com\/company-beta\/1371554\/","https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw"]}]}},"_links":{"self":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/71085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/comments?post=71085"}],"version-history":[{"count":4,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/71085\/revisions"}],"predecessor-version":[{"id":132548,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/71085\/revisions\/132548"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=71085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=71085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=71085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}