Reputation: 1322
I'm trying to install PHP for PThreads. (PHP - Installation Manual)
in installation I need config but when I using this command:
# ./configure --prefix=/usr --with-config-file-path=/etc --enable-maintainer-zts
bash: ./configure: Permission denied
I tried to give configure the permissions:
# chmod +x configure
#
and again output is:
# ./configure --prefix=/usr --with-config-file-path=/etc --enable-maintainer-zts
bash: ./configure: Permission denied
Upvotes: 2
Views: 4962
Reputation: 161
For me, It was resolved after installing it from home directory
.
In my case, I was trying to install from /tmp
and it was throwing the permission denied even with root and changing the owner to root with 777 permission. Also, installation path was remote mount.
Extracted the source code in home directory and it worked!!
Upvotes: 1
Reputation: 196
ls -lah in the directory to show the current owner of the files. Most likely your account isn’t the owner and you need to do a sudo chown -r user:group ./* inside the base directory of the php src
Upvotes: 4