Shahrad Elahi
Shahrad Elahi

Reputation: 1322

Installing PHP: bash: ./configure: Permission denied

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

Answers (2)

Prateek Kumar Singh
Prateek Kumar Singh

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

Jesse Rushlow
Jesse Rushlow

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

Related Questions