Yum Install Perl Apache 2 Soap Php

  

This tutorial exists for these OS versions

  • CentOS 7.6

OCS Inventory no CentOS 7. Instalar novamente o Perl yum install perl-Apache-DBI perl-XML-Entities perl-Apache2-SOAP. Remi install perl-Apache-DBI perl-Apache2. Yum install php-soap Then I went to php.ini to un-comment soap extension. How to enable SOAP on CentOS. All I had to do was restart Apache; the soap.ini file. You'll need to run yum install httpd24-httpd how do you install this to replace the Apache 2.2.15 that comes with the distro so I can install the update and use httpd instead of httpd24-httpd with the service start and stop commands? – user92788 Nov 25 '14 at 18:26. YUM REPOSITORY perl-Apache2-SOAP rpm build for: RedHat EL 6. This package is obsolete. Try find newer perl-Apache2-SOAP. Name: perl-Apache2-SOAP. If you're using official PHP packages shipped with CentOS or RedHat version 6 or 7: # yum install php-soap (Restart Apache/nginx too if appropriate.).

On this page

  1. 4 Installing PHP

This tutorial shows how to install an Apache web server on CentOS 7 server with PHP (mod_php) and MySQL database. The acronym LAMP is short for Linux, Apache, MySQL, PHP.

This updated tutorial shows the installation of the latest PHP versions (7.0, 7.1, 7.2 and 7.3) on CentOS 7.6.

1 Preliminary Note

In this tutorial, I use the hostname server1.example.com with the IP p 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate.

I will add the EPEL repo here to install latest phpMyAdmin as follows:

To edit files on the shell, I'll install the nano editor. If you prefer vi for file editing, then skip this step.

2 Installing MySQL / MariaDB

MariaDB is a MySQL fork of the original MySQL developer Monty Widenius. MariaDB is compatible with MySQL and I've chosen to use MariaDB here instead of MySQL. Run this command to install MariaDB with yum:

Then we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server:

Set passwords for the MySQL root account:

3 Installing Apache

CentOS 7 ships with Apache 2.4. Apache is directly available as a CentOS 7 package, therefore we can install it like this:

Here a screenshot of the installation process.

Now configure your system to start Apache at boot time..

To be able to access the webserver from outside, we have to open the HTTP (80) and HTTPS (443) ports in the firewall. The default firewall on CentOS is firewalld which can be configured with the firewalld-cmd command.

Now direct your browser to the IP address of your server, in my case http://192.168.0.100, and you should see the Apache placeholder page:

4 Installing PHP

The PHP version that ships with CentOS as default is quite old (PHP 5.4). Therefore I will show you in this chapter some options to install newer PHP versions like PHP 7.0 to 7.3 from Remi repository.

Add the Remi CentOS repository.

Install yum-utils as we need the yum-config-manager utility.

and run yum update

Now you have to chose which PHP version you want to use on the server. If you like to use PHP 5.4, then proceed to chapter 4.1. To install PHP 7.0, follow the commands in chapter 4.2, for PHP 7.1 chapter 4.3, for PHP 7.4 use chapter 4.4 and for PHP 7.3 follow chapter 4.5 instead. Follow just one of the 4.x chapters and not all of them as you can only use one PHP version at a time with Apache mod_php.

4.1 Install PHP 5.4

To install PHP 5.4, run this command:

4.2 Install PHP 7.0

We can install PHP 7.0 and the Apache PHP 7.0 module as follows:

4.3 Install PHP 7.1

If you want to use PHP 7.1 instead, use:

4.4 Install PHP 7.2

If you want to use PHP 7.2 instead, use:

4.5 Install PHP 7.3

If you want to use PHP 7.3 instead, use:

In this example and in the downloadable virtual machine, I'll use PHP 7.3.

We must restart Apache to apply the changes: Install hp color laserjet cm1312 mfp windows 7.

5 Testing PHP / Getting Details About Your PHP Installation

The document root of the default website is /var/www/html. We will create a small PHP file (info.php) in that directory and call it in a browser to test the PHP installation. The file will display lots of useful details about our PHP installation, such as the installed PHP version.

Now we call that file in a browser (e.g. http://192.168.0.100/info.php):

As you see, PHP 7.3 is working, and it's working through the Apache 2.0 Handler, as shown in the Server API line. If you scroll further down, you will see all modules that are already enabled in PHP. MySQL is not listed there which means we don't have MySQL support in PHP yet.

6 Getting MySQL Support In PHP

To get MySQL support in PHP, we can install the php-mysqlnd package. It's a good idea to install some other PHP modules as well as you might need them for your applications. You can search for available PHP5 modules like this:

Pick the ones you need and install them like this:

In the next step I will install some common PHP modules that are required by CMS Systems like Wordpress, Joomla, and Drupal:

Now restart Apache web server:

Now reload http://192.168.0.100/info.php in your browser and scroll down to the modules section again. You should now find lots of new modules like curl etc there.:

If you don't need the PHP info output anymore, then delete that file for security reasons.

7 phpMyAdmin installation

phpMyAdmin is a web interface through which you can manage your MySQL databases.
phpMyAdmin can now be installed as follows:

Now we configure phpMyAdmin. We change the Apache configuration so that phpMyAdmin allows connections not just from localhost (by commenting out the <RequireAny> stanza and adding the 'Require all granted' line):

Restart Apache to apply the configuration changes:

Afterwards, you can access phpMyAdmin under http://192.168.0.100/phpmyadmin/:

8 Download as a virtual machine

This setup is available as virtual machine download in ova/ovf format (compatible with VMWare and Virtualbox) for howtoforge subscribers.

Login details for the VM

  • The Linux root password is: howtoforge.
  • Rhe MySQL root password is: howtoforge

Please change both passwords on the first login.

  • The IP address of the VM is 192.168.0.100

Yum Install Perl Apache 2 Soap Php Client

9 Links

Install Perl Apache

Apache: http://httpd.apache.org/
PHP: http://www.php.net/
MySQL: http://www.mysql.com/
CentOS: http://www.centos.org/
phpMyAdmin: http://www.phpmyadmin.net/