I am in no way a php programmer and this is my first ever successful Dolphin install. AS SUCH, all of this is just a guideline for you on how I made it work. I do tend to tell stories in a linear fashion that some will mistake as experience. I HAVE NONE. I just wanted to make that clear again. Anyone that finds anything wrong with this post, PLEASE feel free to speak up. You won't hurt my feelings as I don't really have any. (lol)
To start with, I have to say that I spent an enormous amount of time poking around in stuff I just didn't have enough understanding about. I thought with enough dilligence, I could solve all the problems and I went after it like I always do.
Forget that! I got tired of that and finally found a host that took the patience required to help me work through each problem as it arose. I now have a fully functioning D7 site that has all the default mods enabled and working. I can even upload a video that is 150 megs in size (or even larger if I so desire to adjust it)
Thanks Luc at HostForWeb. You and your team did a terrific job getting me up and running and wasting hours of your time on my incessant questioning.
First & foremost, PERMISSIONS ARE EVERYTHING. This problem starts right from the moment you decide to install D7 and the chosen method. The first step is to either ftp or upload the zip directly onto your server. The next step is to unzip it and adjust the permissions of the folders/files. Doing it any other way will only create extra grief for you.
RECOMMENDATION!
Set the permissions before you run the install script! There are two ways to do this. The HARD way and the EASY way! If you are a beginner, I recommend the HARD way!
- Use the file manager in cpanel to go in and set each individual file and folder permissions setting.
- Use SSH to run a script to set those permissions. (way easy once you learn how)
Why do I recommend the hard way? Well, let me tell you. You are building a very complicated and advanced website. This website will have tons of features that you need to learn and understand to be successful at managing it. By doing some of the initial install sequences manually, you will familiarize yourself with how the entire package was assembled. This makes it easier to make changes or adjustments in the future.
There is a D7 install script here: http://www.boonex.com/trac/dolphin/wiki/DetailedInstall70 In it you will find MOST of what you need. When you get to the permissions section, I have a few more for you to add in. These are for the extra mods that are in the new D7 but are not in those chmod scripts.
The following files and folders need to be made writeable. These are all under /modules/boonex & aren't included in the installation file. You can get the site up but as soon as you try and install the mods from the admin panel, you'll be doing these individually anyways. Might as well get them out of the way.
./avatar/data/images
./data/tmp
./desktop/file
./files/data/files
./forum/classes
./forum/conf
./forum/layout
./forum/log
./forum/js
./forum/cachejs
./photos/data/files
./profile_customize/data/images
./profiler/log/profiler.log
Now for some other things I found out about. The video stuff has been killing us here. Before we go any further, I wanted you to know that I have a VPS with HostForWeb and also my own installation of RMS on my server. I did not install it myself, Luc installed it and configured it so it works well for me.
Once we had it all up and running, I started getting an 'Upload Error 403' We solved this by changing the media folder and all the folders beneath it to 777 permissions.
After that, we found the crontab throwing an error. The permissions for the crontab were set wrong. (0755). They need to be (4755). If you are versed with SSH, you can do this or you can just ask your "buddy" to do it for you. Problem solved. we were now able to upload the videos.
Well, sort of. We were able to upload using the regular uploader but the flash uploader was throwing the same error as before 'upload error 403'. This one was a little weird and way above my head. Of course, Luc zero'd right in on it as a problem with the mod_security setting in Apache. I asked him to explain it to me and this was his response:
As for mod_security, I simply added a white list :
SecRuleRemoveById sec_ID_here
within /usr/local/apache/conf/userdata/std/2/*/domain.com/mod_sec.conf
and restarted apache.
Actually, I've modified the permissions on the flash/ cache/ folders to 771
Changed the owner for both folders (subfolders included) to skyforum:nobody
Modified RMS (/opt/RMS_7.0/webapps/*/WEB-INF/red5-web.properties) so that it points to your main server IP address.
Voilà ! :)
Yeah, that totally explained it to me too! LOL! But it worked, no more problems with the flash thingy and uploads for everything are now working perfectly.
So off I go thinking I have everything working okee dokee. Time to test. I have this 120 MB MP4 file i have been trying to upload forever (ask DosDawg) and have not been successful at all at getting it done. Kept running into a fatal error somewhere around 100 megs. Well it happened again... So off I went to find out why. I didn't have any help on this one so I want to take credit for the find.
All my settings were perfect, 150 upload_max, 150 post size, etc etc etc. What I found was happening was I was running out of memory on the upload. My current memory was set to 256 megs. I was exhausting it before the video completed the upload process. I set the memory limit to unlimited (-1) and the problem was solved.
HooHah!
There were a few more things that came up but they were inconsequential. I am so excited and impressed with this piece of software now that I have seen it can work. I did add one mod. I was very dissatisfied with the video outcome, both on keep original quality and not. One couldn't stream and the other was horrible to look at. I did a little testing with a small mod that Sideburnz made and for a couple of words that start with the letter q, it's genius. I can now fine tune the video output that puts my stuff a step above youtube. Just thought I'd throw that in there...
I hope this helps some of you, remember. PERMISSIONS ARE EVERYTHING.