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 ...