#2 compile instructions for use with php and apache?
open
nobody
None
5
2012-09-14
2003-11-07
Anonymous
No
I have been scouring for detailed compilation
directions to get the mcrypt libs to work with apache
and php4. Any pointers to these resources would be
great.
Jas
After you install the mcrypt and mhash libraries, you just
have to feed the right parameters to the configure script
before using make to compile PHP as follows:
./configure --with-mcrypt --with-mhash
Remember that you will probably feed many of your own
parameters to the configure script in addition to the
parameters above but the parameters above are the ones you
need to enable the mcrypt/mhash related functions in PHP.
Hope this helps...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The problem I have with 'nobody's instructions are that they
assume you have access to the source. I'm running Redhat9
with php 4.2.2-17. Since this is a somewhat older version
which was installed with the OS, I don't have and can no
longer get the source. The fact that I have to recompile
php to get encryption functionality is rediculous. On the
Windows platform I just had to copy a few dll files and edit
a config file to get mcrypt working (2 minutes tops!)
There's got to be a way to make this easier for those of us
who are not experienced enough to recompile php. BTW, I
spent almost 2 days trying to install php 4.3.8 (which is
available) on my machine with mcrypt and couldn't get it
working with apache, so I had to reload the 4.2.2 from an
RPM of the Redhat CD.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've found the easiest way for beginners to get started with
PHP & mcrypt for web development to be a distrubution of
Apache called XAMPP. It's available at this website:
The distribution for Linux systems (tested for SuSE, RedHat,
Mandrake and Debian) contains: Apache, MySQL, PHP & PEAR,
Perl, ProFTPD, phpMyAdmin, OpenSSL, GD, Freetype2, libjpeg,
libpng, gdbm, zlib, expat, Sablotron, libxml, Ming,
Webalizer, pdf class, ncurses, mod_perl, FreeTDS, gettext,
mcrypt, mhash, Turck MMCache, SQLite and IMAP C-Client.
It includes very easy to follow instructions for beginners.
Note the warnings though that the default distribution is
not secure for production sites. There are however simple
instructions for making it secure if you dig a little deeper
on the site.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: NO
After you install the mcrypt and mhash libraries, you just
have to feed the right parameters to the configure script
before using make to compile PHP as follows:
./configure --with-mcrypt --with-mhash
Remember that you will probably feed many of your own
parameters to the configure script in addition to the
parameters above but the parameters above are the ones you
need to enable the mcrypt/mhash related functions in PHP.
Hope this helps...
Logged In: YES
user_id=1098804
The problem I have with 'nobody's instructions are that they
assume you have access to the source. I'm running Redhat9
with php 4.2.2-17. Since this is a somewhat older version
which was installed with the OS, I don't have and can no
longer get the source. The fact that I have to recompile
php to get encryption functionality is rediculous. On the
Windows platform I just had to copy a few dll files and edit
a config file to get mcrypt working (2 minutes tops!)
There's got to be a way to make this easier for those of us
who are not experienced enough to recompile php. BTW, I
spent almost 2 days trying to install php 4.3.8 (which is
available) on my machine with mcrypt and couldn't get it
working with apache, so I had to reload the 4.2.2 from an
RPM of the Redhat CD.
Logged In: YES
user_id=1098804
I've found the easiest way for beginners to get started with
PHP & mcrypt for web development to be a distrubution of
Apache called XAMPP. It's available at this website:
http://www.apachefriends.org/en/
The distribution for Linux systems (tested for SuSE, RedHat,
Mandrake and Debian) contains: Apache, MySQL, PHP & PEAR,
Perl, ProFTPD, phpMyAdmin, OpenSSL, GD, Freetype2, libjpeg,
libpng, gdbm, zlib, expat, Sablotron, libxml, Ming,
Webalizer, pdf class, ncurses, mod_perl, FreeTDS, gettext,
mcrypt, mhash, Turck MMCache, SQLite and IMAP C-Client.
It includes very easy to follow instructions for beginners.
Note the warnings though that the default distribution is
not secure for production sites. There are however simple
instructions for making it secure if you dig a little deeper
on the site.