AH00526: Syntax error on line 193 of /usr/local/directadmin/data/users/uspspftu/

90816

New member
Joined
Dec 11, 2022
Messages
2
I am receiving error for the command apachectl configtest

AH00526: Syntax error on line 193 of /usr/local/directadmin/data/users/uspspftu/

No website is working even rebuilding using following commands


cd /usr/local/directadmin/custombuild
./build update
/usr/local/directadmin/directadmin p
./build rewrite_confs



cd /usr/local/directadmin/custombuild
./build update
./build apache
./build rewrite_confs
 
AH00526: Syntax error on line 193 of /usr/local/directadmin/data/users/uspspftu/

That's a directory. Are you sure the error message is not cut?

If the message is cut, and a full path should be /usr/local/directadmin/data/users/uspspftu/httpd.conf, then what is it content? You might mask your real domain name.
 
Yes you are right the issue appeared again today, last time It was resolved just by editing the /usr/local/directadmin/data/users/uspspftu/httpd.conf and without changing anything saving it, but the issue is appeared again with same user and the fact is nothing have been changed by admin user on the server.
 
Yes you are right the issue appeared again today, last time It was resolved just by editing the /usr/local/directadmin/data/users/uspspftu/httpd.conf and without changing anything saving it, but the issue is appeared again with same user and the fact is nothing have been changed by admin user on the server.

See if you can find out what is on line 193, and then take a look at the whole block of configuration around (before and after) that line. For example, if it's part of a virtual host, it might be interesting to see the whole virtual host block in order to determine what happened in the right context. You should obfuscate any identifiable information in it and then post it here (or in a ticket to DirectAdmin, whichever you prefer). This should be when the file is broken of course, and hopefully the rest of us can shed some insight into what might be happening.

The thought is that if we know what the bad configuration is, we then know what should be writing that config, and we can quickly pin down the problem.
 
Yes you are right the issue appeared again today, last time It was resolved just by editing the /usr/local/directadmin/data/users/uspspftu/httpd.conf and without changing anything saving it, but the issue is appeared again with same user and the fact is nothing have been changed by admin user on the server.

You've modified a file which is automatically re-generated by Directadmin. That's wrong.

Without seeing the errored line we will need to guess, what might be wrong. That's counterproductive.

Every setup as well as user's httpd.conf might differ. And my line #193 will not be the same as yours. So if you want us to help you, then please show content of the file.

If you have sed installed on the server, then you might run:

Code:
sed '190,200!d'  /usr/local/directadmin/data/users/uspspftu/httpd.conf

to show lines from #190 till #200.

If you don't want to do it, then follow an advice of the user @mxroute.
 
Back
Top