Install Php Soap On Centos Server

  

Yum install php-soap Then I went to php.ini to un-comment soap extension. It was not there so, I added my own following line. How to enable SOAP on CentOS. Ask Question. -soap Then I went to php.ini to un-comment soap extension. It was not there so, I added my own following line. Extension=soap.so Then i restart server with following. [root@ydomain ~]# yum install php-soap Loaded plugins: fastestmirror, replace. ↳ CentOS 5 - Server Support ↳ CentOS 5 - Security Support. Upgrade to CentOS 6.3 (if this is an option) for later version of php from the distro which is php-5.3.3 Stick with CentOS 5.6 and use distro supplied php 5.1 packages There are other 3rd party repositories offering php53 and php54 packages that you may want to try that might have php-soap. LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the server is already running CentOS, the linux part is taken care of. Here is how to install the rest. The steps in this tutorial require the user on the. Hello, I'm trying to install ext-soap to my php server. I have PHP 7.0 but when i say 'yum install php-soap' it tries to install soap for 5.4.6.

This tutorial exists for these OS versions

  • CentOS 7.6

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:

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

Centos install php 56

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

Install Php 7 Centos 6

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

9 Links

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/

Active2 years, 2 months ago

I would like to enable SOAP on my PHP5/Centos/Apache server. I have full access to the server. My php.ini file includes the below. When I look at phpinfo(), it doesn't reference SOAP. Any suggestions? Thank you

EDIT - Get the following. Tried it on two different servers.

SECOND EDIT PART 1

SECOND EDIT PART 2

user1032531
user1032531user1032531
11.7k40 gold badges145 silver badges262 bronze badges

2 Answers

You may need to make sure the PHP SOAP package is installed. Try running yum install php-soap as root.

Edit: Adapted from this excellent answer to a similar question:

run this:

this tells yum to get the packages from webtatic repository (in addition to system configured repositories). If you want webtatic among system enabled repositories, run:

Community
John CJohn C
7,2202 gold badges31 silver badges44 bronze badges

In case that you have Ubuntu in your machine try the following in your terminal:

  1. sudo apt-get install php-soap
  2. service apache2 restart

To check use php test file inside it only the following function phpinfo(); and check results in the browser which contains the following module like that image:

Noha SalahNoha Salah

Install Centos Server Without Gui

Not the answer you're looking for? Browse other questions tagged phpsoap or ask your own question.