Install PhP5 in FreeBSD

Source: Internet
Author: User

This is a simple task.

CVSup-Gl 2-H cvsup.freebsd.org/usr/share/examples/CVSup/ports-supfile
CD/usr/ports/lang/PhP5 (or:/usr/ports/www/mod_php5)
Make install clean

However, the result shows that the handler cannot run and an error is reported, indicating that the function cannot be found. Google knows that this function is provided in a library called PCRE (Perl Compatible Regular Expressions. Install PhP5 in WindowsProgramIt is already included by default, but it is not included in the default options installed with ports. I had to check the materials, repeatedly unload and unload PhP5, but it was always wrong, whether it was installing PhP5 or mod_php5 (later I checked the makefile of mod_php5, it also depends on the installation of PhP5 ). I have also tried to re-compile Apache several times with some options, but it never works. This PCRE does not seem to be in PhP5 or Apache.

It turns out that it is not included in the two, but a separate installation. -_-|

CD/usr/ports/devel/PCRE
Make install clean
CD/usr/ports/lang/PhP5
VI makefile
(Add -- With-PCRE-RegEx at the end of configure_args = and save and exit)
Make install clean

You can add PCRE support for PhP5.

BTW: After the installation is successful, the supervisor still has the problem that you need to re-log on to any operation after logon. Check that it is because of a file permission problem. Just click CHMOD.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.