Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - khansahib

Pages: [1] 2 3 4 5 ... 7
Discussion & Troubleshooting / download.php issue
« on: December 03, 2012, 07:34:51 PM »

Today I was having some issue with my server, I contacted support believe me they are awesome people I mean they are very hard working and take the problems very seriously. Well my ticket related to problem was assigned to senior admin, after reviewing here is what he suggested.

For the most part, I would go through your script and make sure it is not having issues serving files. Most people that do file downloads don't process the download via PHP to serve static content as long running downloads can take forever to process:
root@server [/home/user/public_html]# ps aux |grep download
user 14732  0.0  0.2 225172 18280 ?        S    23:10   0:00 /usr/bin/php /home/user/public_html/apps/download.php
user 15164  0.0  0.2 225172 18280 ?        S    23:11   0:00 /usr/bin/php /home/user/public_html/apps/download.php
user 15646  0.0  0.2 226456 19496 ?        S    23:12   0:00 /usr/bin/php /home/user/public_html/apps/download.php
user 16213  0.0  0.2 225172 18152 ?        S    23:14   0:00 /usr/bin/php /home/user/public_html/apps/download.php
user 16877  0.0  0.2 225532 18628 ?        S    23:15   0:00 /usr/bin/php /home/user/public_html/themes/download.php
user 16960  0.0  0.1 218856 13304 ?        S    23:15   0:00 /usr/bin/php /home/user/public_html/games/download.php
user 17606  0.0  0.1 218856 13320 ?        S    23:16   0:00 /usr/bin/php /home/user/public_html/games/download.php
user 17664  0.1  0.2 225532 18616 ?        S    23:17   0:00 /usr/bin/php /home/user/public_html/themes/download.php
root     17771  0.0  0.0  61192   768 pts/0    S+   23:17   0:00 grep download
root@server [/home/user/public_html]# date
Mon Dec  3 23:17:24 PKT 2012
I am not sure what your site is letting them download through this script but they have been running for a long time (7min on the top process) so if they have a slow connection (like downloading them to their phone with bad reception/data) this could lead to long running PHP processes on your server. It is far better to let Apache serve static content rather than streaming it through PHP. This is something to take up with your developers.

Can anybody please help on this?

Discussion & Troubleshooting / MariaDB
« on: November 08, 2012, 10:44:44 AM »

I am having server with WiredTree from quite some time, I usually open a ticket to check the server performance and do all required optimization, tweaking etc. Today they suggested me to move from MySQL to MariaDB as they have given way too much of justifications.

The main issue currently I am having is if I move from MySQL to MariaDB will 4images work the same?

Below please find copy of ticket conversation with Wiredtree support technician.

We would be happy to install MariaDB as a replacement for MySQL on your server. Before we do so, there are a few concerns we need to make you aware of.
MariaDB replaces both the MyISAM and INNODB engine with a binary compatible engine based on MySQL. The MyISAM engine replacement is completely compatible while the INNODB replacement (XtraDB) is nearly 100% compatible.
If you are looking to resolve errors with your MySQL databases, this upgrade is not for you. However, if you are looking to attain more database speed and less disk I/O, this upgrade IS for you.
For further compatibility reading, I would suggest:
We cannot guarantee the speed increase as there are a number of factors that contribute to the speed of any database structure.
However, we are so convinced of MariaDB's abilities, we are willing to use it personally and fully support it. Our tests on VPS/Hybrid and dedicated servers have consistently shown improved results.
I would highly recommend submitting a Support ticket requesting configuration optimization approximately 24 hours after installation.
Optimization will help you get the most out of your new setup.
When MariaDB is installed, cPanel's MySQL updates are disabled. If you would like to have MariaDB updated in the future, you would simply need to open a ticket requesting the upgrade.
Per internal policy, the MariaDB process will include a local backup of your current MySQL flat files as a pre-caution. We cannot guarantee the integrity of these files but we will have them in place as a precaution.
Storing these backups will require that we temporarily stop MySQL and store a backup within /var/lib/mysql.backup.
These backups are especially important if you are moving from MySQL 5.0 to 5.1 or 5.1 to 5.5 as a number of changes are made to the schema.
When moving from one version to another such as 5.0 to 5.1 or 5.5, it will be necessary to recompile Apache/PHP under cPanel's EasyApache.
This normally takes anywhere from 20 minutes to an hour and results in a proper PHP MySQL extension.
This would be the same process for a normal MySQL upgrade.
After the process is complete and you have settled in with MariaDB, we would love for you to update your ticket and let us know any comments you have about the upgrade experience and the performance.
If you are ok with everything above and you are ready to have MariaDB installed, just let us know and we will get started!
Dave Koppel

Please suggest what to do.

I can still see the same error, can anybody please update me?
what for 4images version, and:
This is strange, in theory no such errors should occur...can you provide the image that produces this error? I'd like to see what's in the EXIF of it.

mfg Andi


there is not image details all I can see in error_log files is already attached, can you please guide me so I can follow those steps in-order to get EXIF of it.

I can still see the same error, can anybody please update me?


mfg Andi

I think as stated there, that MOD is for installing 2 galleries on same database, whereas in my case we have totally independent Databases but on same domain.

Mods & Plugins (Requests & Discussions) / Different DBs I want one system
« on: November 03, 2012, 03:35:09 AM »

I have installed 4images on 3-4 location at my site under different folders and all have its own databases etc.

Now I want a suggestion on how I can develop a system that in-case I enable user registration/login system it should work for all locations, I mean once the user signed up or logged in he must have user privileges on all the locations where 4images is installed.

Your help will be highly appreciated.


Discussion & Troubleshooting / Re: MySQL Version Query
« on: September 21, 2012, 04:09:22 PM »
Upgraded the version, everything is running smoothly.

Discussion & Troubleshooting / MySQL Version Query
« on: September 09, 2012, 04:53:46 PM »

Currently my server is running on MySQL v5.0.95 I want to upgrade the version to 5.5. My question is should I have to make any changes to my 4images? or updating the version of MySQL doesn't have any effect on 4images script.

Please suggest.



I have attached the error_log file, I hope you will review it.

What is your 4images version?
This has been fixed in 1.7.10

Sir, 4images version is the updated one i.e. 1.7.10 I have posted the line which is pointed out by error_log file. Is there anything wrong with the posted php code?

Also I have attached my gallery's functions.php file

Please suggest.

Discussion & Troubleshooting / Division By Zeror Error in error_log File
« on: December 30, 2011, 05:45:41 AM »

I was checking the error_log file and I can see the following error message in that file.

[30-Dec-2011 08:35:19] PHP Warning:  Division by zero in /home/site/public_html/gallery/includes/functions.php on line 315

whereas on line 315 in functions.php I can see the following:

$exif_array[$exif_match[$key]] = "1/".round((1/($ExposureTime[0]/$ExposureTime[1])),0)." sec(s)";

Please suggest how to resolve this.


I am also waiting for release of this template, can you please update us on this?

Mods & Plugins (Requests & Discussions) / Re: Server Load increasing
« on: November 18, 2011, 01:52:48 PM »
I already run that script but in vain.

Mods & Plugins (Requests & Discussions) / Re: Server Load increasing
« on: November 17, 2011, 03:33:30 PM »
well there is no proper solution for this, I am facing the same issue i have very large gallery and I am facing the same issue, cache is enabled but in vain.

Sorry will be careful next time..
i excluded the functions one by one and i'm left with none of the functions of your optimized code...

here are the errors
Fatal error: Cannot redeclare fixname() in /home/xxxx/public_html/includes/sessions.php on line 678
Fatal error: Cannot redeclare get_category_url() in /home/xxxx/public_html/includes/sessions.php on line 678
Fatal error: Cannot redeclare get_image_url() in /home/xxxx/public_html/includes/sessions.php on line 678

Pages: [1] 2 3 4 5 ... 7