Install PHP5 on FreeBSD

Source: Internet
Author: User
This is a simple task. Cvsup-gL2-hcvsup.freebsd.orgusrshareexamplescvsupports-supfilecdusrportslangphp5 (or use: usrportswwwmod_php5) makeinstallclean but the results found that the slave could not run, reported an error, said what function could not be found. Google

This is a simple task. Cvsup-gL 2-h cvsup.freebsd.org/usr/share/examples/cvsup/ports-supfilecd/usr/ports/lang/php5 (or:/usr/ports/www/mod_php5) make install clean, but the result shows that the handler cannot run, and an error is reported, saying that the function cannot be found. Google

This is a simple task.

Cvsup-gL 2-h cvsup.freebsd.org/usr/share/examples/cvsup/ports-supfilecd/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. The PHP5 installer in Windows has been 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/pcremake install cleancd/usr/ports/lang/php5vi 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.