#1  
Old 7th March 2013, 10:49
higgins_gee higgins_gee is offline
Junior Member
 
Join Date: Mar 2013
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP-FPM install problems

Hi there, I've followed the instructions to setup an OpenSUSE 12.2 server with Apache and PHP-FPM however PHP-FPM isn't loading. I believe i need to change the path which PHP-FPM is looking at from /usr/var to /var by using the -p argument but being a noob i'm not sure of how to do this. Any assistance would be appreciated...thanks.
Reply With Quote
Sponsored Links
  #2  
Old 8th March 2013, 14:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Which tutorial (URL) did you use?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 8th March 2013, 15:10
higgins_gee higgins_gee is offline
Junior Member
 
Join Date: Mar 2013
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The tutorial i used is The Perfect Server - OpenSUSE 12.2 x86_64 (Apache2, Dovecot, ISPConfig 3). I've actually worked it out now though...i simply needed to run php-fpm -p /var from the command line to change the default location to /var. It's all working fine now thanks. I interpreted the instructions to run the install with a -p argument which baffled me. It was the word "dynamically" which I missed.
Reply With Quote
  #4  
Old 8th March 2013, 20:26
higgins_gee higgins_gee is offline
Junior Member
 
Join Date: Mar 2013
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

All is not well after all...not able to restart apache2 there appears to be a problem with fastcgi and squirrelmail / php_admin_flags...is there a resolution for this?

Output is below.


server:~ # systemctl status apache2.service
apache2.service - apache
Loaded: loaded (/lib/systemd/system/apache2.service; enabled)
Active: failed (Result: exit-code) since Fri, 08 Mar 2013 19:03:36 +0000; 16min ago
Process: 12721 ExecStart=/usr/sbin/start_apache2 -D SYSTEMD -k start (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/apache2.service

Mar 08 19:03:36 server start_apache2[12721]: Syntax error on line 2 of /etc/apache2/conf.d/squirrelmail.conf:
Mar 08 19:03:36 server start_apache2[12721]: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration
Reply With Quote
  #5  
Old 9th March 2013, 17:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Is mod_php enabled?

Can you post your /etc/apache2/conf.d/squirrelmail.conf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 9th March 2013, 19:04
higgins_gee higgins_gee is offline
Junior Member
 
Join Date: Mar 2013
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Squirrelmail conf I've not added the aliases as yet but i will be doing that after. Unable to restart apache to confirm if mod_php is enabled.

<Directory "/srv/www/htdocs/squirrelmail">
php_admin_flag register_globals Off
php_admin_flag magic_quotes_gpc Off
php_admin_flag allow_url_include Off
php_admin_flag allow_url_fopen Off
php_admin_flag session.use_only_cookies On
php_admin_flag session.cookie_httponly On
php_admin_value open_basedir "/srv/www/htdocs/squirrelmail:/var/lib/squirrelmail:/usr/share/php5/PEAR:/tmp"
</Directory>
<Directory "/srv/www/htdocs/squirrelmail/class">
Order deny,allow
Deny from all
</Directory>
<Directory "/srv/www/htdocs/squirrelmail/config">
Order deny,allow
Deny from all
</Directory>
<Directory "/srv/www/htdocs/squirrelmail/data">
Order deny,allow
Deny from all
</Directory>
<Directory "/srv/www/htdocs/squirrelmail/doc">
Order Deny,Allow
Deny from All
Allow from 127.0.0.0/8
Allow from ::1/128
</Directory>
<Directory "/srv/www/htdocs/squirrelmail/functions">
Order deny,allow
Deny from all
</Directory>
<Directory "/srv/www/htdocs/squirrelmail/help">
Order deny,allow
Deny from all
</Directory>
<Directory "/srv/www/htdocs/squirrelmail/include">
Order deny,allow
Deny from all
</Directory>
<Directory "/srv/www/htdocs/squirrelmail/locale">
Order deny,allow
Deny from all
</Directory>
<Directory "/srv/www/htdocs/squirrelmail/po">
Order deny,allow
Deny from all
</Directory>
<Directory "/srv/www/htdocs/squirrelmail/themes">
Order deny,allow
Deny from all
</Directory>
<Directory "/srv/www/htdocs/squirrelmail/themes/css">
Order deny,allow
Allow from all
</Directory>
Reply With Quote
  #7  
Old 12th March 2013, 18:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Comment out all the php_admin_* lines in squirrelmail.conf, restart Apache and then check if mod_php is enabled.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Tags
error log, opensuse12.2, php-fpm

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 6.0 support Acid_Scorpion Developers' Forum 47 16th September 2011 10:36
Cron errors guimnk General 1 5th April 2011 09:20
coexistence of php4 and php5 on ISPC3 AceLine Tips/Tricks/Mods 5 5th November 2010 14:56
php script injections Grizzly General 21 18th July 2006 08:55


All times are GMT +2. The time now is 01:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.