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
To recompile php manually for ISPConfig, have a look at the configure options in the script install_ispconfig/compile_aps/compile
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?
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
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.
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
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).
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?
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!
I too had the Error: "'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs" when trying to recompile. I tried all types of configurations when recompiling and still had erros so that is why I tried other solutions. The above solution that I posted worked for me. I did NOT have to recompile php. hope this helps others.