Hi, all!
I have a little question… How can i run Apache with php as FastCGI under the SLES 11? I found the php5-fastcgi package, but where i can find the fcgi or fcgid module for apache?
Hi, all!
I have a little question… How can i run Apache with php as FastCGI under the SLES 11? I found the php5-fastcgi package, but where i can find the fcgi or fcgid module for apache?
Hi
It’s on the SLE 11 SDK;
zypper if apache2-mod_fcgid
Information for package apache2-mod_fcgid:
Repository: SLE11-SDK-SP3-Updates for x86_64
Name: apache2-mod_fcgid
Version: 2.2-31.27.1
–
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.6-4-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
Huh? It’s an rpm, not a src rpm…? Add the SDK repositories via your
mirror credentials and URL, else download the SDK, add via YaST add on
products and install…
–
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.6-4-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
Ok, i installed the apache2-mod_fcgid-2.2-31.17.i586.rpm rpm from SLE-11-SP1-SDK-DVD-i586-GM-DVD1.iso:
[CODE]rpm -ivh ./apache2-mod_fcgid-2.2-31.17.i586.rpm
Preparing… ########################################### [100%]
1:apache2-mod_fcgid ########################################### [100%]
a2enmod fcgid
[/CODE]
But… Apache is not starting after that:
[Wed Feb 05 12:36:09 2014] [emerg] (2)No such file or directory: mod_fcgid: [B]Can't create share memory for size %zu byte[/B]
Hi vladsol,
[QUOTE=vladsol;19071]Ok, i installed the apache2-mod_fcgid-2.2-31.17.i586.rpm rpm from SLE-11-SP1-SDK-DVD-i586-GM-DVD1.iso:
[CODE]rpm -ivh ./apache2-mod_fcgid-2.2-31.17.i586.rpm
Preparing… ########################################### [100%]
1:apache2-mod_fcgid ########################################### [100%]
a2enmod fcgid
[/CODE]
But… Apache is not starting after that:
[Wed Feb 05 12:36:09 2014] [emerg] (2)No such file or directory: mod_fcgid: [B]Can't create share memory for size %zu byte[/B]
Does the according directory (see http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidprocesstablefile) exist and does your web server user have sufficient privileges to access that directory?
Regards,
Jens
I have only two uncommented directives with paths in php_fpm.conf file:
SocketPath /var/lib/apache2/fcgid/
SharememPath /var/lib/apache2/fcgid/shm
These directories exists and writeable for wwwrun user.
Should i add the FcgidProcessTableFile directive?
Hi vladsol,
These directories exists and writeable for wwwrun user.
Should i add the FcgidProcessTableFile directive?
I currently have no access to an according server, so I cannot tell if that mod_fcgi you have installed uses the old or the new syntax - just give it a try, it won’t get worse than not being able to start the web server
Regards,
Jens
PS: You might use “strings” command on the module file to look if the old or the new syntax keywords are included…
Yes, in my case, module uses the “old” variables names.
with strace i found that fcgid module tries to open file /srv/www/logs/fcgid_shm"
open("/srv/www/logs/fcgid_shm", O_WRONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/srv/www/logs/fcgid_shm", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0666) = -1 ENOENT (No such file or directory)
And! does not read the mod_fcgid.conf file!
=\
And! does not read the mod_fcgid.conf file!
Where is it located? /etc/apache2/conf.d? What include statements are in /etc/apache2/*.conf? In my installation, every conf file in conf.d is pulled via a wild card include in default-server.conf.
Regards,
Jens
Oh, it is my fault
I commented out whole default-server.conf
manually added mod_fcgid.conf to httpd.conf, and now all is ok/
Thank you for help!!!