Zend Studio - selinux FC3-x86_64I had a rather hard time installing Zend Studio on my brand new machine. Some config details:
- Processor AMD Athlon64 3500+
- Fedora Core 3 x86_64
- SeLinux Targeted policy
- Apache 2.x
- PHP 5.0.x
I will not cover here the details of installing the client (had to download a separate file given to me from Zend Technical Team, not sure I can redistribute it or link to it... will see that later). All I can say is that I am pretty sure you can complete the install with the installer with selinux disabled. I'm going to cover only the server install. First install the zend studio server from the installer (see Zend.com site) At this point, if you try to restart apache, everything should go well... except that the Zend Debugger does not show up in phpinfo and that you will not be able to connect to it from the Zend Studio Client. Now have a look at your apache error_log:
Failed loading /usr/local/ZendStudioServer-4.0.0/lib/ZendExtensionManager.so: /usr/loca
l/ZendStudioServer-4.0.0/lib/ZendExtensionManager.so: failed to map segment from shared
object: Permission denied
Failed loading /usr/local/ZendStudioServer-4.0.0/lib/ZendExtensionManager.so: /usr/loca
l/ZendStudioServer-4.0.0/lib/ZendExtensionManager.so: failed to map segment from shared
object: Permission denied
Failed loading /usr/local/ZendStudioServer-4.0.0/lib/ZendExtensionManager.so: /usr/loca
l/ZendStudioServer-4.0.0/lib/ZendExtensionManager.so: failed to map segment from shared
object: Permission denied
Failed loading /usr/local/ZendStudioServer-4.0.0/lib/ZendExtensionManager.so: /usr/loca
l/ZendStudioServer-4.0.0/lib/ZendExtensionManager.so: failed to map segment from shared
object: Permission denied
Failed loading /usr/local/ZendStudioServer-4.0.0/lib/ZendExtensionManager.so: /usr/loca
l/ZendStudioServer-4.0.0/lib/ZendExtensionManager.so: failed to map segment from shared
object: Permission denied
Failed loading /usr/local/ZendStudioServer-4.0.0/lib/ZendExtensionManager.so: /usr/loca
l/ZendStudioServer-4.0.0/lib/ZendExtensionManager.so: failed to map segment from shared
object: Permission denied
Failed loading /usr/local/ZendStudioServer-4.0.0/lib/ZendExtensionManager.so: /usr/loca
l/ZendStudioServer-4.0.0/lib/ZendExtensionManager.so: failed to map segment from shared
object: Permission denied
Failed loading /usr/local/ZendStudioServer-4.0.0/lib/ZendExtensionManager.so: /usr/loca
l/ZendStudioServer-4.0.0/lib/ZendExtensionManager.so: failed to map segment from shared
object: Permission denied
[Tue May 17 12:13:02 2005] [notice] caught SIGTERM, shutting down
Failed loading /usr/local/ZendStudioServer-4.0.0/lib/ZendExtensionManager.so: /usr/loca
l/ZendStudioServer-4.0.0/lib/ZendExtensionManager.so: failed to map segment from shared
object: Permission denied
[Tue May 17 12:13:03 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue May 17 12:13:03 2005] [notice] Digest: generating secret for digest authentication
...
[Tue May 17 12:13:03 2005] [notice] Digest: done
[Tue May 17 12:13:03 2005] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Tue May 17 12:13:03 2005] [notice] LDAP: SSL support unavailable
[Tue May 17 12:13:03 2005] [notice] mod_python: Creating 4 session mutexes based on 256
max processes and 0 max threads.
[Tue May 17 12:13:03 2005] [notice] Apache/2.0.52 (Fedora) configured -- resuming normal
operations
Hey hey !!! The Zend server did not load correctly. The cause is the apache selinux policy. To fix that:
cd /usr/local/ZendStudioServer-4.0.0 <= change to what ever dir you installed in
chcon -R system_u:object_r:httpd_modules_t lib/
Now restart apache and it should work.
|