Results 1 to 3 of 3

Thread: Apache won't start, 'php_admin_flag' error, normal fixes not working

  1. #1
    Join Date
    Feb 2006
    Posts
    787

    Apache won't start, 'php_admin_flag' error, normal fixes not working

    After restoring DirectAdmin to a new server and going from MOD_PHP to PHP-FPM, Apache does not start and I get errors for "php_admin_flag".
    Code:
    ./build update
    ./build rewrite_confs
    Did not help, in fact it rewrites the errors I fixed. I don't have anything in the custom directory.

    In the control panel I went into "Custom HTTPD Configurations" and pressed the "./build rewrite_confs" button and it displayed:
    Code:
     /usr/local/directadmin/custombuild/build: gcc: not found
     [: gcc ver check: bad number
     [: gcc ver check: bad number
     [: gcc ver check: bad number
     [: gcc ver check: bad number
     Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
     Using 123.45.67.890 for your server IP
     Gracefully shutting down php-fpm56: . done
     Starting php-fpm56:  done
     Gracefully shutting down php-fpm56: . done
     Starting php-fpm56:  done
     Restarting apache.
     Stopping httpd: 	[ FAILED ]
     Starting httpd: 	[ OK ]
     AH00526: Syntax error on line 23 of /usr/local/directadmin/data/users/ineedah/httpd.conf:
    Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration
    gcc -v displays: gcc version 6.4.0

  2. #2
    Join Date
    Feb 2017
    Posts
    11
    Did you set mod_ruid2 to no when you changed PHP mode to FPM?

    You may follow the instructions at https://help.directadmin.com/item.php?id=459

  3. #3
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    7,056
    I guess you have some custom httpd configuration for domains of ineedah user, where php_admin_flag is set.
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

Posting Permissions

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