Month: May 2012

  • [How To] Disable Suhosin for a domain

    If you are getting following error related to suhosin

    /usr/bin/php: symbol lookup error: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/suhosin.so: undefined symbol: zend_atol
    [Sun Jan 30 11:07:08 2011] [error] [client] Premature end of script headers: /home/username/public_html/wp-admin/index.php

    It means that Suhosin should be disabled for the particular domain. We are going to see how this can be achieved using php.ini. Please note that .htaccess does not support the PHP values if suPHP is enabled on the server. Hence, we are using php.ini to achieve the goal.

    Steps to disable Suhosin

    1) Check the loaded global PHP configuration file php.ini

    php -i | grep php.ini

    Output:

    Configuration File (php.ini) Path => /usr/local/lib
    Loaded Configuration File => /usr/local/lib/php.ini

    2) Copy the file into the account of the domain in the problem

    cp /usr/local/lib/php.ini /home/username/public_html
    cd /home/username/public_html

    3) Edit the copied php.ini using any editor

    vi php.ini

    4) Search for the following string

    extension="suhosin.so"

    5) Comment the line

    ;extension="suhosin.so"

    6) Add the following line at the end of the file

    suhosin.simulation=On

    or

    suhosin.simulation On

    7) Restart apache service

     If any feedback, queries are always welcome!

    Review Overview

    User Rating: 4.7 ( 1 votes)
  • Different ways to reset / change / update cPanel password

    The WHM cPanel control panel is widely used control panel for account management by many hosting companies. cPanel provides easy user interface to manage the account to its customers and thus making hosting providers life bit easy.

    The user has to login into the cPanel hosting account control panel using user ID and password. The cPanel account password reset / change / update may be required if:

    • A user has forgotten his cPanel credentials.
    • The Web hosting provider is forcing it's user to change / reset / update cPanel password at regular intervals.
    • A user wants to reset / update / change cPanel password as part of scheduled tasks.

    This article explains different ways to reset / update / change cPanel account password.

    Option 1:

    Reset / Update / Change cPanel account password from cPanel control panel

    • Login to the cPanel with login url as http://yourdomainame.tld:2082 or https://serverHostName.tld:2083
    • At the top of your right hand side near logout option, Click on the drop down icon present near cPanel username - > Click on Password & Security option as shown in below image.

    cpanel-password-reset

    • You will be taken to Password & Security page from where you can provide your existing cPanel password and the new cPanel password.

    cpanel-password-reset1

    • Once everything is green then click on change password domain and your will be redirected to the success page and back to cPanel login page.
    • Try to login into the cPanel using the new password now.
    • If you are not able to login with the new cPanel password then try clearing your browser cache, cookies. Do not try more than 2 times unsuccessful cPanel login attempts as your IP may get blocked after 3 unsuccessful attempts. In this case contact your web hosting provider to reset the cPanel password.

    Option 2:

    Reset / Update / Change cPanel account password from WHM control panel

    • If you are a support executive or web hosting manager and have access to WHM control panel then cPanel user password can be changed / reset / updated from WHM.
    • Login to the WHM control panel using link https://serverHostName.tld:2087 as a root user.
    • Post login go to Home -> Account Functions  -> Password Modification panel and search to select the cPanel user or domain account to reset the password.

    cpanel-password-reset2

    • As shown in above image, the page will display above details and options. To reset / change / update cPanel account password of User "test", provide the new password in the "Change Password" field as highlighted in above image.
    • Once the password is chosen then click on "Change" option to reset / change / update cPanel account password and the page will be re-directed to password change confirmation page.

    Option 3:

    Reset / Update / Change cPanel account password from Command Line using Shell to the Web Hosting Server

    • Login into the server using SSH as a root user.
    • Run the following script provided by cPanel from command line to reset / change / update cPanel account password of User. Example: Username is "test".
    /scripts/chpass test Lt3Vde65gQ

    where

    /scripts/chpass is a cPanel password reset / change / update script

    test is cPanel username

    Lt3Vde65gQ is the password

    Note: The password should not contain special characters.

    • The command will display as success result post successful cPanel user password update/ reset / change.
    Password for “test” has been changed.
    • Don't forget to synchronize the new password with the default FTP cPanel username using below the cPanel script.
    /scripts/ftpupdate

     If any feedback, queries are always welcome!

    Last Update : 10/01/2019

    Review Overview

    User Rating: 4.9 ( 2 votes)
Back to top button