HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Perfect Ubuntu 12.10 Server Facing Problem (http://www.howtoforge.com/forums/showthread.php?t=60208)

DirtyTodd 13th January 2013 19:06

Perfect Ubuntu 12.10 Server Facing Problem
 
I am facing a bit problem at the step where we are installing optional version of PHP

Code:

Configure an build PHP 5.3.18 as follows (you can adjust the ./configure command to your needs, take a look at

./configure --help

to see all available options; if you use a different ./configure command, it is possible that additional libraries are required, or the build process will fail) - PHP-FPM and FastCGI are mutually exclusive in PHP 5.3, that's why I show two ways of building PHP 5.3, one for PHP-FPM, one for FastCGI, however you can compile PHP twice with both configuration options to get both:

 

14.3.1 PHP-FPM
./configure \
--prefix=/opt/php-5.3.18 \
--with-pdo-pgsql \
--with-zlib-dir \
--with-freetype-dir \
--enable-fpm \
--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

make
make install

Copy php.ini and php-fpm.conf (if you've compiled PHP with FPM) to the correct locations:

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

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

Open /opt/php-5.3.18/etc/php-fpm.conf and adjust the following settings - in the listen line you must use an unused port (e.g. 8999; port 9000 might be in use by Ubuntu's default PHP-FPM already), and you must add the line include=/opt/php-5.3.18/etc/pool.d/*.conf at the end:

I am not able to .configure\

what exactly we have to do at this step.

Code:

http://www.howtoforge.com/perfect-server-ubuntu-12.10-apache2-bind-dovecot-ispconfig-3-p4
:( :confused:

falko 15th January 2013 23:02

Quote:

Originally Posted by DirtyTodd (Post 290699)
I am not able to .configure\

It's ./configure, not .configure/.

shazlick 22nd April 2013 09:00

Hi, yes noob here aswell :( but trying to read up on the "make" "make install" build. if anyone here can point out some hints/help on how to use this command in the perfect server ubuntu 12.10.
i google with "make install command" and now my head is spinning :confused:
could it be something to do with ubuntu server 12.10 x86 i'm using, should this matter?

TiTex 26th April 2013 12:42

i don't understand exactly what you're saying but those commands basically will do the same thing on every linux distribution
./configure - runs a script and checks if you have all the requirements to compile the software from source
make - will compile the source ... create executables
make install - will place the files (executables,config files,man pages,etc...) of the software in the right (standard) location if you didn't specified the locations yourself


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

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