Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Dec 2009
    Posts
    15

    Default suphp - cpanel 301 redirects question

    hi we have upgraded our new servers to suphp, and will be transferring quite a few accounts from a vps without suphp.

    This will bring problems we know, but one of the questions being asked by our clients is "Will 301 redirects in cpanel still work"

    I'm sure these are based on htaccess so probably not, what should we do? Many clients have set up permanent 301 redirects for pages on their websites which have changed.

    advice appreciated :-)

  2. #2
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by uk01 View Post
    hi we have upgraded our new servers to suphp, and will be transferring quite a few accounts from a vps without suphp.

    This will bring problems we know, but one of the questions being asked by our clients is "Will 301 redirects in cpanel still work"

    I'm sure these are based on htaccess so probably not, what should we do? Many clients have set up permanent 301 redirects for pages on their websites which have changed.

    advice appreciated :-)
    There should not be any issue with standard Apache directives such as what is used for a redirect; this should be unrelated to SuPHP.

    Other than access permissions and ownerships, the main concern I would have is if an existing .htaccess file contains PHP-related directives beginning with "php_" such as "php_flag" and "php_value" used to define PHP configuration directives. To be compatible with SuPHP, these custom settings would need to be converted into a php.ini format like that of the server-wide PHP configuration file (at "/usr/local/lib/php.ini").

  3. #3
    Member
    Join Date
    Dec 2009
    Posts
    15

    Default

    many thanks :-)
    our transfer to the dedicated suphp server went well, just one or two hiccups in htaccess, roundcube webmail one of them, we just renamed the htaccess to php.ini and it worked!

    p.s. how do you get this forum to send email notifications of replies - and add posts to the control panel?

  4. #4
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by uk01 View Post
    we just renamed the htaccess to php.ini and it worked!
    Not a very wise move!

    The .htaccess and php.ini files use two totally different sets of commands ...

    In the .htaccess, you will want to comment out and / or remove any references to "php_flag", "php_admin" or AddType commands that set additional extensions as PHP scripts.

    If some of the "php_flag" or "php_admin" commands found along the way are actually needed, you can setup a "PHP.INI" for those items.

    (The vast majority of PHP overrides aren't actually needed though)

  5. #5
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by uk01 View Post
    many thanks :-)
    our transfer to the dedicated suphp server went well, just one or two hiccups in htaccess, roundcube webmail one of them, we just renamed the htaccess to php.ini and it worked!
    While the symptom may have disappeared, it will not work correctly to leave .htaccess-style entries in a php.ini file; they are both very different and do not use the same directives. Directives from a .htaccess file are not compatible with directives from a php.ini file and vice versa.

    I would use the system-wide php.ini file as an example for creating custom versions for users; this may be found at the following path:
    Code:
    /usr/local/lib/php.ini
    Quote Originally Posted by uk01 View Post
    p.s. how do you get this forum to send email notifications of replies - and add posts to the control panel?
    It's possible to set forum preferences via the forums user control panel while logged-in:
    cPanel Forums > User Control Panel > Edit Options
    Documentation: cPanel Forums - FAQ: User Profile Features

  6. #6
    Member
    Join Date
    Dec 2009
    Posts
    15

    Default

    hi many thanks for the advice, just hopping over to the roundcube forum because discovered loads of errors from the php.ini file in cpanel!

    Discovered this after finding out that we couldn't create new folders or anything

  7. #7
    Member
    Join Date
    Dec 2009
    Posts
    15

    Default

    p.s. your forum doesn't send emails when someone replies, so we have to remember where we posted... i actually found this again while searching for info on this

  8. #8
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by uk01 View Post
    p.s. your forum doesn't send emails when someone replies, so we have to remember where we posted... i actually found this again while searching for info on this
    To subscribe to a thread, click the menu Thread Tools that is directly above the first post on each page and then click Subscribe to this Thread.

    By default the preference Thread Subscription Mode is set to Do not subscribe -- if this is not desired you must modify or customize the preference via the user control panel of your forums account as described in my earlier reply: suphp - cpanel 301 redirects question - cPanel Forums
    Quote Originally Posted by cPanelDon View Post
    It's possible to set forum preferences via the forums user control panel while logged-in:
    cPanel Forums > User Control Panel > Edit Options
    Documentation: cPanel Forums - FAQ: User Profile Features

Similar Threads & Tags
Similar threads

  1. cPanel redirects question
    By furry in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 08-19-2008, 07:50 PM
  2. 301 redirects and 302 redirects on stat page
    By sebans in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-05-2006, 02:34 PM
  3. 301 Redirects?
    By delraydog in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-10-2006, 07:36 PM
  4. 301 or 303 Redirects
    By Emma in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-13-2005, 06:56 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube