TAILIEUCHUNG - Beginning PHP6, Apache, MySQL Web Development- P26

Beginning PHP6, Apache, MySQL Web Development- P26:Welcome to Beginning PHP6, Apache, MySQL Web Development , your new trusty resource for assistance in creating your own dynamic web sites. There are a lot of technologies available that can be used to deliver great web sites, and we ’ re glad you chose the Apache/MySQL/PHP (sometimes referred to simply as AMP) approach. You may or may not have had a taste of these three components in the past, but either way we ’ re confident that you will be impressed with the power that lies within them | Appendix I Installation and Configuration on Linux Install PHP PHP is responsible for generating dynamic web pages with data from MySQL. Follow these steps to install PHP on your system 1. Go to the PHP web site at . 2. Click on the Download link to go to the site s downloads page. 3. Scroll down to the Complete Source Code section and click on the appropriate link to download the latest package. 4. Click any of the mirror sites to begin the download. If you have difficulties downloading from one mirror try a different mirror that may be closer to you. 5. Open a console window and change to the directory where you downloaded the tarball. 6. Extract the tarball and change to the directory it creates tar -vxzf cd 7. Configure the source . configure --with-apxs2 usr local apache bin apxs --with-mysql usr local mysql --prefix usr local php Using the - -prefix switch tells the installer where to put the PHP server after it s built. We recommend placing it in usr local php but you may choose to specify a different value depending on your needs or your system s configuration. The --with-apxs2 option specifies the path to Apache s apxs tool. --with-mysql provides the path to your MySQL installation. If you did not install Apache to usr local apache or MySQL to usr local mysql then you will need to change those values accordingly. There are numerous configuration options for PHP and we would almost need a chapter just to describe them all For a complete list of configuration options run . configure --help. 8. Compile the source make 9. Install PHP. We use sudo to escalate our account s privileges because superuser root privileges are needed for this step. sudo make install 10. It is advised to run PHP with a file. By default the PHP installation provides two copies of the file with common configuration values and php. ini-recommended . The file is meant to be used for development purposes while

TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
369    2    0    09-08-2020
1    6    0    09-08-2020
4    2    0    09-08-2020
7    3    0    09-08-2020
52    5    0    09-08-2020
TÀI LIỆU LIÊN QUAN
19    16    0
182    15    0
138    6    0
3    7    0
142    12    0