IT_Architect
Verified User
- Joined
 - Feb 27, 2006
 
- Messages
 - 1,029
 
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".
	
	
	
		
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:
	
		
gcc -v displays: gcc version 6.4.0
				
			
		Code:
	
	./build update
./build rewrite_confs
	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