Cannot load libphp4.dll into server: Permission denied (Cygwin)

Reini Urban rurban@x-ray.at
Fri Aug 11 21:16:00 GMT 2006


Brett Graham schrieb:
> I posted this message to the php and Apache newsgroups, without response.

So it's up to the specialists now :)

> I was wondering if anyone can shed any light on this problem.  When I
> configured and built PHP4 on Cygwin with gd, jpeg, and zlib it makes
> fine but I get the following error when I try to start apache:
> 
> Syntax error on line 239 of /etc/apache/httpd.conf:
> Cannot load /usr/lib/apache/libphp4.dll into server: Permission denied
> /usr/sbin/apachectl start: httpd could not be started
> 
> It was ok when I did a build without gd, jpeg, and zlib.
> 
> cygcheck gives the following:
> C:\cygwin\bin\cygcrypt-0.dll
>   C:\cygwin\bin\cygwin1.dll
>     C:\WINDOWS\System32\ADVAPI32.DLL
>       C:\WINDOWS\System32\ntdll.dll
>       C:\WINDOWS\System32\KERNEL32.dll
>       C:\WINDOWS\System32\RPCRT4.dll
> C:\cygwin\bin\cygpng12.dll
>   C:\cygwin\bin\cygz.dll
> C:\cygwin\bin\cygminires.dll
> C:\cygwin\bin\libhttpd.dll

This makes me wonder: Why a libhttpd dependency for libphp4 for the 
apache sapi? Looks like a libhttpd sapi build to me.

cygcheck is not enough for php. Did you also check all the perms for the 
dynamically loaded extensions loaded via php.ini? dlload()'ing those 
will also need the "x" perm.

> All these have 777 permissions (except the System32 ones, which I didn't
> check).
> It seems to happen when I try to build with jpeg.
-- 
Reini

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list