|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
that is all
|
|
|
|
Joined: Dec 2003
Posts: 1,796
Pooh-Bah
|
Pooh-Bah
Joined: Dec 2003
Posts: 1,796 |
Welcome to gallery software
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
you mean php safe mode then ?
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Yep, php safe mode.
Allen, yeah that's where I'm running into the problem. Will have to allow it to run under both methods, but when safe mode is on it's not going to be as scalable since we can't create new directories. We'll have to just stuff everything into one directory on that condition.
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
I concourr... Safe mode does suck... In fact, it sucks so badly that PHP6 doens't come with it anymore ...
|
|
|
|
Joined: Dec 2003
Posts: 1,796
Pooh-Bah
|
Pooh-Bah
Joined: Dec 2003
Posts: 1,796 |
Require php5
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
safemode exists in PHP5 though..
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Though I am curious at what point we require PHP5 lol
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Well considering we still have quite a few potential customers that are on hosts that are still running something earlier than PHP 4.3, it will be awhile before we make the leap to having PHP5 as a requirement.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
To add to that, like I said, we can code around it where needed. If safe_mode is turned on, then it will just dump all of the gallery uploads into a default/thumbs, default/medium, default/large directories that will be created on the install/upgrade. When it's off it will create a subdirectory for that particular forum using the forum id.
The latter will offer the best performance, but if you're on a shared host then chances are your site isn't overly huge so dumping everything into one directory won't be too bad. If you have so many pictures uploaded where it becomes a problem, then most people would be looking at switching to a bit higher end host anyways where safe mode could be turned off.
|
|
|
|
Joined: Jul 2006
Posts: 4,057
|
Joined: Jul 2006
Posts: 4,057 |
Well considering we still have quite a few potential customers that are on hosts that are still running something earlier than PHP 4.3, it will be awhile before we make the leap to having PHP5 as a requirement. Phew But i can Turn Safe mode off I don't think Direct Admin (My Server control panel) supports php5 yet officially. And i haven't a clue how to upgrade to it. along with mysql its a nightmare Gizmo can do with out lol
BOOM !! Version v7.6.1.1 People who inspire me Isaac ME Gizmo
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Psh, if you screw up your server, I'm so charging you to fix it lol...
Can't wait for PHP6 though, looks like fun and a headache all at the same time lol...
|
|
|
|
Joined: Jun 2006
Posts: 3,837
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,837 |
Wouldn't it be easier to just specify that safe mode must be disabled in order to fully run UBB?
I know that other software specifies this - shouldn't see why you should have to conform to having safe mode enabled.
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
It would be easier, but with a lot of hosts it's not an option or possibility, and people don't want to have to switch hosts just to run a script; especially when they're comfortable with situations at that host...
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Yeah, it would definitely be easier to do that Ian But we have a lot of customers that are somewhat stuck on, or just don't want to move from, their current host that has safe_mode enabled. So this will at least give them an option to have gallery forums, but it won't be as scalable as it would be on a host that doesn't have safe_mode enabled.
|
|
|
|
Joined: Jul 2006
Posts: 116 Likes: 4
Member
|
Member
Joined: Jul 2006
Posts: 116 Likes: 4 |
Will have to allow it to run under both methods, but when safe mode is on it's not going to be as scalable since we can't create new directories. We'll have to just stuff everything into one directory on that condition. It is not really a safe mode problem but a permission issue with mod_php. Basically, Apache's PHP module is creating the directories under the owner/user of the Apache webserver instead of the owner/user of the script. With enabled safe mode the script and directory must have the same owner. A fix for this problem is using PHP with suexec. Some hosting control panel such as the pretty popular cPanel have suexec support. On another note, it is also possible to store files in the MySQL database. This is sometimes even faster then files on the file system.
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
On another note, it is also possible to store files in the MySQL database. This is sometimes even faster then files on the file system. I would recommend against it, possible overhead issues that will likely be a pain for users who just want a simple gallery
|
|
|
|
Joined: Jul 2006
Posts: 116 Likes: 4
Member
|
Member
Joined: Jul 2006
Posts: 116 Likes: 4 |
It could be added as optional feature so the users can choose whatever they want.
I must admit that I was longtime myself not a big fan of MySQL based attachments or templates. However, this changed with the caching abilities of MySQL 4.1+
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
We may add MySQL storage as an option at some point. We'll start with flat file storage for the initial release. When I started I had to make the decision to go with one way or the other. The downside to MySQL storage is many of our customers have limited MySQL storage space but a lot of actual hard drive space. The second factor is that if the image is stored in MySQL it can't be cached by the browser, as far as I know, which leads to more bandwidth.
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
2 members (DennyP, 1 invisible),
969
guests, and
171
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|