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.


Topics - khansahib

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

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?

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

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.


Quote
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: http://kb.askmonty.org/en/mariadb-versus-mysql/
 
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!
 
 
Thanks!
Dave
 
--
Dave Koppel
www.wiredtree.com

Please suggest what to do.

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

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.

-Regards.

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

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.

-Regards.

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

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

Quote
[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.

Cordially,
Khansahib

6
Discussion & Troubleshooting / Page Numbers in title
« on: July 15, 2011, 05:36:03 PM »
Hello,

I want to know how should I include Page numbers in Title like

Example: www.site.com/gallery/cat-desktop-wallpapers-1.htm has title (Desktop Wallpapers) now all the other pages in that category has same title where as I want Page Numbers at the end of title like in this case (Desktop Wallpaper Page #2) for 2nd page and so on.....

Please suggest how to do it :).

-Regards.

7
Discussion & Troubleshooting / Google Canonical
« on: July 11, 2011, 05:48:35 PM »
Hello,

I am running 4images on my website, today i checked the Google webmaster section and i have noticed that Google is pointing many pages as duplicate, I am trying to use Google Canonical but i am unable to fix this issue. My website URL structure is as follows.

site.com/stuff/cat-nokia-7710-themes-27.htm
site.com/stuff/cat-nokia-7710-themes-27.htm?page=2
site.com/stuff/cat-nokia-7710-themes-27.htm?page=3

and so on

now I want to add Google Canonical to my first URL i.e. site.com/stuff/cat-nokia-7710-themes-27.htm

How should I do this?

8
Programming / Duplicate Page Title
« on: July 01, 2011, 06:18:14 PM »
Today i was checking google webmaster tools and i've noticed that google was pointing lots of my website pages with duplicate titles..

For example:
cat-***-311.htm
cat-***-311.htm?page=1
cat-***-311.htm?page=2
cat-***-311.htm?page=3
cat-***-311.htm?page=4
and so on....

and all of them are showing same title which is not good according to google SEO, due to which my site traffic has dropped alot..
now i want the title to show page number in-order to avoid the duplication.. or if u think there is any other way to fix this.. please share it..
Thanks..

9
Discussion & Troubleshooting / Error adding category
« on: April 05, 2011, 10:53:34 AM »
Hello,

I am getting strange issue while adding new category from "Add categories" option in admin panel its coming up with the following error message.

Quote
Error adding category

Can anybody please suggest what should I do to fix this issue.

-Regards.

10
Discussion & Troubleshooting / Mysql Issue
« on: January 22, 2011, 07:03:58 AM »
Hi,

I have seen that the 4images databases are using large percentage of CPU, i contacted my server provider here is what they recommended.

Quote
I could see more number of open connections to the MySQL service. Please contact your developer to close the connections properly in the coding. You can close the connections using the function mysql_close() in the PHP code:

Please suggest.

-Regards.

11
Installation, Update & Configuration / Mysql Usage
« on: January 19, 2011, 07:19:59 AM »
Hi,

I have seen that the 4images databases are using large percentage of CPU, i contacted my server provider here is what they recommended.

Quote
I could see more number of open connections to the MySQL service. Please contact your developer to close the connections properly in the coding. You can close the connections using the function mysql_close() in the PHP code:

Please suggest.

-Regards.

12
Discussion & Troubleshooting / Error_log File
« on: January 12, 2011, 05:33:02 AM »
Hi,

Today i checked a error_log file located in the directory where we have installed 4images. The size of that error_log file is 650kb.

here is some text copied from error_log file.

Quote
[21-Nov-2010 10:50:32] PHP Parse error:  syntax error, unexpected $end in /home/gallery/public_html/themes/includes/functions.php on line 522
[21-Nov-2010 10:50:35] PHP Parse error:  syntax error, unexpected $end in /home/gallery/public_html/themes/includes/functions.php on line 1507
[21-Nov-2010 10:50:35] PHP Parse error:  syntax error, unexpected $end in /home/gallery/public_html/themes/includes/functions.php on line 1507
[30-Nov-2010 14:50:22] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/gallery/public_html/themes/includes/db_mysql.php:192) in /home/gallery/public_html/themes/includes/sessions.php on line 101
[30-Nov-2010 14:50:22] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/gallery/public_html/themes/includes/db_mysql.php:192) in /home/gallery/public_html/themes/includes/sessions.php on line 101
[30-Nov-2010 14:50:22] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/gallery/public_html/themes/includes/db_mysql.php:192) in /home/gallery/public_html/themes/includes/sessions.php on line 101
[30-Nov-2010 14:50:22] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/gallery/public_html/themes/includes/db_mysql.php:192) in /home/gallery/public_html/themes/includes/sessions.php on line 101
[30-Nov-2010 14:50:23] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/gallery/public_html/themes/includes/db_mysql.php:192) in /home/gallery/public_html/themes/includes/sessions.php on line 101
[30-Nov-2010 14:50:23] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/gallery/public_html/themes/includes/db_mysql.php:192) in /home/gallery/public_html/themes/includes/sessions.php on line 101
[30-Nov-2010 14:50:23] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/gallery/public_html/themes/includes/db_mysql.php:192) in /home/gallery/public_html/themes/includes/sessions.php on line 101

Can anybody please suggest how to fix this?

13
Hi,

I am using 4images and really loving it. It really is an awesome script. Well just thinking whether there is any possibility to have an option to add/copy images to multiple categories?

I am willing to pay for this task. Let me know if any one is able to do it.

-Regards.

14
How can i've different/independent number of rows and columns for different categories in a gallery??

Thanks :)

15
Discussion & Troubleshooting / Problem Using PlugIns
« on: September 21, 2010, 09:56:57 AM »
I've a strange problem using plugins..
when i click on it, first it asks for relogin.. after entering that i get message, "logged in.. you'll be redirected" then error 404 page appears..

and also i want to get rid of entering the username password again and again..

thanks

Pages: [1] 2