News:

SMF - Just Installed!

Main Menu
Menu

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.

Show posts Menu

Topics - Administrator

#1
Hi All,

For one of our client I was investigating the issue where the website when accessed shows a Not Found error. On looking at the server error logs, I found logs as below.

QuoteRequest exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

Further checking, found that the issue was with the .htaccess file which conflicts with the one in the root directory of the account. Renaming the unwanted file OR correcting the redirect rules solved the problem.
#2
It's just two weeks, DrupalCon Asia event concluded and our team is prepared for the WordCamp Mumbai event. It's one of the coolest event for WordPress lovers, bloggers, webmaster, developer, fans and followers.

There are many reasons why you should attend WordCamp Mumbai event. For complete information about the event, tickets and venue checkout https://2016.mumbai.wordcamp.org/

If you are attending WordCamp Mumbai 2016, do visit our booth for goodies & information on Refer A Friend & Get Rewarded program.
#3
Errors and Solutions / Maximum number of redirect reached
February 12, 2016, 03:22:56 PM
Hi,

On a server with litespeed installed, you might receive an error

QuoteMaximum number of redirect reached

It is because of the .htaccess rules conflicts. Have a check at the .htaccess file and correct/comment the rules which conflicts with each other.
#4
Hi All,

When you upload the image via Magento admin panel, it might be that the images are not getting displayed and a thumbnail does not gets created. When you try to browse the image using a valid link it shows 404 Not Found Error.

The images gets uploaded under your account & you can view it using File Manager as well. If you have a close look at the file permissions, you will notice that the permissions on files is set to 640. With these permissions you won't be able to browse the images and that is the reason thumbnails are not getting generated and neither it does show the images in products.

This is due to the permission set when files are uploaded is incorrect in lib/Varien/File/Uploader.php. Simply open the file which should be under the root directory of your magento installation.

Quote# vi lib/Varien/File/Uploader.php

Look for

Quotechmod($destinationFile, 0640);

Set it to

Quotechmod($destinationFile, 0644);

Save the file & exit.

When you upload the images and products now, correct permissions will be set on the images and it will generate the thumbnails as well as show the product images.

QuoteLooking for quality Magento hosting? Look no further than MilesWeb's Best Magento Hosting plans.
#5
Hi All,

Couple of days before when trying to SSH a linux server, it was not allowing me to login. It kept on processing without any errors. However, further checking the verbose option with command below.

Quotessh -v root@xx.xx.xx.xx -p 22

I managed to poll the errors. The error was

Quotedebug1: Unspecified GSS failure.  Minor code may provide more information
Cannot determine realm for numeric host address

To fix the above error, I had to open the SSH config file /etc/ssh/sshd_config & find for GSSAPIAuthentication. Set GSSAPIAuthentication to no and restart SSH service.

You will be able to access the server via SSH now.
#6
Hi All,

When trying to perform a restore from command prompt on Windows Plesk Server, you might receive a message as below. The restoration fails.

Quote<?xml version="1.0"?>
<conflicts-description>
<conflict id="1" guid="ca481736a27373d81b38b5d8bc754b97">
  <type>
   <configuration>
    <reason-description>
     <required-resource-description>
      <ip type="shared" value="xx.xx.xx.xx"/>
     </required-resource-description>
    </reason-description>
    <resolve-options>
     <option name="rename"/>
     <option name="do-not-restore"/>
    </resolve-options>
   </configuration>
  </type>
  <conflicting-objects/>
</conflict>
</conflicts-description>
Unable to resolve all conflicts

This error is when any of the module/package isn't installed OR setting isn't correct. You need to check properly what is listed just below      <required-resource-description>. In the above case it means that shared IP isn't set. Simply, login to your plesk panel and assign a shared IP. Now, try to perform the restore. It would work.
#7
Hi All,

When trying to upload the files via FileManager, you might receive errors related to directory listing. It is because passive ports are not enabled in pure-ftpd and server's firewall. Let's know how to enable the Passive Ports and open then in server firewall.

Open pure-ftpd file.

Quote# vi /etc/pure-ftpd.conf

Find for PassivePortRange and uncommend the line. Simply, remove the # just before PassivePortRange. Restart the pure-ftpd service.

Quote# /etc/init.d/pure-ftpd restart

Now, let's open the ports in server's csf (config server firewall) firewall.

Quote# vi /etc/csf/csf.conf

Find for TCP_IN and at the end of line, enter the port range 30000:50000. It should look like as below.

QuoteTCP_IN = "20,21,22,25,53,80,110,143,443,465,587,993,995,2077,2078,2082,2083,2086,2087,2095,2096,30000:50000"

Save the file and quit. Restart csf firewall.

Quote# csf -r

Directory listing should be enabled now.
#8
Hi All,

One of our client tried executing a query from phpMyadmin. However, it threw an error.

QuoteQuery Error: #1296 - Got error 64 'Temp File Write failure' from InnoDB

This error is usually due to the tmpdir set for MySQL/MariaDB is running out of space. By default, it is set to /tmp. Mostly /tmp folder is set to not more than 2GB. If the size of the database is large, 2GB isn't sufficient enough.

You will simply need to increase the size of /tmp OR set tmpdir to some other directory which has sufficient space. Make sure you set full permissions on /tmp folder.
#9
When initiating a backup of MSSQL database using SQL Management Studio, you might get the error as below.

QuoteTITLE: Microsoft SQL Server Management Studio
------------------------------

Backup failed for Server ''.  (Microsoft.SqlServer.SmoExtended)

For help, click: go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.5058.0+((SQL11_PCU_Main).140514-1820+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Backup+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

System.Data.SqlClient.SqlError: Cannot open backup device 'C:\backup.bak'. Operating system error 5(Access is denied.). (Microsoft.SqlServer.Smo)

For help, click: go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.5058.0+((SQL11_PCU_Main).140514-1820+)&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------

This error is due to incorrect permissions on the folder under which the backup file is generated. Simply, add network user's permission on that folder & you will be able to generate the backups.
#10
When trying to manage the accounts from plesk panel 12.0, you get an error as below.

QuoteError: The system cannot find the file specified.

It is because the the update within plesk that needs to be re installed. Simply, login your windows server via RDP and access command prompt. Execute the command below which will perform the updates.

Quote"%plesk_bin%\ai.exe" --select-release-current --upgrade-installed-components

This error also occurs when you try to add a MSSQL database, create FTP accounts OR when trying to set subscription.
#11
Errors and Solutions / Unable To Add Domain From Plesk
August 20, 2015, 08:18:29 PM
When trying to add a domain from Plesk panel, you might receive an error as below.

QuoteError: ProtDir_IIS::update() failed: Add Protected Directory failed: columns siteId, path are not unique (Error code 1)

The above error means the protected directory was not synchronized properly.

Login to your server via RDP & access command prompt. Execute the command below.

Quote"%plesk_cli%\repair.exe"  --synchronize-protected-directories-storage

The above command will synchronize the directories on the server & you should be able to add the domains now.
#12
Errors and Solutions / Unable To wget On CentOS
August 20, 2015, 08:16:10 PM
When trying to perform a wget on CentOS server, you might receive an error as below.

QuoteOpenSSL: error:100AE081:elliptic curve routines:EC_GROUP_new_by_curve_name:unknown group
OpenSSL: error:1408D010:SSL routines:SSL3_GET_KEY_EXCHANGE:EC lib

This is usually due to the older version of openssl installed on your server. It's time to upgrade OpenSSL on the server.

Quote#yum upgrade openssl -y

With the above command OpenSSL will be upgraded on the server. Now, try performing a wget on the server.
#13
You receive this error when you build a database, view reports OR when running operation on a large number of rows within a table that uses the InnoDB storage engine.

This occurs when MySQL runs out of locks, which for an InnoDB database occurs when the buffer pool is full. You can fix this by increasing the size of the buffer pool, by editng the innodb_buffer_pool_size option in my.cnf, to set innodb_buffer_pool_size to a number higher than the default.

Simply, edit the file /etc/my.cnf and find for innodb_buffer_pool_size. Set the value to 1024M OR 2048M. It should look like below.

Quoteinnodb_buffer_pool_size=2048M

Restart MySQL service & try running the query.
#14
You will see the below error in the X-Cart log files.

QuoteAttempt to write data to a missing field of the table. Try to remove X-Cart cache to solve the problem.
Request URI:

As the message says, you will need to remove the X-Cart cache. Kindly browse the steps on clearing the X-Cart cache at https://www.milesweb.com/hosting-faqs/how-to-clear-x-cart-cache/
#15
A quick help to beginners who are unable to upload the files. If you receive an error below when trying to connect via FTP using FileZilla.

QuoteResponse:   421 Sorry, cleartext sessions are not accepted on this server.

Make sure you replace the Server IP OR the domain name in the FTP Host as below.

Quoteftpes://server-ip OR ftpes://domain.com

It uses Encryption type for your server as FTP over TLS/SSL Explicit.
#16
Errors and Solutions / Unable To Add Sub Domain
April 14, 2015, 06:25:53 PM
Hi All,

When trying to add a sub domain it shows an error as below.

QuoteThe system experienced a problem during the creation of the "" subdomain.

Simply, login to the server via WHM as root & access option Tweak Settings. Find for Allow users to park subdomains of the server's hostname. & set it to On.

Click on Save & that is it. You will be able to add the sub domain now.
#17
Hi All,

One of our client was unable to configure the website over cloudflare. When ever he used to enable the cloudflare on the domain, it used to process the request & keep it disabled.

Further checking the cPanel error logs on the server, below logs were being polled.

Quotecpwrapd: falling back to using legacy adminbin: /usr/local/cpanel/bin/cfadmin
[2015-02-27 15:10:30 +0530] info [cfadmin] user_lookup
[2015-02-27 15:10:30 +0530] info [cfadmin] Homedir Owner: 550
[2015-02-27 15:10:30 +0530] info [cfadmin] 550
[2015-02-27 15:10:30 +0530] info [cfadmin] 550
[2015-02-27 15:10:31 +0530] info [cfadmin] HASH(0x134c790)
[2015-02-27 15:10:31 +0530] info [cpanel] fetchzone
[2015-02-27 15:10:44 +0530] info [cpanel] fetchzone
[2015-02-27 15:10:49 +0530] info [cpanel] zone_set
cpwrapd: falling back to using legacy adminbin: /usr/local/cpanel/bin/cfadmin
[2015-02-27 15:10:49 +0530] info [cfadmin] zone_set
[2015-02-27 15:10:49 +0530] info [cfadmin] Homedir Owner: 550
[2015-02-27 15:10:49 +0530] info [cfadmin] 550
[2015-02-27 15:10:49 +0530] info [cfadmin] 550
[2015-02-27 15:10:58 +0530] info [cpanel] Failed to set DNS for CloudFlare record www.solapurbazaar.com!
[2015-02-27 15:10:58 +0530] info [cpanel] {"statusmsg":"You must have the zoneedit feature to take this action.  You currently only have the simplezoneedit feature.","status":0,"needsfeature":"zoneedit"}
[2015-02-27 15:10:58 +0530] info [cpanel] fetchzone
[2015-02-27 15:12:06 +0530] info [cpanel] zone_set
cpwrapd: falling back to using legacy adminbin: /usr/local/cpanel/bin/cfadmin
[2015-02-27 15:12:06 +0530] info [cfadmin] zone_set
[2015-02-27 15:12:06 +0530] info [cfadmin] Homedir Owner: 550
[2015-02-27 15:12:06 +0530] info [cfadmin] 550
[2015-02-27 15:12:06 +0530] info [cfadmin] 550
[2015-02-27 15:12:18 +0530] info [cpanel] fetchzone

When going through the error logs carefully we got to know that this issue is with one feature (Advanced DNS Zone Editor) not enabled in cPanel.

If you face the same issue, simply login to your server's WHM as root. From Packages ยป Feature Manager edit the default Feature list. Tick the option Advanced DNS Zone Editor & click on save.

#18
Errors and Solutions / The uploaded file exceeds xxM
November 05, 2014, 11:58:13 PM
When trying to upload a theme from Prestashop admin panel, you receive an error below.

QuoteThe uploaded file exceeds xxM

It is because upload_max_filesize in your php.ini is set to a value lesser than your actual theme size. Simply, increase upload_max_filesize & set it to higher than your theme size (right click on the .zip file of your theme to know the size).

After increasing the upload_max_filesize value, try uploading your theme. It will upload successfully. 
#19
Hello Guys,

If you want to edit the php.ini file on server and don't know correct location of php.in file then this post will help you.  Below is the command to find location of php.ini server file.

Quote#php -i | grep php.ini

It will show the path as like below.

Quote# php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini


Now you got the location of file, you can edit your php setting for server.

Enjoy !!
#20
Hello Guys,

This post will help you to list the installed modules of http and php. So you can see what modules you have installed on server and found missing module. Below are the steps.

To check PHP installed modules :-

Quote#php -m

It will show the list of all installed PHP modules.

To check Http installed module:-


Quote#httpd -m

It will show the all http installed modules.

Enjoy !!