{"id":621,"date":"2009-11-19T17:16:49","date_gmt":"2009-11-19T10:16:49","guid":{"rendered":"http:\/\/adityo.blog.binusian.org\/?p=621"},"modified":"2009-11-19T17:16:49","modified_gmt":"2009-11-19T10:16:49","slug":"how-to-install-cherokee-mysql-phpmyadmin-htaccess-on-ubuntu-server-910","status":"publish","type":"post","link":"https:\/\/adityo.blog.binusian.org\/?p=621","title":{"rendered":"How to install cherokee + mysql + phpmyadmin + htaccess on ubuntu server 9.10"},"content":{"rendered":"<p><a href=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-622\" title=\"cherokee1\" src=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee1.png\" alt=\"cherokee1\" width=\"475\" height=\"185\" srcset=\"https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee1.png 475w, https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee1-300x116.png 300w\" sizes=\"auto, (max-width: 475px) 100vw, 475px\" \/><\/a><\/p>\n<p>Cherokee can be installed in a variety of ways. By default, Ubuntu has support for Cherokee in its existing repositories.\u00a0 However, development on Cherokee is happening at breakneck speeds. Since the default Ubuntu repositories are incapable of keeping up with this type of rapid development, that leaves only two real options: compile from source or use an alternative repository. For the sake of this HOWTO we opted for the latter, since using apt is the preferred Ubuntu installation method.<br \/>\nThat is why we use ppa.launchpad.net repository to install our cherokee, first go to your \/etc\/apt\/sources.list files<\/p>\n<p># vim \/etc\/apt\/sources.list<\/p>\n<p>and\u00a0 you need to add this :<\/p>\n<p>deb http:\/\/ppa.launchpad.net\/cherokee-webserver\/ppa\/ubuntu karmic main<br \/>\ndeb-src http:\/\/ppa.launchpad.net\/cherokee-webserver\/ppa\/ubuntu karmic main<\/p>\n<p>Save and exit<\/p>\n<p>Install GPG key using the following command<\/p>\n<p># apt-key adv &#8211;recv-keys &#8211;keyserver keyserver.ubuntu.com 0AD0B667B67DAA477F5FF89F51BB8E83EBA7BD49<\/p>\n<p>Executing: gpg &#8211;ignore-time-conflict &#8211;no-options &#8211;no-default-keyring &#8211;secret-keyring \/etc\/apt\/secring.gpg &#8211;trustdb-name<br \/>\n\/etc\/apt\/trustdb.gpg &#8211;keyring \/etc\/apt\/trusted.gpg &#8211;recv-keys &#8211;keyserver keyserver.ubuntu.com<br \/>\n0AD0B667B67DAA477F5FF89F51BB8E83EBA7BD49<br \/>\ngpg: requesting key EBA7BD49 from hkp server keyserver.ubuntu.com<br \/>\ngpg: key EBA7BD49: public key &#8220;Launchpad PPA for Cherokee Web Server&#8221; imported<br \/>\ngpg: Total number processed: 1<br \/>\ngpg:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 imported: 1\u00a0 (RSA: 1)<\/p>\n<p>Update the source list<\/p>\n<p># apt-get update<br \/>\nGet:14 http:\/\/ppa.launchpad.net karmic\/main Sources [575B]<\/p>\n<p>install the cherokee<br \/>\n# apt-get install cherokee<\/p>\n<p>go to your web server ip address to checked it http:\/\/localhost<\/p>\n<p><a href=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-623\" title=\"cherokee2\" src=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee2.png\" alt=\"cherokee2\" width=\"442\" height=\"534\" \/><\/a><\/p>\n<p>Install PHP support<\/p>\n<p>Use the following commands to install php support<\/p>\n<p># apt-get install php5-cgi php5-mysql<\/p>\n<p>Test your php installation:<\/p>\n<p>go to \/var\/www and create test.php<br \/>\n# cd \/var\/www<br \/>\n# vi test.php<br \/>\n&lt;? phpinfo(); ?&gt;<\/p>\n<p>Before you test your test.php file, first you need to add php extention behaviouron the cherokee virtual server. Activate<\/p>\n<p>your cherokee admin<\/p>\n<p># cherokee-admin -b<\/p>\n<p>Login:<br \/>\nUser:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 admin<br \/>\nOne-time Password: 123Dbb5678tZ212<br \/>\nWeb Interface:<br \/>\nURL:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 http:\/\/localhost:9090\/<\/p>\n<p>Cherokee Web Server 0.99.27 (Nov\u00a0 6 2009): Listening on port ALL:9090, TLS<br \/>\ndisabled, IPv6 disabled, using epoll, 4096 fds system limit, max. 2041<br \/>\nconnections, caching I\/O, single thread<\/p>\n<p>then you got to your web server ip port 9090 ,http:\/\/101.18.181.111:9090<\/p>\n<p><a href=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-624\" title=\"cherokee3\" src=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee3.png\" alt=\"cherokee3\" width=\"651\" height=\"345\" srcset=\"https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee3.png 700w, https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee3-300x159.png 300w\" sizes=\"auto, (max-width: 651px) 100vw, 651px\" \/><\/a><\/p>\n<p>Go to Virtual Servers -&gt; pick your virtual server nickname (at the first time it&#8217;s usually default) -&gt; Behavior -&gt; Wizards -&gt; Languages -&gt; php -&gt; Run Wizards<\/p>\n<p><a href=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-625\" title=\"cherokee4\" src=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee4.png\" alt=\"cherokee4\" width=\"600\" height=\"319\" srcset=\"https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee4.png 600w, https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee4-300x159.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><a href=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-626\" title=\"cherokee5\" src=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee5.png\" alt=\"cherokee5\" width=\"600\" height=\"410\" srcset=\"https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee5.png 600w, https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee5-300x205.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><a href=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-627\" title=\"cherokee6\" src=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee6.png\" alt=\"cherokee6\" width=\"702\" height=\"153\" srcset=\"https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee6.png 702w, https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee6-300x65.png 300w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/a><\/a><\/p>\n<p>Then don&#8217;t forget to save changes by clicking the save button on the left, go to Test you installation\/test.php to checked it<\/p>\n<p><a href=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-628\" title=\"cherokee7\" src=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee7.png\" alt=\"cherokee7\" width=\"603\" height=\"394\" srcset=\"https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee7.png 603w, https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee7-300x196.png 300w\" sizes=\"auto, (max-width: 603px) 100vw, 603px\" \/><\/a><\/p>\n<p>Install Mysql server support<\/p>\n<p>Use the following commands to install mysql server support<\/p>\n<p># apt-get install mysql-server mysql-client<\/p>\n<p>MySQL is now installed and should operate fairly smooth and without issue. However, if the goal is to strictly use WordPress<\/p>\n<p>then the MySQL daemon should be tweaked a bit in order to save on memory consumption.<\/p>\n<p># sudo vi \/etc\/mysql\/my.cnf<\/p>\n<p>Ensure the following entries have similar options set in the MySQL configuration file:<\/p>\n<p>key_buffer\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = 16M<br \/>\nmax_allowed_packet\u00a0\u00a0\u00a0\u00a0\u00a0 = 16M<br \/>\nthread_stack\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = 192K<br \/>\nthread_cache_size\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = 8<br \/>\nskip-innodb<\/p>\n<p>The last entry is an important one and will lower MySQL memory consumption considerably.<\/p>\n<p>Now you can checked yoru mysql status<br \/>\n# \/etc\/init.d\/mysql status<br \/>\n* \/usr\/bin\/mysqladmin\u00a0 Ver 8.42 Distrib 5.1.37, for debian-linux-gnu on x86_64<br \/>\nCopyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.<br \/>\nThis software comes with ABSOLUTELY NO WARRANTY. This is free software,<br \/>\nand you are welcome to modify and redistribute it under the GPL license<\/p>\n<p>Server version\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 5.1.37-1ubuntu5<br \/>\nProtocol version\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10<br \/>\nConnection\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Localhost via UNIX socket<br \/>\nUNIX socket\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/var\/run\/mysqld\/mysqld.sock<br \/>\nUptime:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 51 min 38 sec<\/p>\n<p>Threads: 1\u00a0 Questions: 102\u00a0 Slow queries: 0\u00a0 Opens: 99\u00a0 Flush tables: 1\u00a0 Open tables: 23\u00a0 Queries per second avg: 0.32<\/p>\n<p>installing phpmyadmin on Cherokee<\/p>\n<p># apt-get install phpmyadmin<\/p>\n<p>when you ge prompt with this question just ignored it and pick ok<br \/>\nPlease choose the web server that should be automatically configured to \u201a run phpMyAdmin.<br \/>\n\u201a Web server to reconfigure automatically:<br \/>\n[ ] apache2<br \/>\n[ ] lighttpd<br \/>\n&lt;Ok&gt;<\/p>\n<p>Okay after it&#8217;s done we need to set the phpmyadmin on the cherokee, and the lates cherokee provide us with the wizard, just<\/p>\n<p>go to your cherokee admin<\/p>\n<p># cherokee-admin -b<\/p>\n<p>Login:<br \/>\nUser:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 admin<br \/>\nOne-time Password: eCKD7WlY27KKhHeZ<\/p>\n<p>Web Interface:<br \/>\nURL:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 http:\/\/localhost:9090\/<\/p>\n<p>Cherokee Web Server 0.99.27 (Nov\u00a0 6 2009): Listening on port ALL:9090, TLS<br \/>\ndisabled, IPv6 disabled, using epoll, 4096 fds system limit, max. 2041<br \/>\nconnections, caching I\/O, single thread<\/p>\n<p>then go to virtual server -&gt; your virtual server nickname -&gt; behaviour -&gt; wizards -&gt; phpmyadmin -&gt; run wizards<\/p>\n<p><a href=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-629\" title=\"cherokee8\" src=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee8.png\" alt=\"cherokee8\" width=\"600\" height=\"420\" srcset=\"https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee8.png 600w, https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee8-300x210.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><br \/>\n<a href=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-630\" title=\"cherokee9\" src=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee9.png\" alt=\"cherokee9\" width=\"600\" height=\"303\" srcset=\"https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee9.png 600w, https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee9-300x151.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>your notice that Source Directory was set automaticly to \/usr\/share\/phpmyadmin, if you build your phpmyadmin from source you need to add the Source Directory manually you can use whereis command to located your phpmyadmin config files<br \/>\n# whereis phpmyadmin<br \/>\nphpmyadmin: \/etc\/phpmyadmin \/usr\/share\/phpmyadmin<\/p>\n<p>Then don&#8217;t forget to save, then go to your phpmyadmin link to test it http:\/\/101.18.181.111\/phpmyadmin\/<\/p>\n<p><a href=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-631\" title=\"cherokee10\" src=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee10.png\" alt=\"cherokee10\" width=\"528\" height=\"509\" srcset=\"https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee10.png 528w, https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee10-300x289.png 300w\" sizes=\"auto, (max-width: 528px) 100vw, 528px\" \/><\/a><\/p>\n<p>Okay we have installed phpmyadmin, now the question is how to add .htaccess on the phpmyadmin directory to make it more<\/p>\n<p>secure ? we can add .htaccess on the cheerokee<br \/>\nfirst you need to create htpasswd file first, you can add the file anywhere in my case i add it on \/var\/htpasswd<br \/>\nsince ubuntu by default did not include htpasswd we need to isntall it first<br \/>\n# apt-get install apache2-utils<br \/>\n# mkdir \/var\/htpasswd<br \/>\ni will create user admin<br \/>\n# \/usr\/bin\/htpasswd -c \/var\/htpasswd\/user.passwd admin<br \/>\nNew password:<br \/>\nRe-type new password:<br \/>\nAdding password for user admin<\/p>\n<p>you can see it now<br \/>\n# tail \/var\/htpasswd\/user.passwd<br \/>\nadmin:5tSClQs1NtlQA<\/p>\n<p>okay get back to cherokee admin -&gt; virtual server -&gt; your virtual server nickname -&gt; behaviour -&gt; click \/phpmyadmin-&gt; security -&gt; drop down and pick htpasswd file<\/p>\n<p>Methods\u00a0\u00a0\u00a0 \u00a0\u00a0 -&gt; basic<br \/>\nRealm\u00a0\u00a0\u00a0 \u00a0\u00a0 -&gt; the name of your htaccess<br \/>\nUsers\u00a0\u00a0\u00a0 \u00a0\u00a0 -&gt; the username that have previledges to access<br \/>\nPassword File\u00a0\u00a0\u00a0 -&gt; the path of .htpasswd<\/p>\n<p><a href=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-632\" title=\"cherokee11\" src=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee11.png\" alt=\"cherokee11\" width=\"600\" height=\"460\" srcset=\"https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee11.png 600w, https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee11-300x230.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><br \/>\nThe don&#8217;t forget to save<\/p>\n<p>then go to http:\/\/101.18.181.111\/phpmyadmin to test it<\/p>\n<p><a href=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-633\" title=\"cherokee12\" src=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee12.png\" alt=\"cherokee12\" width=\"595\" height=\"379\" srcset=\"https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee12.png 595w, https:\/\/adityo.blog.binusian.org\/files\/2009\/11\/cherokee12-300x191.png 300w\" sizes=\"auto, (max-width: 595px) 100vw, 595px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cherokee can be installed in a variety of ways. By default, Ubuntu has support for Cherokee in its existing repositories.\u00a0 However, development on Cherokee is happening at breakneck speeds. Since the default Ubuntu repositories are incapable of keeping up with this type of rapid development, that leaves only two real options: compile from source or [&hellip;]<\/p>\n","protected":false},"author":386,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4872],"tags":[4871],"class_list":["post-621","post","type-post","status-publish","format-standard","hentry","category-cherokee","tag-cherokee-mysql-phpmyadmin-htaccess-on-ubuntu-server-910"],"_links":{"self":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/users\/386"}],"replies":[{"embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=621"}],"version-history":[{"count":2,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/621\/revisions"}],"predecessor-version":[{"id":635,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/621\/revisions\/635"}],"wp:attachment":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}