Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 1st December 2012, 15:00
Snow Snow is offline
Junior Member
 
Join Date: Nov 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is a rather silly question, I know, but what packages directly affect ISPConfig? Is there a specific step I should repeat or should I wipe and do it all over again?
Reply With Quote
Sponsored Links
  #12  
Old 5th December 2012, 02:48
Snow Snow is offline
Junior Member
 
Join Date: Nov 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I mistakenly thought that I needed ISPConfig installed, but you were just demonstrating a point in the PHP section. I proceeded with the rest of the instructions and everything works perfectly, thank you.

Thanks again for your help,
I'll show my support by purchasing your manual.

~Snow
Reply With Quote
  #13  
Old 7th May 2014, 00:47
levien levien is offline
Junior Member
 
Join Date: May 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Also not working.....

Dear Falko...can you help me with this one?

i used the install tutorial to the letter but changed only all path to a newer php version(php-5.5.10) because it could not find the older(php-5.4.12) one.

after starting i get:

root@webserver3:~# /etc/init.d/php-5.5.10-fpm start
Starting php-fpm [07-May-2014 00:13:57] WARNING: Nothing matches the include pattern '/opt/php-5.5.10/etc/pool.d/*.conf' from /opt/php-5.5.10/etc/php-fpm.conf at line 519.
[07-May-2014 00:13:57] ERROR: failed to open error_log (/opt/php-5.4.12/var/log/php-fpm.log): No such file or directory (2)
[07-May-2014 00:13:57] ERROR: failed to post process the configuration
[07-May-2014 00:13:57] ERROR: FPM initialization failed
failed

Where i can see that it is looking for an old dir of : /opt/php-5.4.12/var/log/php-fpm.log, which is not the right one...
But where can i fix this?

regards Levien
Reply With Quote
  #14  
Old 7th May 2014, 09:00
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,340
Thanks: 810
Thanked 5,173 Times in 4,055 Posts
Default

Seems as if you did not change the version number of the php version in all files and paths of the tutorial. recheck all files and paths, most likely the poblem is in the php-fpm starter file that you created in /etc/init.d/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #15  
Old 7th May 2014, 14:25
levien levien is offline
Junior Member
 
Join Date: May 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Did that

I did that exactly for the last 2 weeks....but i can not find it anywhere.
Maybe i staring myself blind.

here is the file you mentioned:
Code:
#! /bin/sh
### BEGIN INIT INFO
# Provides:          php-5.5.10-fpm
# Required-Start:    $all
# Required-Stop:     $all
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: starts php-5.5.10-fpm
# Description:       starts the PHP FastCGI Process Manager daemon
### END INIT INFO
php_fpm_BIN=/opt/php-5.5.10/sbin/php-fpm
php_fpm_CONF=/opt/php-5.5.10/etc/php-fpm.conf
php_fpm_PID=/opt/php-5.5.10/var/run/php-fpm.pid
php_opts="--fpm-config $php_fpm_CONF"

wait_for_pid () {
        try=0
        while test $try -lt 35 ; do
                case "$1" in
                        'created')
                        if [ -f "$2" ] ; then
                                try=''
                                break
                        fi
                        ;;
                        'removed')
                        if [ ! -f "$2" ] ; then
                                try=''
                                break
                        fi
                        ;;
                esac
                echo -n .
                try=`expr $try + 1`
                sleep 1
        done
}
case "$1" in
        start)
                echo -n "Starting php-fpm "
                $php_fpm_BIN $php_opts
                if [ "$?" != 0 ] ; then
                        echo " failed"
                        exit 1
                fi
                wait_for_pid created $php_fpm_PID
                if [ -n "$try" ] ; then
                        echo " failed"
                        exit 1
                else
                        echo " done"
                fi
        ;;
        stop)
                echo -n "Gracefully shutting down php-fpm "
                if [ ! -r $php_fpm_PID ] ; then
                        echo "warning, no pid file found - php-fpm is not running ?"
                        exit 1
                fi
                kill -QUIT `cat $php_fpm_PID`
                wait_for_pid removed $php_fpm_PID
                if [ -n "$try" ] ; then
                        echo " failed. Use force-exit"
                        exit 1
                else
                        echo " done"
                       echo " done"
                fi
        ;;
        force-quit)
                echo -n "Terminating php-fpm "
                if [ ! -r $php_fpm_PID ] ; then
                        echo "warning, no pid file found - php-fpm is not running ?"
                        exit 1
                fi
                kill -TERM `cat $php_fpm_PID`
                wait_for_pid removed $php_fpm_PID
                if [ -n "$try" ] ; then
                        echo " failed"
                        exit 1
                else
                        echo " done"
                fi
        ;;
        restart)
                $0 stop
                $0 start
        ;;
        reload)
                echo -n "Reload service php-fpm "
                if [ ! -r $php_fpm_PID ] ; then
                        echo "warning, no pid file found - php-fpm is not running ?"
                        exit 1
                fi
                kill -USR2 `cat $php_fpm_PID`
                echo " done"
        ;;
        *)
                echo "Usage: $0 {start|stop|force-quit|restart|reload}"
                exit 1
        ;;
esac
but the first time i used the wrong commands(with the older php name) to create the wrong dirs.
I removed them manually and do it all over again but then with the good php files.

De rest i editted the install tutorial as :

Code:
mkdir /opt/php-5.5.10
mkdir /usr/local/src/php5-build
cd /usr/local/src/php5-build
wget http://de.php.net/get/php-5.5.10.tar.bz2/from/this/mirror -O php-5.5.10.tar.bz2
tar jxf php-5.5.10.tar.bz2

cd php-5.5.10/

apt-get install build-essential 

apt-get build-dep php5

apt-get install libfcgi-dev libfcgi0ldbl libjpeg62-dbg libmcrypt-dev libssl-dev libc-client2007e libc-client2007e-dev

ln -s /usr/lib/libc-client.a /usr/lib/x86_64-linux-gnu/libc-client.a


./configure \
--prefix=/opt/php-5.5.10 \
--with-pdo-pgsql \
--with-zlib-dir \
--with-freetype-dir \
--enable-mbstring \
--with-libxml-dir=/usr \
--enable-soap \
--enable-calendar \
--with-curl \
--with-mcrypt \
--with-zlib \
--with-gd \
--with-pgsql \
--disable-rpath \
--enable-inline-optimization \
--with-bz2 \
--with-zlib \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-pcntl \
--enable-mbregex \
--with-mhash \
--enable-zip \
--with-pcre-regex \
--with-mysql \
--with-pdo-mysql \
--with-mysqli \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--enable-gd-native-ttf \
--with-openssl \
--with-fpm-user=www-data \
--with-fpm-group=www-data \
--with-libdir=/lib/x86_64-linux-gnu \
--enable-ftp \
--with-imap \
--with-imap-ssl \
--with-kerberos \
--with-gettext \
--enable-fpm


cp /usr/local/src/php5-build/php-5.5.10/php.ini-production /opt/php-5.5.10/lib/php.ini


cp /opt/php-5.5.10/etc/php-fpm.conf.default /opt/php-5.5.10/etc/php-fpm.conf

vi /opt/php-5.5.10/etc/php-fpm.conf


include=/opt/php-5.5.10/etc/pool.d/*.conf

mkdir /opt/php-5.5.10/etc/pool.d

vi /etc/init.d/php-5.5.10-fpm

#! /bin/sh
### BEGIN INIT INFO
# Provides:          php-5.5.10-fpm
# Required-Start:    $all
# Required-Stop:     $all
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: starts php-5.5.10-fpm
# Description:       starts the PHP FastCGI Process Manager daemon
### END INIT INFO
php_fpm_BIN=/opt/php-5.5.10/sbin/php-fpm
php_fpm_CONF=/opt/php-5.5.10/etc/php-fpm.conf
php_fpm_PID=/opt/php-5.5.10/var/run/php-fpm.pid
php_opts="--fpm-config $php_fpm_CONF"

wait_for_pid () {
        try=0
        while test $try -lt 35 ; do
                case "$1" in
                        'created')
                        if [ -f "$2" ] ; then
                                try=''
                                break
                        fi
                        ;;
                        'removed')
                        if [ ! -f "$2" ] ; then
                                try=''
                                break
                        fi
                        ;;
                esac
                echo -n .
                try=`expr $try + 1`
                sleep 1
        done
}
case "$1" in
        start)
                echo -n "Starting php-fpm "
                $php_fpm_BIN $php_opts
                if [ "$?" != 0 ] ; then
                        echo " failed"
                        exit 1
                fi
                wait_for_pid created $php_fpm_PID
                if [ -n "$try" ] ; then
                        echo " failed"
                        exit 1
                else
                        echo " done"
                fi
        ;;
        stop)
                echo -n "Gracefully shutting down php-fpm "
                if [ ! -r $php_fpm_PID ] ; then
                        echo "warning, no pid file found - php-fpm is not running ?"
                        exit 1
                fi
                kill -QUIT `cat $php_fpm_PID`
                wait_for_pid removed $php_fpm_PID
                if [ -n "$try" ] ; then
                        echo " failed. Use force-exit"
                        exit 1
                else
                        echo " done"
                       echo " done"
                fi
        ;;
        force-quit)
                echo -n "Terminating php-fpm "
                if [ ! -r $php_fpm_PID ] ; then
                        echo "warning, no pid file found - php-fpm is not running ?"
                        exit 1
                fi
                kill -TERM `cat $php_fpm_PID`
                wait_for_pid removed $php_fpm_PID
                if [ -n "$try" ] ; then
                        echo " failed"
                        exit 1
                else
                        echo " done"
                fi
        ;;
        restart)
                $0 stop
                $0 start
        ;;
        reload)
                echo -n "Reload service php-fpm "
                if [ ! -r $php_fpm_PID ] ; then
                        echo "warning, no pid file found - php-fpm is not running ?"
                        exit 1
                fi
                kill -USR2 `cat $php_fpm_PID`
                echo " done"
        ;;
        *)
                echo "Usage: $0 {start|stop|force-quit|restart|reload}"
                exit 1
        ;;
esac



chmod 755 /etc/init.d/php-5.5.10-fpm
update-rc.d php-5.5.10-fpm defaults 

/etc/init.d/php-5.5.10-fpm start
So where could be the wrong path?
I allready did the whole tutorial again but the result stays the same....

regards Levien

Last edited by levien; 8th May 2014 at 01:17.
Reply With Quote
  #16  
Old 13th May 2014, 00:34
levien levien is offline
Junior Member
 
Join Date: May 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default found it

Seems to be a mistype in the php-fpm file itself.

After installing php-5.5.12 everything goes smooth and no errors

problem solved.

regards Levien
Reply With Quote
Reply

Bookmarks

Tags
can't start phpfpm, phpfpm

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
problem in using : perfect-server-ubuntu-12.10-apache2-bind-dovecot-ispconfig-3, rezabagheri Installation/Configuration 7 30th October 2012 22:55
monitrc configuration for Debian ISPConfig 3 server Hans Tips/Tricks/Mods 2 27th March 2011 23:22
Monitoring server Ubuntu wiss Installation/Configuration 7 20th November 2010 12:56
Monit & Munin SamTzu HOWTO-Related Questions 1 4th May 2008 18:03
"Too many open files in system" problems Berry Installation/Configuration 3 10th November 2007 21:58


All times are GMT +2. The time now is 14:04.


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