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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th May 2008, 17:07
hmfireball hmfireball is offline
Junior Member
 
Join Date: May 2008
Location: Nancy, France
Posts: 27
Thanks: 0
Thanked 4 Times in 3 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 31st May 2008, 12:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

To recompile php manually for ISPConfig, have a look at the configure options in the script install_ispconfig/compile_aps/compile
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 2nd June 2008, 10:22
hmfireball hmfireball is offline
Junior Member
 
Join Date: May 2008
Location: Nancy, France
Posts: 27
Thanks: 0
Thanked 4 Times in 3 Posts
Default

Thanks till, I'll look at this file.
Reply With Quote
  #4  
Old 2nd June 2008, 19:39
hmfireball hmfireball is offline
Junior Member
 
Join Date: May 2008
Location: Nancy, France
Posts: 27
Thanks: 0
Thanked 4 Times in 3 Posts
Default

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?
Reply With Quote
  #5  
Old 2nd June 2008, 19:45
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

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
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 25th August 2008, 21:19
ethanlifka ethanlifka is offline
Junior Member
 
Join Date: Aug 2008
Posts: 29
Thanks: 0
Thanked 6 Times in 4 Posts
Default 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.
Reply With Quote
The Following User Says Thank You to ethanlifka For This Useful Post:
hrvbid (19th September 2008)
  #7  
Old 28th August 2008, 16:01
truelights truelights is offline
Junior Member
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #8  
Old 29th August 2008, 14:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

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).
__________________
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
  #9  
Old 30th August 2008, 10:38
truelights truelights is offline
Junior Member
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?
Reply With Quote
  #10  
Old 30th August 2008, 10:48
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
 
Default

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!
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

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
Postfix - Relay access denied gotting Server Operation 3 23rd April 2008 15:06
Virtual Hosting Not Working stirfry Installation/Configuration 26 7th August 2007 11:53
Fedora 6 (64 bit) PHP Binary coming with ISPConfig does not work properly on your sys silo Installation/Configuration 6 22nd June 2007 10:10
VirtualHosts marra87 General 9 12th September 2006 05:09
The PHP binary coming with ISPConfig does not work properly on your system! lykos Installation/Configuration 3 1st April 2006 08:53


All times are GMT +2. The time now is 10:51.


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