Linux build PHP Extension development framework, Linux build PHP framework _php Tutorial

Source: Internet
Author: User
Tags php framework php source code

Linux builds PHP extension development framework, Linux builds PHP framework


1. Install the phpize (if it is compiled with PHP source code is exempt, it has)

2. Open PHP Source Code, EXT has the Ext_skel tool, use it can easily

./ext_skel--extname = Myext

After you build the extension framework, you need to modify the extended MP4 file.

#cd ext/myext/

#vim Config.mp4

Modify the file as above:

3. Compiling and installing extensions

#cd Myext

#phpize

#./configure--with-php-config =/usr/bin/php-config//php-config's location you can whereis it yourself.

#make

#make test//have a hint to fill Y or N, fill n

#make Install

Generate myext.so

Add extension=myext.so to PHP.ini

Use Php-m to see if the extension was successfully installed.


How to build PHP framework using command line under Linux system? Better detail,

Very troublesome, with XAMPP one-button installation bar, complete and then change the security configuration on the line

Web Environment for PHP program development under Linux system

Find a Fedora, RHEL, install select HTTPd Server, his detailed settings inside to see PHP support (Impression is installed by default), MySQL database server.
Then the installation will be OK.

The rest is simple setup. The default Web directory is in a subdirectory of/var/www/(forget it in detail).

Or install an Ubuntu, APT source has Apache (Apache2 may be called httpd), PHP, MySQL. After that, it's easy to set up.

But the process is best for Google. The main is to look at his settings. The default settings are not good to use. There are different settings for each Linux suite.

But the impression of a special LAMP (Linux + Apache + Mysql + Php) system, installed directly can be used, you can also find to try. Note, however, that this system is intended for direct production use. In other words, there are generally no programs attached, it is possible to install the machine you choose to run the LAMP can only be used as a Web server alone, can not be developed on the above or do anything else.

http://www.bkjia.com/PHPjc/878341.html www.bkjia.com true http://www.bkjia.com/PHPjc/878341.html techarticle Linux Build PHP Extension development framework, Linux build PHP framework 1. Install Phpize (if it is compiled with PHP source code is exempt, itself has) 2. Open PHP Source code, EXT has Ext_skel tools, use ...

  • Related Article

    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.