查看“沙盒”的源代码
来自Ubuntu中文
←
沙盒
跳到导航
跳到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
PHP is a general-purpose scripting language suited for Web development. PHP scripts can be embedded into HTML. This section explains how to install and configure PHP in an Ubuntu System with Apache2 and MySQL. This section assumes you have installed and configured Apache2 Web Server and MySQL Database Server. You can refer to the Apache2 and MySQL sections in this document to install and configure Apache2 and MySQL respectively. =Installation= PHP is available in Ubuntu Linux. Unlike python and perl, which are installed in the base system, PHP must be added. To install PHP and the Apache PHP module you can enter the following command at a terminal prompt: <pre> sudo apt install php libapache2-mod-php </pre> You can run PHP scripts at a terminal prompt. To run PHP scripts at a terminal prompt you should install the php-cli package. To install php-cli you can enter the following command at a terminal prompt: <pre> sudo apt install php-cli </pre> You can also execute PHP scripts without installing the Apache PHP module. To accomplish this, you should install the php-cgi package. You can run the following command at a terminal prompt to install the php-cgi package: <pre> sudo apt install php-cgi </pre> To use MySQL with PHP you should install the php-mysql package. To install php-mysql you can enter the following command at a terminal prompt: <pre> sudo apt install php-mysql </pre> Similarly, to use PostgreSQL with PHP you should install the php-pgsql package. To install php-pgsql you can enter the following command at a terminal prompt: <pre> sudo apt install php-pgsql </pre>
返回
沙盒
。
导航菜单
页面操作
页面
讨论
阅读
查看源代码
历史
页面操作
页面
讨论
更多
工具
个人工具
登录
导航
首页
最近更改
随机页面
页面分类
帮助
搜索
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息