Results 1 to 6 of 6

Thread: internal server error after update php too 7.2

  1. #1
    Join Date
    May 2018
    Posts
    3

    internal server error after update php too 7.2

    Hi
    I have a server on centos with multi php & working true.
    1- php 5.6
    2- php 7
    #PHP Settings
    php1_release=5.6
    php1_mode=suphp
    php2_release=7.2
    php2_mode=suphp
    e
    evry thing working true but after update 7 too 7.2 in php 7.2 we recived error:
    Internal Server Error

    Could not execute script "/home/...../domains/..../public_html/info.php"
    suPHP 0.7.2

    please help me

  2. #2
    Join Date
    Aug 2015
    Posts
    292
    It coul d be a permission error. Try to rebuild Apache first.
    Kind regards, Fred

    Alentejo Webdesign
    Webdesign with Passion is what we do
    Web development, Hosting, Speed Optimizing & More......

  3. #3
    Join Date
    May 2018
    Posts
    3
    Quote Originally Posted by Awd View Post
    It coul d be a permission error. Try to rebuild Apache first.
    Hi
    I wont any change on permision just php 7 too 7.2.
    However, how to rebuild Apache ?

  4. #4
    Join Date
    Aug 2015
    Posts
    292
    Assume you have custombuild, then
    Code:
    cd /usr/local/directadmin/custombuild
    ./build update
    ./build apache
    ./build php n
    ./build rewrite_confs
    Kind regards, Fred

    Alentejo Webdesign
    Webdesign with Passion is what we do
    Web development, Hosting, Speed Optimizing & More......

  5. #5
    Join Date
    May 2018
    Posts
    3
    Hi
    My problm resolved by changing php one & two !
    cd /usr/local/directadmin/custombuild
    nano options.conf

    I change :
    php1_release=5.6
    php1_mode=suphp
    php2_release=7.2
    php2_mode=suphp

    to

    php1_release=7.2
    php1_mode=suphp
    php2_release=5.6
    php2_mode=suphp

    save & exit
    then

    ./build php n
    ./build rewrite_confs

    Then again

    cd /usr/local/directadmin/custombuild
    nano options.conf

    I change :
    php1_release=7.2
    php1_mode=suphp
    php2_release=5.6
    php2_mode=suphp

    to

    php1_release=5.6
    php1_mode=suphp
    php2_release=7.2
    php2_mode=suphp

    then

    ./build php n
    ./build rewrite_confs

    the problem resolved

  6. #6
    Join Date
    May 2008
    Posts
    651
    I highly recommend you to consider moving away from SuPHP and use PHP-FPM instead.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •