好文档就是一把金锄头!
欢迎来到金锄头文库![会员中心]
电子文档交易市场
安卓APP | ios版本
电子文档交易市场
安卓APP | ios版本

Linux系统如何安装php.doc

19页
  • 卖家[上传人]:ss****gk
  • 文档编号:209417091
  • 上传时间:2021-11-10
  • 文档格式:DOC
  • 文档大小:77KB
  • / 19 举报 版权申诉 马上下载
  • 文本预览
  • 下载提示
  • 常见问题
    • Linux系统如何安装phpEnvironmental requirements and preparationIn installing PHP as part of the WWW server, we can consider UNIX operating systems: Or Windows NT / 95. , of course, most people will use UNIX to as PHP execution platfonn (in Windows NT users will choose most IIS ASP), as a result, this book all the content and the sample application are mainly on UNIX. In fact, Linux Apache PHP should be the most economical choice because the combination is almost free of money, and the cost and benefit is the best option. The experience of many successful sites is the best example of this combination.On the Linux operating system, you can choose a variety of Linux suites, including Slackware Linux, RedHat, OpenLinux, SuSE・・・ Wait, its easy and cheap to buy in the store anyway. For students, it is also possible to download the complete system installation at the various FTP sites・The Apache server is the server that is currently used at most WWW sites. You can go to http://www. apache・ org to download the latest version of the program and related documents, if you think it take long to download from abroad, you can also use it in the Mirror sites to download・PHP can go to its official website, , to download the required programs・Although the WindowsNT or Windows98 Win32 platform can also install PHP and Apache server, but it seems no sense, because PHP and Apache under UNIX to run faster and better・Of course, if you want to use a commercial platform, SUN, IBM, HP, DEC, SGI, NEC, and other companies all provide the relevant UNIX or WindowsNT system platform・ Add the Apache server after high security adjustments: either the support or other Apache versions that support SSL・ This combination is believed to meet the needs of commercialization. PHP is a fast and convenient CGI role that makes customers more satisfied with the quality of their service・Rapid configuration and installationHere are the basic installation steps, and the running environment is the system platform for the UNIX series・ Before installing, download apache_ 1. 3. x. t ar. gz and PHP 3. 0. x. t・ gz files・ You can put these two files in/usr/SRC and start the following steps・ Each of the following lines is followed by a step, and all of the options in the step are linked together・ Please do not execute separately.Gzip -d-c apache_1. 3. x. tGzip -d-c PHP 一 3. x. tCD apache_ 1. 3. X/ configure -- prefix 二 / WWWCD. . / PHP - 3. 0 x / configure 一一 with 一一 mysql 一一 with - apache 二・・・ / apache_ 1. 3. x一 一 track-varsThe makeMake installCD. . X/apache_ 1. 3./ configure - prefix 二 / WWW - activate - module 二SRC/modules/php3 / libphp3・ AThe makeMake installThe first and second lines use gzip and tar to add the pipe function and extract the compressed files・ The environment configuration is then executed in the original Apache file directory -- the prefix option instructs Apache to install the directory path・ After entering the・php3 original file directory, if it does not have a MySQL database, can be omitted -with - MySQL option, it is important to join - with 一 apache options, and apache original file path to the right・ After configuring the PHP3, you compile and install the original file directory in Apache・ You then add the PHP module file to the Apache original file directory. After you compile and install Apache, you,re done・ Then you have to configure Apache to get the Web Server running smoothly.It is important to note that the PHP to any database connection, and is in the database before you perform these steps set, and to determine the Web Server can access database system smoothly. If you need other PHP external modules, you should also configure these modules first・CD. . / PHP - 3. 0 xCp php3. Ini 一 dist/usr/local/lib/php3・ iniAfter that, the php3. ini is placed in the specified directory, and you can manually modify the php3. ini file to comply with the requirements if necessary.In the configuration of the Apache server, add the following strings to the Apache configuration file httpd.conf or srm・ conf files. Tell the Apache server that the extension php3 is a special program file・ Extensions can be set to other extensions, of course, there are some website will PHP application extension set as PHTML also is right choice, anyway, it depends on the Webmaster planning・AddType application/x-httpd-php3In PHP 4. X version of the method is roughly and PHP 3. 0 x version is the same, different is that PHP 4. X directory name and compiled modules of different directory. In addition, the default extension is also changed from・ php3 to. php・ Of course, download the PIIP 4.x program before installing it.Gzip -de apache_ 1. 3. x・tGzip - de PHP - 4. x. tCD apache_ 1. 3. X/ configure -- prefix 二 / WWWCD. . / PHP - 4. 0 x/ configure 一一 with 一一 mysql 一一 with - apache 二・・・ / apache_ 1. 3. x track-varsThe makeMake installCD. . X/apache_ 1. 3./ configure - prefix 二 / W。

      点击阅读更多内容
      关于金锄头网 - 版权申诉 - 免责声明 - 诚邀英才 - 联系我们
      手机版 | 川公网安备 51140202000112号 | 经营许可证(蜀ICP备13022795号)
      ©2008-2016 by Sichuan Goldhoe Inc. All Rights Reserved.