Build a php extension development framework in Linux, and build a php framework in linux _ PHP Tutorial

Source: Internet
Author: User
Build a php extension development framework in Linux and a php framework in linux. Build a php extension development framework in Linux and a php framework in linux. install phpize (if php source code is used for compilation, it will be free of use, and it will be available) 2. open the php source code. ext has the ext_skel tool. use Linux to build the php extension development framework, and use linux to build the php framework.

1. install phpize (if php source code is used for compilation, it will be free of use, and it will be available in itself)

2. open the php source code. ext has the ext_skel tool, which can be used conveniently.

./Ext_skel -- extname = myext

After the extension framework is generated, you need to modify the extended mp4 file,

# Cd ext/myext/

# Vim config.mp4

Modify the file as above ..

3. Compile and install extensions

# Cd myext

# Phpize

#./Configure -- with-php-config =/usr/bin/php-config // the position of php-config can be whereis.

# Make

# Make test // There is a prompt to fill in y or n, fill in n

# Make install

Generate myext. so

Add extension = myext. so to php. ini.

Use php-m to check whether the extension is successfully installed.


In linux, how does one use command lines to build a PHP framework? It is better to be more detailed,

It is quite troublesome. use xampp for one-click installation. after the installation is complete, change the security configuration.

Build a website environment for php program development in linux

Find a Fedora or RHEL instance, and select the httpd server during installation. in the detailed settings, check the php support (which is installed by default) and the mysql database server.
Then install it.

The rest is simple settings. The default web directory is in a sub-directory in/var/www/(forgot in detail ).

Or install ubuntu. the apt source contains apache (apache 2 may be called httpd), php, and mysql. Then, you can simply set it.

However, google is the best process. It mainly depends on his settings. The default settings are unavailable. Each Linux suite has different settings.

However, there is a special LAMP (Linux + Apache + Mysql + Php) system, which can be used directly after installation. you can also try it. However, it should be noted that such systems are used for direct production. That is to say, there are generally no additional programs, and it is possible that the machine you choose to run LAMP can only be used as a web server separately, and you cannot develop or do anything above.

Http://www.bkjia.com/PHPjc/878341.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/878341.htmlTechArticleLinux build php extension development framework, linux build php framework 1. install phpize (if php source code is used for compilation, it will be free of use, and it will be available) 2. open the php source code. ext has the ext_skel tool...

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.