./build custom/ap2/configure.php5: Permission denied

Hello guys,

i have a problem with rebuilding php with custombuild. I have searched this forum and Google but found no solution.

They error that i am getting is:

Code:

Found /usr/local/directadmin/custombuild/php-5.3.20.tar.gz
Extracting ...
Done.
Disabling asm/atomic in /usr/include/mysql/my_global.h
Configuring php-5.3.20...
./build: line 4115: /usr/local/directadmin/custombuild/custom/ap2/configure.php5: Permission denied

*** There was an error while trying to configure php. Check the custom/ap2/configure.php5 file

[root@web02 custombuild]#


As you can see i am a root user. I had found this thread:

http://www.directadmin.com/forum/showthread.php?t=29645

Tried this:

Code:

ls -ld /usr/sbin
lsattr -d /usr/sbin


Output:

Code:

dr-xr-xr-x 2 root root 4096 Mar  7  2012 /usr/sbin
--------------- /usr/sbin


Than this mount:

Code:

[root@web01 ~]# mount
/dev/xvda1 on / type ext3 (rw,usrquota,grpquota)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)


Code:

[root@web01 ~]# lsattr /usr/sbin
lsattr: Operation not supported While reading flags on /usr/sbin/tracepath
lsattr: Operation not supported While reading flags on /usr/sbin/hwclock
--------------- /usr/sbin/groupmems
--------------- /usr/sbin/logresolve
--------------- /usr/sbin/exiwhat
--------------- /usr/sbin/exim_dbmbuild
--------------- /usr/sbin/usermod
--------------- /usr/sbin/suexec
--------------- /usr/sbin/named
--------------- /usr/sbin/pwck
--------------- /usr/sbin/named-journalprint
--------------- /usr/sbin/eximstats.O
--------------- /usr/sbin/ntpdate
lsattr: Operation not supported While reading flags on /usr/sbin/packer
--------------- /usr/sbin/exim_fixdb
--------------- /usr/sbin/sserver
--------------- /usr/sbin/fcgistarter
lsattr: Operation not supported While reading flags on /usr/sbin/mkdict
--------------- /usr/sbin/open_init_pty
--------------- /usr/sbin/exim_tidydb
lsattr: Operation not supported While reading flags on /usr/sbin/tracepath6
--------------- /usr/sbin/getenforce
--------------- /usr/sbin/ss
--------------- /usr/sbin/exim
--------------- /usr/sbin/httxt2dbm
--------------- /usr/sbin/zic
--------------- /usr/sbin/tunelp
--------------- /usr/sbin/dnssec-keyfromlabel
--------------- /usr/sbin/named-checkzone
--------------- /usr/sbin/ntpd
--------------- /usr/sbin/atrun
--------------- /usr/sbin/tcpd
--------------- /usr/sbin/exim_dumpdb
--------------- /usr/sbin/ldattach
--------------- /usr/sbin/e2freefrag
--------------- /usr/sbin/ntp-keygen
lsattr: Operation not supported While reading flags on /usr/sbin/rcmysql
--------------- /usr/sbin/rndc
--------------- /usr/sbin/avcstat
--------------- /usr/sbin/dnssec-dsfromkey
--------------- /usr/sbin/ftpscrub
--------------- /usr/sbin/tcpdump
--------------- /usr/sbin/checkgid
--------------- /usr/sbin/rotatelogs
--------------- /usr/sbin/vipw
--------------- /usr/sbin/ntpq
lsattr: Operation not supported While reading flags on /usr/sbin/named-compilezone
--------------- /usr/sbin/iconvconfig.x86_64
--------------- /usr/sbin/exinext.O
--------------- /usr/sbin/setquota
--------------- /usr/sbin/pwconv
--------------- /usr/sbin/mksock
--------------- /usr/sbin/lwresd
--------------- /usr/sbin/newusers
--------------- /usr/sbin/mysqld-debug
--------------- /usr/sbin/repquota
lsattr: Operation not supported While reading flags on /usr/sbin/sendmail
--------------- /usr/sbin/testsaslauthd
--------------- /usr/sbin/exicyclog
--------------- /usr/sbin/exipick
--------------- /usr/sbin/envvars
lsattr: Operation not supported While reading flags on /usr/sbin/in.proftpd
--------------- /usr/sbin/eximstats
--------------- /usr/sbin/exim_tidydb.O
--------------- /usr/sbin/setsebool
--------------- /usr/sbin/anacron
--------------- /usr/sbin/safe_finger
--------------- /usr/sbin/pluginviewer
--------------- /usr/sbin/sim_server
--------------- /usr/sbin/sys-unconfig
--------------- /usr/sbin/getcap
--------------- /usr/sbin/ab
--------------- /usr/sbin/gss-server
--------------- /usr/sbin/try-from
--------------- /usr/sbin/exim_dbmbuild.O
--------------- /usr/sbin/luserdel
--------------- /usr/sbin/cracklib-packer
--------------- /usr/sbin/luseradd
--------------- /usr/sbin/htpasswd
--------------- /usr/sbin/nstat
--------------- /usr/sbin/sasl2-shared-mechlist
--------------- /usr/sbin/lchage
lsattr: Operation not supported While reading flags on /usr/sbin/arping
lsattr: Operation not supported While reading flags on /usr/sbin/authconfig-tui
--------------- /usr/sbin/selinuxconlist
--------------- /usr/sbin/lpasswd
--------------- /usr/sbin/usernetctl
--------------- /usr/sbin/apachectl
--------------- /usr/sbin/exiqgrep.O
--------------- /usr/sbin/crond
lsattr: Operation not supported While reading flags on /usr/sbin/adduser
--------------- /usr/sbin/named-checkconf
--------------- /usr/sbin/dnssec-signzone
--------------- /usr/sbin/readprofile
--------------- /usr/sbin/dnssec-keygen
--------------- /usr/sbin/isc-hmac-fixup
--------------- /usr/sbin/atd
--------------- /usr/sbin/semodule
--------------- /usr/sbin/lsof
--------------- /usr/sbin/groupdel
--------------- /usr/sbin/lnstat
--------------- /usr/sbin/setenforce
--------------- /usr/sbin/run_init
--------------- /usr/sbin/exiqsumm.O
--------------- /usr/sbin/cracklib-unpacker
--------------- /usr/sbin/chroot
--------------- /usr/sbin/exigrep.O
--------------- /usr/sbin/rpc.rquotad
--------------- /usr/sbin/lokkit
--------------- /usr/sbin/exim_lock
--------------- /usr/sbin/nsec3hash
--------------- /usr/sbin/quotastats
--------------- /usr/sbin/ntptime
--------------- /usr/sbin/n2txd
--------------- /usr/sbin/capsh
--------------- /usr/sbin/groupmod
--------------- /usr/sbin/selinuxdefcon
--------------- /usr/sbin/genrandom
--------------- /usr/sbin/pwunconv
--------------- /usr/sbin/httpd
--------------- /usr/sbin/warnquota
--------------- /usr/sbin/glibc_post_upgrade.x86_64
--------------- /usr/sbin/exiwhat.O
--------------- /usr/sbin/exiqsumm
--------------- /usr/sbin/ftpshut
--------------- /usr/sbin/lgroupadd
--------------- /usr/sbin/exim_checkaccess.O
lsattr: Operation not supported While reading flags on /usr/sbin/vigr
--------------- /usr/sbin/zdump
--------------- /usr/sbin/arpd
lsattr: Operation not supported While reading flags on /usr/sbin/matchpathcon
--------------- /usr/sbin/arpaname
--------------- /usr/sbin/exicyclog.O
--------------- /usr/sbin/exim_lock.O
--------------- /usr/sbin/sasldblistusers2
--------------- /usr/sbin/build-locale-archive
--------------- /usr/sbin/exigrep
--------------- /usr/sbin/tcpslice
--------------- /usr/sbin/getpcaps
--------------- /usr/sbin/togglesebool
--------------- /usr/sbin/exim_checkaccess
--------------- /usr/sbin/rtacct
--------------- /usr/sbin/htcacheclean
--------------- /usr/sbin/ntpdc
--------------- /usr/sbin/cracklib-format
--------------- /usr/sbin/filefrag
--------------- /usr/sbin/create-cracklib-dict
--------------- /usr/sbin/userdel
--------------- /usr/sbin/ddns-confgen
--------------- /usr/sbin/iconvconfig
--------------- /usr/sbin/efibootmgr
lsattr: Operation not supported While reading flags on /usr/sbin/load_policy
--------------- /usr/sbin/htdbm
--------------- /usr/sbin/quota_nld
lsattr: Operation not supported While reading flags on /usr/sbin/ping6
--------------- /usr/sbin/lusermod
--------------- /usr/sbin/lgroupmod
--------------- /usr/sbin/rndc-confgen
lsattr: Operation not supported While reading flags on /usr/sbin/authconfig
--------------- /usr/sbin/useradd
--------------- /usr/sbin/convertquota
--------------- /usr/sbin/visudo
--------------- /usr/sbin/clockdiff
--------------- /usr/sbin/tzdata-update
--------------- /usr/sbin/exim_dumpdb.O
--------------- /usr/sbin/groupadd
--------------- /usr/sbin/alternatives
--------------- /usr/sbin/htdigest
--------------- /usr/sbin/cracklib-check
--------------- /usr/sbin/edquota
--------------- /usr/sbin/setcap
--------------- /usr/sbin/saslauthd
--------------- /usr/sbin/grpconv
--------------- /usr/sbin/envvars-std
--------------- /usr/sbin/exim_fixdb.O
--------------- /usr/sbin/apxs
--------------- /usr/sbin/addgnupghome
--------------- /usr/sbin/fdformat
--------------- /usr/sbin/sestatus
--------------- /usr/sbin/sshd
--------------- /usr/sbin/cacertdir_rehash
lsattr: Operation not supported While reading flags on /usr/sbin/update-alternatives
--------------- /usr/sbin/applygnupgdefaults
--------------- /usr/sbin/makewhatis
--------------- /usr/sbin/selinuxenabled
--------------- /usr/sbin/lnewusers
--------------- /usr/sbin/tickadj
lsattr: Operation not supported While reading flags on /usr/sbin/ethtool
--------------- /usr/sbin/lgroupdel
--------------- /usr/sbin/getsebool
--------------- /usr/sbin/dbmmanage
--------------- /usr/sbin/mysqld
--------------- /usr/sbin/grpunconv
--------------- /usr/sbin/dnssec-revoke
--------------- /usr/sbin/logrotate
--------------- /usr/sbin/rtcwake
--------------- /usr/sbin/dovecot
--------------- /usr/sbin/uuserver
--------------- /usr/sbin/mklost+found
--------------- /usr/sbin/proftpd
--------------- /usr/sbin/saslpasswd2
--------------- /usr/sbin/restorecond
--------------- /usr/sbin/dnssec-settime
--------------- /usr/sbin/exinext
--------------- /usr/sbin/chpasswd
--------------- /usr/sbin/grpck
--------------- /usr/sbin/lid
--------------- /usr/sbin/genhomedircon
--------------- /usr/sbin/exiqgrep
--------------- /usr/sbin/plymouth-set-default-theme


When i use this command chattr -R -suSiadAc /usr/sbin i get the following errors:

Code:

[root@web01 ~]# chattr -R -suSiadAc /usr/sbin
chattr: Operation not supported while reading flags on /usr/sbin/tracepath
chattr: Operation not supported while reading flags on /usr/sbin/hwclock
chattr: Operation not supported while reading flags on /usr/sbin/packer
chattr: Operation not supported while reading flags on /usr/sbin/mkdict
chattr: Operation not supported while reading flags on /usr/sbin/tracepath6
chattr: Operation not supported while reading flags on /usr/sbin/rcmysql
chattr: Operation not supported while reading flags on /usr/sbin/named-compilezone
chattr: Operation not supported while reading flags on /usr/sbin/sendmail
chattr: Operation not supported while reading flags on /usr/sbin/in.proftpd
chattr: Operation not supported while reading flags on /usr/sbin/arping
chattr: Operation not supported while reading flags on /usr/sbin/authconfig-tui
chattr: Operation not supported while reading flags on /usr/sbin/adduser
chattr: Operation not supported while reading flags on /usr/sbin/vigr
chattr: Operation not supported while reading flags on /usr/sbin/matchpathcon
chattr: Operation not supported while reading flags on /usr/sbin/load_policy
chattr: Operation not supported while reading flags on /usr/sbin/ping6
chattr: Operation not supported while reading flags on /usr/sbin/authconfig
chattr: Operation not supported while reading flags on /usr/sbin/update-alternatives
chattr: Operation not supported while reading flags on /usr/sbin/ethtool


Just to be clear i am a root user. Has anyone have a idee to fix this problem?