MFS2 Update
MFS2 is now available for download only via SVN and is recommended only for tech-savvy web developers and people who want a very early hands-on with it. The SVN address is: http://meltingice.svn.beanstalkapp.com/mfs/
Normal releases will be coming up in the near future, so stay tuned if you don’t know how to use SVN.
What is it?
MeltingIce File System is a comprehensive php personal file management script. It allows users to upload to the server it is hosted on, and once the files are uploaded, users may link other people to them. The script includes a full file management system that lists everything in a users personal directory and allows them to upload new files, delete uploaded files, and create folders for organizational purposes.
How It Works
When a user registers their username, it is stored in a MySQL database along with their password (stored in hashed form of course for maximum security). When a user logs in for the first time, a folder is created just for them with the same name as their username. This folder will act as the base directory for all of their files. Inside of that folder, a user may upload files and create folders to their hearts content. However, because of security purposes, php files are not allowed to be uploaded. Files within user’s folders are also not allowed to be executed to prevent hackers from compromising the script and/or your server. Instead, files are loaded through a php script named readfile.php and are restricted to user’s directories only. You may only view a list of files and folders in your personal folder, or a friends directory if they add you to their friends list. This allows users to choose between keeping their files private, or making them public simply by linking to them.
Requirements
You will need a UNIX-based server running Apache and a MySQL database. If you are unsure what type of server you have, this script most likely will run since the majority of servers meet these requirements. The script itself is very small (less than 1MB), but keep in mind users uploaded files take up space too!
Screenshots (currently outdated – see the demo for the actual interface)
To-do List
- Automatic chmod when install script is run
- Password recovery
- Improve file edit page
- Incorporate AJAX
- File upload progress bar
Where can I get it?
Unfortunately a hacker who goes by the name of Mr. Black has found an exploit in my script and enjoys hacking MFS whenever hes bored. The script should be back up eventually, sorry about this everyone.
What if I want to try it out first?
The demo of MFS is no longer available on my server, sorry folks.
Changelog
v1.0 (4/7/07)
- Added friends system
- Allows for collaborative projects
- Can set a friends access permissions (read only or read and write access)
- Admin panel updated with more options
- Toggle friend system on/off
- Toggle registration on/off
- Ability to search through users
- User list now split up into pages in order to decrease server load
- Some pages design was cleaned up to be more consistent
- namecheck.php now uses regular expressions to check the validity of usernames and uploaded files, which is much more secure and failsafe
- For those users having issues with their php.ini file: I accidentally included my own php.ini file in the last release or two, and this may be conflicting with yours. If there is a php.ini file in the base MFS directory when there shouldn’t be, try deleting it and see if that works.
v0.9 beta (3/29/07)
- User adding now available in admin panel
- Added ability to move files into and out of folders
- A couple of small bug fixes
v0.8 beta (3/26/07)
- All updates for PHP5 version only, PHP4 version will be updated within a day or two
- Fixed some small bugs that needed to be addressed
- Directory path linkage now works no matter what folder you’re in
- Added user deletion and individual user quota updating in admin panel
- Some code cleaning and optimization
- Fixed small problem with strtolower
- Fixed issue some people were having with mb_strtolower being an unknown function
- Added edit.php for editing files right in your web browser
- Improved compatibility with Internet Explorer
- Changed hash() method to md5() for PHP4 compatible version in install.php and upgrade.php
- Visually redesigned index.php, admin.php, and moved registration to a separate file
- User space quotas implemented
- Admin panel added to manage quotas
- Since there were some database changes, an upgrade.php script is now in the download
- Made it so all usernames are converted to lowercase, with their spaces removed, for consistency and identity-based reasons
- New interface design implemented
- Delete file confirmation box added
- Fixed bug in readfile.php for when a file is downloaded
- Added folder deletion
- Implemented file and folder renaming
- Fixed security hole that would potentially allow a user to upload a file anywhere on the server
- Updated install.php to fix an error if you didn’t specify a table prefix during installation
- You can now specify a database table prefix if you want. The default is “mfs”.
- Updated visual design
- Remembered to include mime.types this time
- Uploading now returns you to the same directory instead of your root directory
- Some added comments for those who wish to edit the script
- mfs released
v0.70c beta (3/25/07)
v0.70b beta (3/21/07)
v0.70 beta (3/13/07)
v0.65b beta (3/7/07)
v0.65 beta (3/6/07)
v0.6 beta (3/4/07)
v0.5 beta (2/28/07)
v0.35 beta (2/22/07)
v0.3 beta (2/22/07)
v0.26 beta (2/21/07)
v0.25 beta (2/20/07)
v0.2 beta (2/19/07)
v0.1 beta (2/18/07)

dont let me create useres help
matt said this on March 4th, 2007 at 9:31 am
Fatal error: Call to undefined function: hash() in /home/missings/public_html/adamsims/Webpages/createuser.php on line 18
matt said this on March 4th, 2007 at 9:37 am
i fixed the hash() problem by changing the
$passhashentered = hash(sha256, $_SESSION['password']);
to:
$passhashentered = md5($_SESSION['password']);
This change was made in process.php and createuser.php
Raj said this on March 4th, 2007 at 5:50 pm
Thats strange, what version of php are you using? If you are using a version below PHP 5, you will have a couple of issues, especially with that function since it is new to PHP 5. If you follow Raj’s example though, then everything might work in PHP 4.x.x.
MeltingIce said this on March 4th, 2007 at 6:15 pm
Raj i followed wot u sed but now i try loging in and it says incorect password once a user is created it worked a few mins ago but now its not ?
matt said this on March 5th, 2007 at 1:42 pm
tHE NEW ON HAS A PROBLEM AS WELL WITH THE HASH CAN YPU MAKE IT WORK WITH PHP 4 PLZ!
matt said this on March 6th, 2007 at 12:36 pm
Alright matt, I will make a PHP4 and a PHP5 version for the next release, although you should seriously consider switching to PHP5. I’ll see if I can get that done in the next couple of hours.
MeltingIce said this on March 6th, 2007 at 5:42 pm
Alright the PHP4 compatable version has been posted, let me know if it works.
MeltingIce said this on March 6th, 2007 at 6:36 pm
Thanks i will try it now
Matt said this on March 7th, 2007 at 11:00 am
No it dont work it says when im trying to install it hash still ?
Matt said this on March 7th, 2007 at 11:05 am
ermm help:
Fatal error: Call to undefined function: hash() in /home/homer090/public_html/video/install.php on line 15
homer09001ermm help: said this on March 7th, 2007 at 3:50 pm
solved previous problems but now its only lettingone connection at any time to the the database which is no use?
homer09001ermm help: said this on March 7th, 2007 at 4:10 pm
solved previous problems again simply change :
@mysql_pconnect($mysqlhost, $mysqluser, $mysqlpass) or die (mysql_error());
to:
@mysql_connect($mysqlhost, $mysqluser, $mysqlpass) or die (mysql_error());
homer09001ermm help: said this on March 7th, 2007 at 4:32 pm
Suggestions?
1) fix login form so text boxes arent half hidden
2) Admin Panel – allow admin control of files e.g. delete, rename etc
3) Admin Panel – Membership types? e.g. allow it so you can set different membership levels with different file quotas?
homer09001 said this on March 7th, 2007 at 4:46 pm
Thanks for the suggestions, this script is still in beta, so there is still plenty room for improvement. I just checked in IE7 and I see the issue you are talking about regarding the login boxes being half-hidden. This is due to IE’s horrible render engine since it works fine in every other browser, but I will see what I can do to fix this problem since a good script is fully cross-browser compatible.
The admin panel is a very new addition to the script, so it is something that needs a lot of work still. I plan to change it so that the file space taken up by each user is stored in the MySQL database instead of calculated on the fly every time the admin panel is loaded. I will change pconnect() to connect() and fix the hash() undefined issue for the PHP4 compatable version tonight, since both of these are supported in PHP5.
MeltingIce said this on March 7th, 2007 at 5:41 pm
Ok, I fixed the IE issue and switched hash() with md5(), so installing the script should work now.
MeltingIce said this on March 7th, 2007 at 10:10 pm
do you have the code to hand that needs changing for the login box?
Keep up the good work i love this system best ive found so far i’ve found a lot!!
homer09001 said this on March 8th, 2007 at 11:32 am
BUG: when trying to go back from a nested folder e.g.
mfs:test/folder_2
where mfs is the homedir, if i click folder 2 which is the current folder i get:
Warning: opendir(/home/homer090/public_html/files/users/danhill//folder_2) [function.opendir]: failed to open dir: No such file or directory in /home/homer090/public_html/files/dirlist.php on line 25
It is ok to modify the code of the files isnt it? as i’ve added a link next to the [Sign-out] link to a help file that opens in a pop up, and ive added $site_name and $slogan into the config so i can easily modify the Title of the site etc.
homer09001 said this on March 8th, 2007 at 12:30 pm
Modification is perfectly fine, just make sure to give me credit for the original code if you decide to release your modifications. I will fix that bug you mentioned as well. Glad to hear you like my script, I have spent a lot of time working on it so far.
MeltingIce said this on March 8th, 2007 at 2:18 pm
Fatal error: Call to undefined function: hash() in /home/missings/public_html/adamsims/space/admin/admin.php on line 29
error on admin panel login
Matt said this on March 9th, 2007 at 11:27 am
Ahh I forgot about that one, thanks for letting me know. If you want, just change hash(’sha256′, $password); to md5($password); so you can get it working right away. I’ll fixt that and upload the fixed version later tonight when I get the chance.
MeltingIce said this on March 9th, 2007 at 5:31 pm
Just a small sugstion i hope you could do sometime
is make it so when a user uploads a html webpage you can edit it on the manger edit the fle html editor hope you van d t sometime as i would use it for my web hostng site
matt said this on March 10th, 2007 at 3:49 am
Hiow do i make it so the files are upload the to the folder the scripts installed in ?
matt said this on March 12th, 2007 at 12:07 pm
That would take a lot of modification. Basically, get rid of the folder “users” in every script that it appears, especially config.php. You will also have to get rid of $_SESSION['username'] from the path since all uploads go into users/username/
MeltingIce said this on March 12th, 2007 at 1:36 pm
New version uploaded including matt’s suggestion that lets you edit your uploaded files in your web browser. Design still needs a little prettying up for the edit page, but the functionality is there and its more than usable.
MeltingIce said this on March 13th, 2007 at 12:16 am
kl thanks for making this have a bit of a request for you when you have time could you make me the one what i sed uploads in the scripts folder ect
if you can can you also rename the index.php so its called main.php instead this is jus a request for myselft not for the whole script to chage
becuse i have a hosting comapny and i would like a file manger plz make it email me at matt@missingstudios.com to send me it if you do make it thanks Matt
matt said this on March 13th, 2007 at 2:37 pm
I’m getting this error when hitting the submit button on the first page of the install
Fatal error: Call to undefined function: mb_strtolower() in /mnt/w0300/d19/s02/b029591f/www/rockbox.biniaris.net/upload/install.php on line 14
Don’t know what to do can you please help
Kezza
Kezza said this on March 18th, 2007 at 11:41 pm
Hmm, I’m assuming you are using PHP4, as it works fine in PHP5. I didn’t realize it was a PHP5 only method though, I will check and see what the PHP4 equivalent is and get that uploaded soon.
MeltingIce said this on March 19th, 2007 at 5:02 pm
ok I’ll try upgrading to php5 and see if it works
thanks for the fast reply.
Kezza
Kezza said this on March 19th, 2007 at 5:59 pm
I upgraded to php5 and it worked, thanks for the help
Kezza
Kezza said this on March 19th, 2007 at 6:15 pm
I to, am getting this error when hitting the submit button on the first page of the install
Fatal error: Call to undefined function: mb_strtolower() in /usr/local/psa/home/vhosts/www/bluegoup.co.au/httpdocs/upload/install.php on line 14
I have tryed PHP4, and PHP5 versions and I still get the same result.
Don’t know what to do any chance you could please help
james said this on March 20th, 2007 at 7:38 pm
I just uploaded a new version, hopefully it should work. I’m using strtolower now instead of mb_strtolower since it is more widely supported. Let me know if you have any further problems.
MeltingIce said this on March 21st, 2007 at 9:18 am
hi, i wont to know where you put here some new version of this system with better admin panel, now i see only users and ‘Set Global Quota’ option….I need some more option such as: deleting users, add new users, uploading/deleting files, creating directories etc..
greatings from poland
sory for my english
thelete said this on March 25th, 2007 at 2:01 pm
As of right now, there aren’t any updates to the admin panel. I will be working on that soon though, so I will let you know when there is something new with it.
MeltingIce said this on March 25th, 2007 at 10:22 pm
Hey, I’m trying out your file system on my website and loving it so far. I have been wanting a good way to share larger files easily, and just having a group account on the MFS works perfectly. All the free file server sites (such as box.net, which I really like) unfortunately have a very small max file size, usually 10MB; so being able to change that is an excellent ability. Just wanted to know why the uploading progress bar doesn’t seem to move. I’m uploading rather large files and I can’t tell if it is just frozen or what. So far as long as I just let it sit there it eventually finishes the upload but it would be nice to have some notification of how close it is. Excellent work so far. Thanks.
Josh Kephart said this on March 28th, 2007 at 5:32 pm
Hey, glad to hear you like it so far! The reason that there is no progress bar is because it is impossible to do this with PHP. In order to have a progress bar, you have to incorporate something like cgi into the script in order to keep track of the download and it gets really messy. It’s something I’ve considered adding in the future, but as of now its not one of my top priorities.
MeltingIce said this on March 29th, 2007 at 8:15 am
I like the simplicity of it all.
One thing I see that could be useful is permissions. Or more to the point, an admin user can easily get into any user’s space, and perform functions.
I see this working well for a collaborative document management system. Where there can be multiple users with permissions to a certain filespace (admin’s of course have access to all).
Any thoughts or chance on that happening?
Rich said this on March 29th, 2007 at 2:35 pm
Well, the issue is that the admin of it is also probably the owner of the server. And if he’s the owner of the server, then he can just use FTP to find out whats in everyones folder. That is an idea though I will think about implementing, thanks for the suggestion!
MeltingIce said this on March 29th, 2007 at 6:04 pm
hi again i did not reply to your email beacuse i delted it without getting your email. Anyway please can you plz make a diffrent script seprate to this one but simler beacuse i need a web manger for my website for my clients and i realy cant afford Cpanel and WHM at the moment as i am doing a free hosting service i was wondering if you would make one simler to this script the only diffrence is instead of it uploading into seprate user folder it uploading to the Folder the script is in and the main page renamed to panel.php or something like that not index.php plz i hope you can make 1 so for example if someone uploads a file called index.html it will be uploaded to the main script folder and it will be there home page
Thanks matt@missingstudios.com
matt
Matt said this on March 30th, 2007 at 7:57 am
In response to Rich’s post:
I am planning on using it for that very purpose, and to get around the lack of a common upload folder and user permissions I am currently just having a public account to work in. But yes, I think allowing permissions for users to see certain other users folders and such would be excellent.
To MeltingIce:
Do you mind if I change the look and layout of the system to more closely meld with my site? I plan on keeping your name on it (well, meltingice rather) since I realize the amount of time you have probably put into it, so no worries there.
Josh Kephart said this on March 30th, 2007 at 10:03 am
i’ve tried the latest version (demo and installed it on my server) and the login doesn’t work. after i hit submit with my correct usersettings it just returns to the login page…!?
is that a bug? it happened with your demo too. tested on firefox, mac and pc and ie on a pc.
smuddah said this on March 30th, 2007 at 2:55 pm
To smuddah: Thats very weird, login works fine for me. What username did you register? If you used a strange character of some kind, I might have forgotten to disallow it in usernames and that might be why you can’t log in. Also, you must have cookies enabled so that the system can keep you logged in, or else it will just return you to the login page.
To Josh: go right ahead, I encourage modification of my script. I appreciate you keeping my name in it though, that would be my only requirement
And to matt: I will re-email the script again, but I will use the latest released version so you have all the new features.
MeltingIce said this on March 30th, 2007 at 4:02 pm
Wierd occurance going on with 0.9 beta. I upgraded to 0.9 today and everything was going peachy, then I uploaded a new php.ini file to enable a larger upload for one of my users. Immediately after I did this I encountered problem smuddah was reporting. After typing in your info it just blanks both boxes with reporting an incorrect password or anything. No special characters were used in these logins, as they were functioning fine immediately before the php.ini upload.
So after this problem occured I deleted the php.ini file and the login started functioning again. Any idea what is going on?
On another installation of MFS (0.8), I actually set the global quota as high as 10GB and the max upload to 6GB and didn’t have any problems with the php.ini and logging in.
Josh Kephart said this on April 2nd, 2007 at 10:25 pm
Quick correction, there is NOT an incorrect password or error reporting, the loging text boxes just clear.
Josh Kephart said this on April 2nd, 2007 at 10:26 pm
Wow thats very strange. I can’t think of anything new in v0.9 that would mess up the login process. In fact, I don’t think I even touched the file that deals with the login process. I’ll do some digging though to get to the bottom of the problem, thanks for letting me know.
On another note, I had a lot more time on my hands than I thought I would due to 6 hours of waiting time in the airport. I have a very good start on incorporating a friends system and it will be included in release 1.0. Keep an eye on my blog for more updates on that.
MeltingIce said this on April 4th, 2007 at 12:46 pm
Hey, trying out the monumental 1.0 release! I haven’t tried a clean install yet, but unfortunately my upgrade from 0.9 isn’t fully functional (display wise). It seems to be functioning fine other than this error displayed on most pages and the general layout of things displaying weirdly:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /homepages/38/d198874475/htdocs/fileshare_dev/admin/getusers.php on line 35
You can see this in action at http://www.joshandmeg.net/fileshare_dev/
You can also login under
username: public
password: public
to see the effects on the inside as well as a screenshot of what my admin panel is looking like. Not sure what is going on. I plan on doing a clean install tomorrow to see if maybe i didn’t miss something in the deleting and uploading or something.
What do you think?
Josh Kephart said this on April 8th, 2007 at 10:34 pm
hi i am having a problem installing look http://www.missingstudios.com/ms-files/install.php it also says after could not connect to Database but the data base does work ?
Matt said this on April 9th, 2007 at 1:21 am
its ok now ive fixed it thanks anyway
matt said this on April 9th, 2007 at 4:12 am
hi again got a small suggestion could you make a thing so useres can only have 1 account per IP so they cant have loads of accounts ? also a Terms of Service would also be good
matt said this on April 9th, 2007 at 4:58 am
Josh: I checked out the link and it seems that the MySQL database has not been upgraded properly. Perhaps the information you entered was wrong? The upgrade from 0.9 –> 1.0 worked fine for me, but of course just because it worked for me doesn’t mean it should work for everyone it seems. The easiest option would be to do a clean install of MFS, but if you know how to use phpMyAdmin then could you show me a screenshot of the admin table and the users table? I have a feeling that this is where the problem lies.
Matt: that is something that I plan to add soon and is definitely a good idea.
MeltingIce said this on April 9th, 2007 at 3:59 pm
Yeah, I can run a clean install just to get it working. I have two versions of it on my site, one that is 0.9 and that people are using, and the other one for development that is having the problems from the upgrade. So I don’t want to do a clean install on the 0.9 version because I don’t want to lose the users. Anway, here are the links to screen caps of the tables:
http://www.joshandmeg.net/fileshare/readfile.php?file=keppy/dev_admin.pdf
http://www.joshandmeg.net/fileshare/readfile.php?file=keppy/dev_users.pdf
Let me know if you find out anything. Don’t worry about it too much, it really isn’t a huge deal or anything for me to just install it from scratch and recreate the users. But if you see something quickly then just let me know.
Thanks for the help.
Josh Kephart said this on April 9th, 2007 at 9:47 pm
I checked out the tables you posted and that is definitely the problem. Your MySQL tables didn’t update at all. I would try running the upgrade script again (make sure you’re using upgrade3.php).
Also, I found a bug with the friends system tonight that was preventing you from moving and renaming a friends file if you have permissions to do that. I updated the downloads with the new files, just replace modalbox.php and movefile.php and everything should work just fine.
MeltingIce said this on April 9th, 2007 at 10:59 pm
Ok, I got it functioning now. Apparently when I ran the upgrade the first time I forgot what table prefix I had entered on the original install. It did tell me it upgraded successfully though… but oh well.
The only lingering problem now is this weird display in my admin panel:
http://www.joshandmeg.net/fileshare_dev/readfile.php?file=keppy/admin_error.jpg
I’ve gone through and checked all the pages and tried out the friends management and this is the only place with that error line in it. Let me know what you think.
On another note, the file system is getting really awesome with the addition of friends and whatnot. Very nice job. Thanks!
Josh Kephart said this on April 10th, 2007 at 10:14 pm
Hmm… there must be something wrong with the MySQL database. Thats strange that the friends system status works but the registration status doesn’t. My first guess would be something wrong with the mfs mysql table named prefix_admin. If nothings wrong there, then theres something wrong with my code that I need to check out. There should be a column in the admin table named “registration” and it should contain either a 1 or a 0. There should also only be 1 row for the admin table. If something with your table doesn’t match this description, then that should be the problem. If everything looks ok in MySQL, then please let me know because it must be a coding error.
MeltingIce said this on April 11th, 2007 at 8:28 pm
Ok, I ended up just wiping out the database and reinstalling from scratch. I looked at the admin table before I did that and there seemed to be some extra rows for some reason. Note sure if something went wrong during the upgrade or what. Everything is functional now though so that’s good.
Josh Kephart said this on April 12th, 2007 at 1:15 pm
Cannot install this script whatsover, i have php 4x and have used the correct version. I keep getting “add table error” although i’m typing everything in perfectly, no matter what database I create no matter what user I create it never works, it constantly rejects me from the install screen saying “add table error” Any suggestions there are absolutely no help files included with the install
I have a vps not a shared host so i’m not sure if that might be some of the problem or not.
Any suggestions I really would like to use this program to allow artists to upload their cds to me?
F0l2saken said this on April 13th, 2007 at 5:08 am
I might also add the install page doesn’t load correctly as well. The tables are way off, it only gives me 2 spaces to input my admin name/password and quota limit,
F0l2saken said this on April 13th, 2007 at 5:10 am
Weird, I checked my mysql database after I run the failed install process over and over again, it creates two tables and then doesn’t create any more
it created
admin and users but still says “add table error”
when i try to load the page and just go to the directory it gives me a ton of errors that look like this:
Well I can’t copy and paste them, the rendering of the pages are so terrible they write over the text that was first displayed, you can see the error by going to uploadcd.tthlabel.com
I’m using php4 compatible version but it’s not working at all
F0l2saken said this on April 13th, 2007 at 5:41 am
Thats very strange, I just did a clean install of the php4 version, and it installed flawlessly. Are you unable to enter information into a couple of fields because the design is messed up in IE? That might be the problem here. I forgot to test the design of install.php in IE to be honest, I had forgotten it doesn’t display the tables correctly, so I’ll make sure to fix that.
MeltingIce said this on April 13th, 2007 at 6:04 am
ya i can still enter them I just watch my fingers as i’m typing and it keeps making two tables and then stops, hold on though I’ll try it in firefox real quick
F0l2saken said this on April 13th, 2007 at 6:45 am
well the tables display fine now in firefox but still the same thing, this time it made two entires in my database and then said “add table error please check your settings”
They can’t be wrong, my settings, because it’s adding two tables fine
they are:
mfs_user
mfs_admin
I hope I can get this thing working this is exactly what I need for bands to be able to upload their cds to me, I’ve looked around for a few days and this is the one I like the most so far
F0l2saken said this on April 13th, 2007 at 6:49 am
after the install fails if you try to login to the admin panel you get this:
Warning: mysql_query() [function.mysql-query]: Access denied for user ‘nobody’@'localhost’ (using password: NO) in /home/tthlabel/public_html/uploadcd/process.php on line 34
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/tthlabel/public_html/uploadcd/process.php on line 34
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/tthlabel/public_html/uploadcd/process.php on line 35
Warning: Cannot modify header information – headers already sent by (output started at /home/tthlabel/public_html/uploadcd/process.php:34) in /home/tthlabel/public_html/uploadcd/process.php on line 44
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/tthlabel/public_html/uploadcd/process.php:34) in /home/tthlabel/public_html/uploadcd/modalbox.php on line 8
Warning: Cannot modify header information – headers already sent by (output started at /home/tthlabel/public_html/uploadcd/process.php:34) in /home/tthlabel/public_html/uploadcd/user.php on line 19
F0l2saken said this on April 13th, 2007 at 6:54 am
Hmm… from those error messages, I have a feeling that your server is not allowing config.php to be edited by the install script. The file should end like this:
$mysqlhost = “localhost”;
$mysqluser = “username”;
$mysqlpass = “password”;
$mysqldb = “database”;
$mysqlpre = “mfs”;
$userquota = “250″;
@mysql_pconnect($mysqlhost, $mysqluser, $mysqlpass) or die(’Could not connect to MySQL Server!’);
@mysql_select_db($mysqldb)or die(’Could not select database!’);
?>
If you are missing this information, then copy what I pasted there and just add it to your config.php file and fill out the information correctly. If your config.php was correctly configured though, then we’ll have to do some more troubleshooting.
MeltingIce said this on April 13th, 2007 at 9:52 am
Wow, Id idn’t think it was something so simple I’ve installed a hundred php oriented programs and I can tell you the simple fix to this
Include instrustions on your install or read me file to CMOD (permissions) the config.php file thats why it wasn’t writing to it, that’ll prevent this error from ever happening again
F0l2saken said this on April 13th, 2007 at 1:18 pm
Ah ok thanks a lot. I didn’t think about CHMOD-ing the config.php file. I need to include that with the install script so that its automatic.
MeltingIce said this on April 13th, 2007 at 2:09 pm
ya i’m not sure if a config script will allow that because when you initially upload them they are all non write for user. I’d put a safe note in there “incase you get install errors chmod config.php to allow writing” or something like that
I’m glad i got it working
i know this is an easy solution to uploads and I think this one will get really popular fast
F0l2saken said this on April 13th, 2007 at 2:26 pm
just a suggestion don’t know if someone else already suggested it but it would be nice if you could also view everyone elses directory in the admin panel. It chmods the files and protects them on my server so for me myself to actually go get files someone uploaded is very difficult
F0l2saken said this on April 14th, 2007 at 11:39 pm
i read where you said you can do that with an ftp program, yes you can, but the program locks the file to it’s uploaded, I cannot download or delete anyone elses files. I’m concerned that if I manually delete the files from someone elses directory that it will mess the sql database up, or cause some other errors? I gotta go figure out how to first though..
F0l2saken said this on April 14th, 2007 at 11:47 pm
well some more info for you. I actually had to use shell access and log in as the owner of my vps, not just the domain, and manually find the directory through shell access and chmod it to 777. The average person using your script doens’t have shell access. Since the file system chmods all files the user uploads to 600 normal ftp programs and internet browsers will not let you touch those files, they are locked on the webserver till the user deletes them, even if you’re the owner, at least on mine, I can’t touch them unless I use shell access.
I stillc an’t figure out how to erase someone elses files and I’m not going to until i’m sure it won’t mess the sql database up if the database indeed stores the files in it that a user has. Even though I have all the files someone else uploaded chmod 777 I still cannot erase them, the file system program has them locked on the webservers hard drive. Not a big deal I’m just hoping someday there is an admin panel, because for one, shell access takes along time, and for two, if you don’t have shell access how can you remove someone elses files?
F0l2saken said this on April 15th, 2007 at 12:03 am
You can remove someones files via FTP because the file list is retrieved using a php function that scans the directory the file is in. There is nothing about the files stored in the MySQL database.
I’m not sure I fully understand why you need shell access to chmod the files. I have no issues chmod-ing files via FTP because last time I checked chmod didn’t affect FTP access… Also, I didn’t give access to everyones files through the admin panel because I felt this would be an absolute violation of a user’s privacy. I know you can look at the files via FTP, but adding this to the admin panel just seemed like too much.
By the way, the reason a user’s files are chmod-ed 600 is for security reasons. I use readfile.php to load files instead of linking to them directly. This prevents attacks via executable files and is necessary for security purposes.
MeltingIce said this on April 15th, 2007 at 1:00 am
makes sense then, I still can’t figure it out. I run http://www.tthlabel.com which produces/duplicates cds. Your program is what artists use to upload their cd to me. They create a direcotry after they login and upload the tracks and artwork. After that I have to go download what they’ve uploaded so that I can produce it for them. At least in this instance there is no violation of the users privacy the whole intent of the upload is for someone else to receive it.
See when I login to ftp as the owner and I try to change the chmod of the files these bands are uploadiing it won’t let me, it says permission denied. I can do it via a netscape or ie window, or by using a program like cute ftp. Same error everytime, permission denied. I believe its because I’/m not the user of the file the chmod 6 0 0 that the file system sets makes it only accessible to the user, not even the admin I believe.
What I have to do to change the cmod is login to my actually server via shell access and manually go out into the directories to change the 6 0 0 mod to 6 6 6 or 7 7 7 so I can download the files. For some odd reason even when they are 7 7 7 or 6 6 6 I can’t delete the files through any ftp program, I have to again use shell access to remove them.
F0l2saken said this on April 15th, 2007 at 2:13 am
F012saken:
You need to try FileZilla for your ftp needs. You can simply navigate to the directory you installed the file system on, go to the users folder, and view all the files you want to see. You have full access through this method and can delete or move or do whatever you want to any of these files. I’m not sure what ftp program you have tried but I’ve never run into these issues with FileZilla. What web hosting do you use?
Josh Kephart said this on April 15th, 2007 at 10:08 pm
I use emonster host and have a vps. It has cpanel and whm for the whatever you’d call them, website control methods not sure. I have to use whm to give my cpanel website account shell access and then drop to the unix shell and like chmod 777 *.* to be able to download the files, but then I still can’t delete them. I’m going to try this firezilla thing imediately
To the guy that writes this, just as a suggestion, you must have IE for saying the horrible rending and all of that, yeah IE sucks but it’s what 80% of the internet uses. On the front page of this website when you type http://www.meltingice.net you have to click about 100 times on an ie browser before you can even entire the site, everytime you move your mouse over one of the options it moves away from you
F0l2saken said this on April 16th, 2007 at 5:55 pm
ok i’m wrong 64.5 percent, this is taken from my website based on the 2612 unique views i’ve received this month
MS Internet Explorer No 194610 64.9 %
Firefox No 83303 27.7 %
There ya have it
F0l2saken said this on April 16th, 2007 at 5:56 pm
firezilla does not work like the rest of the ftp programs does the same exact thing:
Response: 550 Could not delete /public_html/uploadcd/users/sirosis/100%_Failure/09 Once Upon a Sunny Day.mp3: Permission denied
Command: DELE /public_html/uploadcd/users/sirosis/100%_Failure/10 Tabitha.mp3
Response: 550 Could not delete /public_html/uploadcd/users/sirosis/100%_Failure/10 Tabitha.mp3: Permission denied
Command: DELE /public_html/uploadcd/users/sirosis/100%_Failure/11 Dead Dudes (in the House).mp3
F0l2saken said this on April 16th, 2007 at 5:59 pm
I’m going to write to the web host about this, the account i’m using tthlabel.com has full permissions so I’m not sure why this keeps happening, all I know is my webhost is filling up at a rediculous rate because I can’t get rid of these files that are uploaded with melting ice
F0l2saken said this on April 16th, 2007 at 6:02 pm
I can’t even use my website file manager through cpanel to touch any of these files, the thing is, the only files i’m having a problem with are the melting ice files that are uploaded by users, no other upload program i’m using or file on my webserver has this problem. When I try to use cpanel to modify the files that are uploaded through melting ice i get this:
[a fatal error or timeout occurred while processing this directive]
F0l2saken said this on April 16th, 2007 at 6:15 pm
Hey, i have a problem when writing to the database, after pressing the “Install” butten, the page just turns white, i didnt even get a “error message” i am using a windows server, could that be the problem?
Mads said this on April 20th, 2007 at 11:50 am
Hmm… that might be the problem, especially if your server uses IIS instead of Apache.
MeltingIce said this on April 21st, 2007 at 2:18 am
The rendering on this page just keeps getting worse, now you can’t even post a reply on an IE browser whatsoever.
I’d suggest making things more friendly with the #1 operating system, yeah, IE sucks but over 80% of the internet uses it, making a website or a program that doesn’t work with IE is going to be it’s downfall.
Whoever runs this website seems to be anti everything microsoft, I can see a message on the front about buying an Apple computer, so I can see whats going on here
It’s ok to hate microsoft I do too, but still, ie owns firefox in users just like IBM pC’s 100% owns apple when it comes to computer sales, you have to make stuff agree with both
F0l2saken said this on April 22nd, 2007 at 11:59 pm
Actually, I enjoy Windows just as much as I enjoy Mac OSX. I have both on my Macbook.
I’m not exactly sure what the issue is you are having with IE because it works perfectly fine for me in IE7… Are you using IE6? I don’t have any test computers with IE6 on it so I have been unable to test MFS or my blog in it. It would be good to know of any issues if you are using IE6.
MeltingIce said this on April 23rd, 2007 at 4:57 pm
I like this New Layut
Matt said this on April 25th, 2007 at 3:11 pm
Whatever is used to clean up filenames doesn’t seem to work correctly. I uploaded something with a ‘ in the filename (”School’s Out.ogg”) and it got stored as “School\’s Out.ogg”. Of course this file cannot be deleted via FTP and I don’t have shell access to my hosted webpage.
ArKay said this on April 30th, 2007 at 5:31 pm
Hey, back to another problem I had with the orginal release of 1.0. When I upload a php.ini file to the root folder where the file system is located I can no longer log in. However, if I move the php.ini to the users folder or somewhere else then I can log in again. I have to do some more checking with my web hosting but I believe the php.ini file needs to be in the folder you want it to be active in, so it would need to be in the root folder of the file system for it to take effect.
Any idea what could be going on?
Josh Kephart said this on May 1st, 2007 at 7:58 am
I have a feeling that by overriding your server’s default php.ini, there is some directive thats not being set that is preventing you from logging in. The location of the php.ini file varies from server to server. For mine, the main one goes into my public_html folder, then every subdomain I make can have its own php.ini file which is put in that subdomains base folder.
MeltingIce said this on May 1st, 2007 at 4:29 pm
Hi,
some of my friends upload stuff to my website via ftp in their own directory. I have an agreement with everyone how much space he/she should use. Now i want your script to show each user how much space he/she is already using. The problem is that your script only shows files (and calculate dir sizes) which were uploaded by it self. So it would be nice if you can tell me how i modify the script to my needs ( hope thats possible because i really like the structure and look-a-like).
Thx in advance,
comA
comA said this on May 2nd, 2007 at 5:30 pm
Actually, the filesizes are calculated on the fly and are not stored values in the mysql database. So uploading files via FTP into a user’s folder should reflect a change in the used space value shown in the directory listing.
MeltingIce said this on May 2nd, 2007 at 8:56 pm
Hi,
first of all, thanks for the fast reply.
My problem was that i couldn’t upload via ftp to the user directory which was created by your script (the webserver). I fixed this by CHMOD the directory to 777.
Regards, comA
comA said this on May 3rd, 2007 at 9:50 am
Hello again,
i’ve just played around with the file system and i figured out, that it is not possible to change a users password, neither for the admin nor for the user.
Greetz comA
comA said this on May 3rd, 2007 at 5:21 pm
I looked up where my web hosting requires the php.ini file to be located. And from there documentation, it’s pretty flexible. It basically says that you need to put the appropriate php.ini file in the folder that you want it to be active for. Since the file system has its php files in the root directory I just put the php.ini in the directory that I installed the file system too.
I don’t remember which version it was now but I know I successfully got the php.ini to work in the past. I’ve continued using the same php.ini file since then so I don’t think there is anything wrong with the ini file but maybe that’s it.
Take a look at it here and let me know if you see anything wrong with it.
Joshua Kephart said this on May 3rd, 2007 at 8:45 pm
Another nice feature would be direct download links which don’t use the readfile script. If you have audio files, clicking on the link will usually start a plugin which will handle the link which is not what I want in my case. If you right-click and do save as, the file will be stored as “readfile.php” which isn’t good either. For direct download links to work the access mode of the uploaded files need to be changed (group read on the server I’m using).
ArKay said this on May 7th, 2007 at 10:08 am
Yea, I get what you’re saying. Changing group permissions and a little PHP modificaiton will work fine as long as you aren’t worried about security breaches. I load everything through readfile.php in order to prevent a user from uploading an executable file that could be used to get your password or alter pages on your server.
MeltingIce said this on May 7th, 2007 at 10:22 am
I understand. Seems to be a Firefox issue actually since IE determines the correct filename when “Save Target as…” is used.
ArKay said this on May 7th, 2007 at 11:52 am
Is it possible to share only certain folders right now? And since I don’t think it is, are you planning on adding this in the future? Just a thought, one of the applications I’m using it for would definitely benefit from that ability.
Josh Kephart said this on May 16th, 2007 at 7:56 am
I am considering that actually, Josh. However right now, I have a lot of other projects on my hand and am unable to devote any time to MFS. I will return to MFS in the future though and add new features, especially as I learn new tricks.
MeltingIce said this on May 17th, 2007 at 12:14 am
Hey, checkout my integration of your file system fileshare.joshandmeg.net . Use IE7 instead of FireFox for now (see below). I haven’t gotten to look at it with Safari yet.
I must have changed some small little thing while I was getting this integrated into my site, because if you create an account and login using FireFox, you’ll notice that you can’t click on any of your folders or files. It’s like the browser just ignores the links. If you look at the source code they are getting properly returned by the php code as a hrefs so I don’t know why the heck FireFox isn’t treating them appropriately.
It’s been driving me insane for a couple of days now. Any idea what’s going on or have you ever ran into this before? Thankfully everything works fine in IE7 so it’s at least functional for now.
Joshua Kephart said this on May 27th, 2007 at 11:58 pm
A internal messaging System would be nice, to leave small notes for anyone else…
comA said this on June 5th, 2007 at 4:09 pm
Don’t know if you ever checked out the above post, but I fixed it now.
Joshua Kephart said this on June 17th, 2007 at 5:20 pm
I did check out your post actually, but the link never worked until recently it seems. Glad to see you got it all worked out
MeltingIce said this on June 19th, 2007 at 8:21 am
Keep getting “user add fail”.
The isnstalation worked ok and the tables seem ok on the SQL…
Why cant’t I add users, any idea?
João Carlos said this on July 18th, 2007 at 8:20 am
Thats pretty strange, do you have any registered users at all?
MeltingIce said this on July 19th, 2007 at 11:01 pm
how come when someone trys to upload a big file it redirects to the login page after a while.
Mat said this on July 28th, 2007 at 12:14 am
Hey MeltingIce Great Code
loved it in the demo but i had one problem…
and thats when i came to install it, it gave me this error:
Fatal error: Call to undefined function: hash() in /home/content/t/a/s/tassmanian/html/creusion_main_folder/labs/space/install.php on line 15
i tried doing what you said about changing the line:
solved previous problems again simply change :
@mysql_pconnect($mysqlhost, $mysqluser, $mysqlpass) or die (mysql_error());
to:
@mysql_connect($mysqlhost, $mysqluser, $mysqlpass) or die (mysql_error());
and it still didn’t work… can you tell me how to fix this issue..?
thank you and wish you luck with your great project
Yahya El Sherif said this on September 1st, 2007 at 10:53 am
If the issue is the hash() function, then you don’t have PHP5 installed so you have to use the PHP4 version. Give that a try, it should work. Let me know if you still have issues.
MeltingIce said this on September 1st, 2007 at 11:43 pm
I’m trying to install meltingice. I’ve extracted the files to my server and when I run install.php and supply the necessary information I get an error that says, “Table add failed. Please check settings and try again.” When I check the database, I see that some of the tables have been created, namely mfs_admin and mfs_users. Can you offer any tips on what I’m doing wrong?
Mike said this on September 7th, 2007 at 11:02 am
Hi. I am trying to install and keep getting this error. Any ideas as to what the problem might be?
Table add failed. Please check settings and try again.
Joseph said this on September 12th, 2007 at 11:23 am
hi ! i’m trying to install and using my sql database Php4 & php5 , but it’s show this statement “Table add failed. Please check settings and try again.”
how can i install and fix it ???
i very love this script , it can limit space …but can’t limit bandwith …hmm forget it
Tuan said this on April 10th, 2008 at 5:14 pm
I need help please. I want to limit the file extensions that can be uploaded, but I don’t know how. I know this comment is late too, sorry, but can you help?
Jouk said this on December 19th, 2008 at 12:36 pm
Same error as João Carlos , Keep getting “user add fail”.
Seemingly the problem is that I used an “_” in the username. Without this underscore, I could add users.
Also, table add fail during installation, was solved by allowing writing tot config.php during setup.
Added the following php.ini in root directory (under plesk) :
post_max_size = 100000000000 ;
upload_max_filesize = 100000000000 ;
Herman Claus said this on December 27th, 2008 at 1:11 pm
[...] http://blog.meltingice.net/meltingice-file-system/ [...]
codeAPE » Blog Archive » PHP Based File Managers said this on February 8th, 2009 at 10:21 pm
Hey there,
mfs2 is looking awesome (I watched the videos). Where can I download it (svn asks for authentication)? I don’t care about the hacker (Mr. Black) issue because I’d like to install mfs2 in our private network. Thanks in advance. Andre
Andre said this on April 1st, 2009 at 1:28 am
Hello There,
I am very Pleased to introduce our new website ScriptsBase.com. Scripts Base is intended to be the largest source uncomparable with others for absolute free or commercial website development scripts in ASP, .NET, PHP, JAVA, CGI, PERL and much more. Webmasters can easily find accurate, amazing, interesting, capturing, exiting, tarnishing, resolutions for their website.
Please feel free to submit your scripts to our website here (http://www.scriptsbase.com/submit-script/) for inclusion in our directory.
Pleasure will be continued in rendering our service with our assurance that website will stand as outstanding performance comparatively and help you better and best among all marketed and makes you to feel envy by others and will have definitely pride achievement to the maximum and success for your assignment.
Thanking You,
Karthick,
Site Admin,
ScriptsBase.com
Karthick said this on September 29th, 2009 at 5:12 am
where i can Download ????
iche_careca said this on October 24th, 2009 at 10:07 am