HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Recompile the PHP coming with ISPConfig (http://www.howtoforge.com/forums/showthread.php?t=23774)

hmfireball 30th May 2008 16:07

Recompile the PHP coming with ISPConfig
 
Hi,

I want to recompile the PHP coming with ISPConfig so that I can include mcrypt.
(PhpMyAdmin claims about the mcrypt extension not loaded).
What should I do?
I don't want to reinstall ISPConfig as I'm afraid I might lose some configuration settings and changes I made in proFTPd config file after ISPConfig installation.
Thanks for your help.
Henri

till 31st May 2008 11:18

To recompile php manually for ISPConfig, have a look at the configure options in the script install_ispconfig/compile_aps/compile

hmfireball 2nd June 2008 09:22

Thanks till, I'll look at this file.

hmfireball 2nd June 2008 18:39

What should I add to?

Code:

./configure --with-apxs=${INSTALL_ROOT}/httpd/bin/apxs --enable-track-vars --enable-sockets --enable-mbstring=all --with-config-file-path=${INSTALL_ROOT}/php --enable-ftp --prefix=${INSTALL_ROOT}/php ${WITH_OPENSSL} ${WITH_MYSQL} --disable-libxml --disable-dom --disable-xml ${WITH_ZLIB_DIR} --disable-xmlreader --disable-xmlwriter --disable-simplexml --without-pear
And how/where to compile mcrypt lib?

till 2nd June 2008 18:45

1) Download the latest php sources from php.net.
2) Take this configure string, replace ${INSTALL_ROOT} with /root/ispconfig
3) Add all additional options that you like to add, for details please see the php documentation or run configure --help
4) Run the configure string in the php source directory and the run make and make install

ethanlifka 25th August 2008 20:19

Add mcrypt to ispconfig php
 
I was able to add mcrypt without recompiling.

My /etc/php.ini used "/usr/lib/php/modules" for its extension_dir. So I used it in the ispconfig dir. Your modules dir maybe different depending on your distro.

edit php.ini in /root/ispconfig/php

extension_dir = "/usr/lib/php/modules"
extension=mcrypt.so

Save

restart ispconfig_server

I have ispconfig 2.2.24 with Fedora9

Worked great!

You could also create a dir in /root/ispconfig/php

e.g.
mkdir /root/ispconfig/php/modules
cp /usr/lib/php/modules/mcrypt.so /root/ispconfig/php/modules/mcrypt.so
vi /root/ispconfig/php/php.ini
extension_dir = "/root/ispconfig/php/modules"
extension=mcrypt.so
:wq
/etc/init.d/ispconfig_server restart

Recompiling may depend on you distro as well.

truelights 28th August 2008 15:01

I was running command ./configure --with-apxs=/root/ispconfig /httpd/bin/apxs
the results were:
1. blabla
2. blabla
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
The output of /root/ispconfig follows
./configure: line 4491: /root/ispconfig: is a directory
configure: error: Aborting

anything went wrong?

Thank you

falko 29th August 2008 13:26

It must be
Code:

./configure --with-apxs=/root/ispconfig/httpd/bin/apxs
not
Code:

./configure --with-apxs=/root/ispconfig /httpd/bin/apxs
(you have a space in the path).

truelights 30th August 2008 09:38

Two PHP Installations (Own PHP Instalation vs ISPConfig PHP autoinstalation)
 
I have solved the php installation by uninstall the original CentOS 5.2's php (php 5.1.6) and rpm a new php. And now I have two php installations on my server as I told on the title, some of the features running as well, but I think it's not usual to run two same apps in one machine, any suggestion pls?

till 30th August 2008 09:48

ISP‹Config has always its own php, thats absolutely normal and this php is for the ispconfig control panel only and shall not be used for your hosted webpages!


All times are GMT +2. The time now is 06:15.

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