Invalid command 'php_admin_flag', perhaps misspelled or defined by a module...

rss_pl

Verified User
Joined
Sep 1, 2009
Messages
5
Hi All!

I have DirectAdmin installed on CentOS, everything works fin for today now, apache is not working when I try to restart it I've got strange message:

[root@3xg ]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 30 of /usr/local/directadmin/data/users/rychu/httpd.conf:
Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration

Could anyone can help?

EDIT: also /etc/httpd/conf/extra/httpd-suphp.conf file is empty... is it normal ?

Cheers
Richie
 
Last edited:
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build php d
./build suphp d
 
On command ./build php d I've got following error:

configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make: *** [all] Error 1
 
Now I've got another problem, I can create email boxes but Im unablo to login into this accounts ;/
It looks like DA has been screwed ;/
Is there is any possibility to rewert D.A. to default configuration?

Best Regards
Richie
 
I fixed issue with SuPHP (solved by Google ;) )
But now I have still problem with email accounts, for example,
If I create user "[email protected]" with pass "somepassword"
I woud be able to login with following data:
Username: [email protected]
Password: somepassword
But when I try to log in as this user (via Squirrelmail, Rouncube, etc.) It showing me;
Unknown user or password incorrect.
 
You'd have to check your /var/log/maillog file to see what error is being returned when you try to read the email.

Jeff
 
How did you solve this problem. I want to put a "php_admin_flag" value in my httpd.conf. But httpd won't restart if I do this.
 
To fix this, run the following as root:

Code:
./build all d
./build rewrite_confs

Best regard's

Jonny Nguyễn Vietnamese
 
I fixed issue with SuPHP (solved by Google ;) )
But now I have still problem with email accounts, for example,
If I create user "[email protected]" with pass "somepassword"
I woud be able to login with following data:
Username: [email protected]
Password: somepassword
But when I try to log in as this user (via Squirrelmail, Rouncube, etc.) It showing me;
Unknown user or password incorrect.

Please post the guide!
 
Back
Top