ultraport.blogg.se

Install php linux
Install php linux











  1. #Install php linux how to#
  2. #Install php linux install#

Note: if you want to find other PHP extensions installable via yum, you can simply invoke the yum list command.

#Install php linux install#

Root# yum install php-mysql php-pdo php-xml php-mcrypt php-mbstring php-gd

  • php-gd : php extension for dynamic creation of images in PHP using GD library.
  • php-mbstring: php extension for multibyte functionalities (used when working with various charsets).
  • php-mcrypt : php extension for mcrpyt encryption library.
  • php-xml : php extension for XML-related functionalities.
  • php-mysql : php extension for mysql (this will install php-pdo, an extension for native database abstraction in PHP called PDO, as dependency).
  • Installing some extensions that are extensively used in web developmentīelow, you can see the list of the extra extensions we will install after the basic PHP installation. Several PHP extensions are built as shared modules hence we should install them separately.ġ. However, this does not apply to Fedora Linux. In Windows, there is an ext directory containing dlls of PHP extensions that are bundled in the software package. If the installation was successful, you should be able to see the details of your PHP installation from the command line interface.Ĭreate a file named info.php and put it on the document root folder of your server. We need to hook PHP shared object into Apache so that the web server will recognize PHP code and parse it properly.ĭirectoryIndex index.html index.php Session.save_path = “/var/lib/php/session” (or other directory you want to store the session) session.save_path = “/var/lib/php/session” I will explain about selinux and http in another post. Also, if you enable selinux, you also need to properly set the flag of some security parameters related to http. accessible from other computers in the network, you should not firewall the HTTP port, which is usually port 80.

    install php linux install php linux

    If you want the server to be public, i.e.

    #Install php linux how to#

    How to configure Apache is explained in the online documentation. You only need to configure and verify that the server is running. Note: Apache is installed by default in Fedora. For the environment, some important settings are written below:Ĭonstraints : yum is installed, commands invoked in root shell, Apache is already installed and running Even though the installation is simple by nature, I would like to provide some notes to help you troubleshoot some post-installation problems that may occur.Īs usual, I will provide the screenshots of the installation along with the commands invoked on the terminal. In this post, I would like to elaborate PHP installation on Fedora. Previously, I have discussed about how to install MySQL on Fedora Linux.













    Install php linux