can open websites!!

HamedAli

New member
Joined
Aug 12, 2011
Messages
9
Hello,
I get :
[root@s1 ~]# service httpd start
Starting httpd: Syntax error on line 35 of /usr/local/directadmin/data/users/hotelapa/httpd.conf:
Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration

when I want to start httpd
I can open DirectAdmin but I can not open websites!!
 
You probably have a custom httpd.conf template in /usr/local/directadmin/data/templates/custom/ where there is that php_flag, or, you made some customization and httpd doesnt need that line.

You need to remove that line from custom configuration and rewrite confs using

Code:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d200


Regards
 
@HamedAli,

If you have recently installed suPHP (PHP-CGI), then you need to update httpd.conf of all users of yours. You can do it with the following command, that should be executed in shell:

Code:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue

Please take into consideration the fact, that your httpd templates might need to get modified. See the link http://help.directadmin.com/item.php?id=2 to learn how to do it.
 
Back
Top