{"id":2722,"date":"2016-10-02T14:40:26","date_gmt":"2016-10-02T12:40:26","guid":{"rendered":"http:\/\/www.extradrm.com\/?p=2722"},"modified":"2020-10-05T21:11:30","modified_gmt":"2020-10-05T19:11:30","slug":"monsta-web-ftp-file-manager-in-php-ajax-debian","status":"publish","type":"post","link":"https:\/\/www.extradrm.com\/?p=2722","title":{"rendered":"Monsta Web FTP file manager in PHP Ajax \/ Debian"},"content":{"rendered":"<p>Monsta is an open source web based FTP file manager written in PHP and Ajax. Easy to install too, it lets you upload, download and manage your file in an easy way too. With drag &amp; drop to upload or move, on screen file editing and multi language support, Monsta can replace your desktop FTP software like Filezilla and others &#8230;<\/p>\n<p>Before Install Check apache2 and php5 are installed :<br \/>\n<a href=\"http:\/\/www.extradrm.com\/wp-content\/uploads\/2016\/10\/prerequesites.jpg\"><img loading=\"lazy\" class=\"aligncenter size-large wp-image-2724\" alt=\"prerequesites\" src=\"http:\/\/www.extradrm.com\/wp-content\/uploads\/2016\/10\/prerequesites-1024x174.jpg\" width=\"600\" height=\"101\" srcset=\"https:\/\/www.extradrm.com\/wp-content\/uploads\/2016\/10\/prerequesites-1024x174.jpg 1024w, https:\/\/www.extradrm.com\/wp-content\/uploads\/2016\/10\/prerequesites-300x51.jpg 300w, https:\/\/www.extradrm.com\/wp-content\/uploads\/2016\/10\/prerequesites.jpg 1400w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>1) Download and unzip their latest zip in a dedicated folder of your \/var\/www<\/p>\n<p>Currently, their latest version is the V1.8.5. But make sure you download the <a href=\"http:\/\/www.monstaftp.com\/download\/\" target=\"_blank\" data-slimstat-clicked=\"false\" data-slimstat-type=\"0\" data-slimstat-tracking=\"true\" data-slimstat-async=\"true\" data-slimstat-callback=\"false\" rel=\"noopener noreferrer\">latest one.<\/a><\/p>\n<p>In root (or with sudo), run:<\/p>\n<div id=\"crayon-57f0f5e2b03c1366746317\" data-settings=\" minimize scroll-mouseover\">\n<div>\n<table>\n<tbody>\n<tr>\n<td data-settings=\"hide\">\n<div>\n<div data-line=\"crayon-57f0f5e2b03c1366746317-1\">1<\/div>\n<div data-line=\"crayon-57f0f5e2b03c1366746317-2\">2<\/div>\n<div data-line=\"crayon-57f0f5e2b03c1366746317-3\">3<\/div>\n<div data-line=\"crayon-57f0f5e2b03c1366746317-4\">4<\/div>\n<div data-line=\"crayon-57f0f5e2b03c1366746317-5\">5<\/div>\n<div data-line=\"crayon-57f0f5e2b03c1366746317-6\">6<\/div>\n<\/div>\n<\/td>\n<td>\n<div>\n<div id=\"crayon-57f0f5e2b03c1366746317-1\">cd \/var\/www<\/div>\n<div id=\"crayon-57f0f5e2b03c1366746317-2\">mkdir monsta<\/div>\n<div id=\"crayon-57f0f5e2b03c1366746317-3\">cd monsta\/<\/div>\n<div id=\"crayon-57f0f5e2b03c1366746317-4\">wget www.monstaftp.com\/download\/monsta_ftp_v1.8.5_install.zip<\/div>\n<div id=\"crayon-57f0f5e2b03c1366746317-5\">unzip monsta_ftp_v1.8.5_install.zip<\/div>\n<div id=\"crayon-57f0f5e2b03c1366746317-6\">rm monsta_ftp_v1.8.5_install.zip<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>On a new VPS debian wheezy we can do also :<br \/>\nwget \u00a0&#8211;no-check-certificate https:\/\/www.monstacdn.com\/downloads\/monsta_ftp_v1.8.5_install.zip -O monsta.zip<br \/>\nsudo apt-get unzip<br \/>\nunzip -q monsta.zip &amp;&amp; rm -rf monsta.zip<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Under Monsta folder give apache user permission www-data (33) :<\/strong> <\/span><br \/>\nchown -R www-data:www-data\u00a0mftp.<\/p>\n<p>chmod -R 755 mftp<\/p>\n<p><strong>The Monsta FTP default language is English (en_us).<\/strong><\/p>\n<p>To switch to French:<\/p>\n<p>Go in \/ var \/ www \/ html \/ mftp \/ languages<\/p>\n<p>Assign the value 0 into $ file_lang_default en_us.php the file.<\/p>\n<p>Assign the value 1 to the variable $ file_lang_default fr_fr.php the file.<\/p>\n<p>PS: feel free to correct some spelling mistakes contained in the fr_fr.php provided by default &#8230;<\/p>\n<p><a href=\"http:\/\/www.extradrm.com\/wp-content\/uploads\/2016\/10\/monsta2.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2725\" alt=\"monsta2\" src=\"http:\/\/www.extradrm.com\/wp-content\/uploads\/2016\/10\/monsta2.jpg\" width=\"650\" height=\"64\" srcset=\"https:\/\/www.extradrm.com\/wp-content\/uploads\/2016\/10\/monsta2.jpg 650w, https:\/\/www.extradrm.com\/wp-content\/uploads\/2016\/10\/monsta2-300x29.jpg 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><\/p>\n<p>2) Change the owner of the folder (by www-data:www-data) to avoid permission issues.<\/p>\n<div id=\"crayon-57f0f5e2b03cd270464224\" data-settings=\" minimize scroll-mouseover\">\n<div>\n<table>\n<tbody>\n<tr>\n<td data-settings=\"hide\">\n<div>\n<div data-line=\"crayon-57f0f5e2b03cd270464224-1\">1<\/div>\n<\/div>\n<\/td>\n<td>\n<div>\n<div id=\"crayon-57f0f5e2b03cd270464224-1\">chown -R www-data:www-data monsta<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>chmod -R 755 mftp<\/p>\n<p>You can directly access it through http:\/\/yourserverIP\/monsta<\/p>\n<p><a href=\"http:\/\/www.extradrm.com\/wp-content\/uploads\/2016\/10\/monsta.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2723\" alt=\"monsta\" src=\"http:\/\/www.extradrm.com\/wp-content\/uploads\/2016\/10\/monsta.jpg\" width=\"479\" height=\"606\" srcset=\"https:\/\/www.extradrm.com\/wp-content\/uploads\/2016\/10\/monsta.jpg 479w, https:\/\/www.extradrm.com\/wp-content\/uploads\/2016\/10\/monsta-237x300.jpg 237w\" sizes=\"(max-width: 479px) 100vw, 479px\" \/><\/a><\/p>\n<h4 itemprop=\"name\"><a href=\"http:\/\/stackoverflow.com\/questions\/16429502\/serve-multiple-directories-with-apache\">Serve multiple directories with Apache (virtualhost monstaftp.conf)<\/a><\/h4>\n<p>Running Apache on Debian. My \/var\/www folder consists of two directories <code>\/codeigniter \/wordpress<br \/>\n<\/code><\/p>\n<p>I would like mydomain.com to point to \/codeigniter and mydomain.com\/blog to point to \/wordpress. I have acheived the first one but not the second. <strong>How can we do it ?<\/strong><\/p>\n<p>I have the following in site-available\/mydomain.com<\/p>\n<pre><code>&lt;VirtualHost *:80&gt;\r\n  ServerAdmin me@example.com\r\n  ServerName  www.mydomain.com\r\n  ServerAlias mydomain.com\r\n\r\n  # Index file and Document Root (where the public files are located)\r\n  DirectoryIndex index.html index.php\r\n  DocumentRoot \/var\/www\/codeigniter\/public\r\n\r\n  &lt;Directory \"\/var\/www\/codeigniter\/public\"&gt;\r\n  Options FollowSymLinks\r\n  AllowOverride All\r\n  Order allow,deny\r\n  Allow from all\r\n  &lt;\/Directory&gt;\r\n&lt;\/VirtualHost&gt;\r\n<\/code><\/pre>\n<div itemprop=\"text\">\n<p>Simple, add an Alias and another directory block <em>inside<\/em> your <code>VirtualHost<\/code> block :<\/p>\n<pre><code>Alias \/blog\/ \"\/var\/www\/wordpress\/\"\r\n&lt;Directory \"\/var\/www\/wordpress\/\"&gt;\r\n    ... whatever you want ...\r\n&lt;\/Directory&gt;\r\n<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Monsta is an open source web based FTP file manager written in PHP and Ajax. Easy to install too, it lets you upload, download and manage your file in an easy way too. With&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":2843,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[34,14],"tags":[],"youtube_video":null,"_links":{"self":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts\/2722"}],"collection":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2722"}],"version-history":[{"count":0,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts\/2722\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/media\/2843"}],"wp:attachment":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}