Syntax error after install

Jackster

Verified User
Joined
Jul 15, 2011
Messages
25
Code:
phpMyAdmin 3.4.3.1-all-languages installation is done.
cp: `/var/www/html/squirrelmail/data' and `/var/www/html/squirrelmail-1.4.21/data' are the same file
SquirrelMail 1.4.21 installation is done.




*************************************
*                                   *
*   All parts have been installed   *
*                                   *
*************************************

Type: /sbin/service httpd restart
[root@230183 custombuild]#

So I do

[root@230183 custombuild]# /sbin/service httpd restart


But I get

Code:
Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Syntax error on line 143 of /etc/httpd/conf/httpd.conf: Syntax error on line 21 of /etc/httpd/conf/extra/httpd-vhosts.conf: Could not open configuration file /etc/httpd/conf/ips.conf: No such file or directory

Okay so I do a bit of Googling and find that someone just comments out line 143 in the httpd.conf.

So I did.

But:

Code:
[root@230183 custombuild]# /sbin/service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd:
[root@230183 custombuild]# /sbin/service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:
.

That is as far as I have got :/
 
You should not comment out lines.

Code:
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build apache d
 
Ran that

Code:
make[2]: Entering directory `/usr/local/directadmin/custombuild/httpd-2.2.19/modules/mappers'
make[3]: Entering directory `/usr/local/directadmin/custombuild/httpd-2.2.19/modules/mappers'
make[3]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.19/modules/mappers'
make[2]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.19/modules/mappers'
make[2]: Entering directory `/usr/local/directadmin/custombuild/httpd-2.2.19/modules'
make[2]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.19/modules'
make[1]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.19/modules'
Making install in support
make[1]: Entering directory `/usr/local/directadmin/custombuild/httpd-2.2.19/support'
make[2]: Entering directory `/usr/local/directadmin/custombuild/httpd-2.2.19/support'
make[2]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.19/support'
make[1]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.19/support'
make[1]: Entering directory `/usr/local/directadmin/custombuild/httpd-2.2.19'
cd support && make suexec
make[2]: Entering directory `/usr/local/directadmin/custombuild/httpd-2.2.19/support'
make[2]: `suexec' is up to date.
make[2]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.19/support'
Installing configuration files
[PRESERVING EXISTING HTDOCS SUBDIR: /var/www/htdocs]
[PRESERVING EXISTING ERROR SUBDIR: /var/www/error]
[PRESERVING EXISTING ICONS SUBDIR: /var/www/icons]
[PRESERVING EXISTING CGI SUBDIR: /var/www/cgi-bin]
Installing header files
Installing build system files
Installing man pages and online manual
make[1]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.19'
Restoring certificate and key, and turning on httpd for DirectAdmins's check.
grep: /usr/local/directadmin/conf/directadmin.conf: No such file or directory
grep: /usr/local/directadmin/conf/directadmin.conf: No such file or directory
./build: line 6980: [: : integer expression expected
grep: /usr/local/directadmin/conf/directadmin.conf: No such file or directory
./build: line 6984: [: : integer expression expected
./build: /usr/local/directadmin/dataskq: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
Using 173.212.236.14 for your server IP
ls: /usr/local/directadmin/data/users/*/httpd.conf: No such file or directory
Restarting apache.
Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Syntax error on line 142 of /etc/httpd/conf/httpd.conf: Syntax error on line 21 of /etc/httpd/conf/extra/httpd-vhosts.conf: Could not open configuration file /etc/httpd/conf/ips.conf: No such file or directory

[root@230183 custombuild]#
 
Ran that

Code:
make[2]: Entering directory `/usr/local/directadmin/custombuild/httpd-2.2.19/modules/mappers'
make[3]: Entering directory `/usr/local/directadmin/custombuild/httpd-2.2.19/modules/mappers'
make[3]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.19/modules/mappers'
make[2]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.19/modules/mappers'
make[2]: Entering directory `/usr/local/directadmin/custombuild/httpd-2.2.19/modules'
make[2]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.19/modules'
make[1]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.19/modules'
Making install in support
make[1]: Entering directory `/usr/local/directadmin/custombuild/httpd-2.2.19/support'
make[2]: Entering directory `/usr/local/directadmin/custombuild/httpd-2.2.19/support'
make[2]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.19/support'
make[1]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.19/support'
make[1]: Entering directory `/usr/local/directadmin/custombuild/httpd-2.2.19'
cd support && make suexec
make[2]: Entering directory `/usr/local/directadmin/custombuild/httpd-2.2.19/support'
make[2]: `suexec' is up to date.
make[2]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.19/support'
Installing configuration files
[PRESERVING EXISTING HTDOCS SUBDIR: /var/www/htdocs]
[PRESERVING EXISTING ERROR SUBDIR: /var/www/error]
[PRESERVING EXISTING ICONS SUBDIR: /var/www/icons]
[PRESERVING EXISTING CGI SUBDIR: /var/www/cgi-bin]
Installing header files
Installing build system files
Installing man pages and online manual
make[1]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.19'
Restoring certificate and key, and turning on httpd for DirectAdmins's check.
grep: /usr/local/directadmin/conf/directadmin.conf: No such file or directory
grep: /usr/local/directadmin/conf/directadmin.conf: No such file or directory
./build: line 6980: [: : integer expression expected
grep: /usr/local/directadmin/conf/directadmin.conf: No such file or directory
./build: line 6984: [: : integer expression expected
./build: /usr/local/directadmin/dataskq: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
Using 173.212.236.14 for your server IP
ls: /usr/local/directadmin/data/users/*/httpd.conf: No such file or directory
Restarting apache.
Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Syntax error on line 142 of /etc/httpd/conf/httpd.conf: Syntax error on line 21 of /etc/httpd/conf/extra/httpd-vhosts.conf: Could not open configuration file /etc/httpd/conf/ips.conf: No such file or directory

[root@230183 custombuild]#

Me too and got the same plz need help fixing this.
 
Hello,
-bash: ./directadmin: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
That means the OS selected in your binary doesn't match your OS. Related:
http://help.directadmin.com/item.php?id=267

Starting httpd: httpd: Syntax error on line 142 of /etc/httpd/conf/httpd.conf: Syntax error on line 21 of /etc/httpd/conf/extra/httpd-vhosts.conf: Could not open configuration file /etc/httpd/conf/ips.conf: No such file or directory
Same idea for this error:
http://help.directadmin.com/item.php?id=321

John
 
Last edited:
Hello,

The error is usually a larger OS gap... like FreeBSD on CentOS, or something like that. If you'd like me to check the box, send over your info, and I'll take a look. It might be something else unknown, but guessing on the forum may take too long.

John
 
this is a chat from Warning - Do not update to DirectAdmin 1.345 on CentOS 64bit!

But i did not have any problem with updates :) just to clear that hehe

Ok... for whatever reason, it turns out that if you're running CentOS 64bit you need to install the following packages:

PHP Code:
openssl i686 0.9.8e-12.el5
openssl-devel i386 0.9.8e-12.el5
libstdc++ i386 4.1.2-46.el5_4.1
Why? Goodness only knows. It was working perfectly fine for me before now without them.

Just run:

yum install openssl openssl-devel libstdc++

And make sure exclude=*.i386 *.i586 *.i686 is not in your /etc/yum.conf

Problem now solved

But i did only exclude=*.i386 in my config file maby that could have been the issue ? i am doing this on a new server so this is okey.
 
That's news to me, and 1.34.5 is quite old. I'm not sure if it's a significant issue. They may also have had a wrong OS in their license. If DA works, then the binaries don't when updated, that usually means something changed. Our build boxes don't change, hence it's usually the license OS, or if the admin went to town changing to weird/custom libraries, which may also do it.

None of our servers have any of the i386/i686 values in the the exclude list.. so not too sure there. Logically, the i386 could be in the exclude list.. I've seen it install both the 32 and 64 bit rpms, which confuses the compilers/linkers.. but it doesn't usually hurt binaries.

John
 
Back
Top