Need help?

Our experts have had an average response time of 13.14 minutes in February 2024 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

PHP extension XSL – How we enable it?

by | Oct 26, 2019

PHP extension XSL help websites to generate HTML pages from XML data.

Thus it is quite inevitable in major website building platforms.

However, to enable this extension we install it and add it in the PHP configuration on the server.

At Bobcares, we often get requests to enable XSL extension, as a part of our Server Management Services.

Today, let’s see how our Support Engineers enable this extension.

 

What is XSL?

XSL aka eXtensible Stylesheet Language is a styling language for XML. Moreover, it is a language for expressing style sheets.

The style sheet is a collection of style rules. This describes how the different styles should appear on a webpage.

So, it describes how to display an XML document, where XML is a text-based markup language. To be more specific, XML is a text structured in a specific format.

Many PHP based web development requires XSL extension for displaying XML code on websites. For instance, the missing XSL extension in Magento installation shows up the error as,

PHP extension XSL missing error in Magento installation.

 

How we enable the PHP extension XSL?

Since some applications require XSL extension, we often get requests to enable it. So, let’s discuss how we install PHP extension XSL in the server.

 

XSL extension in Linux servers

To enable XSL extension in Linux servers, we first check if the extension is already present in the server or not.

As a matter of fact, PHP 5 includes the XSL extension by default. Therefore, our Support Engineers use the command,

php -m | grep xsl

If there is no XSL extension, we install it along with the dependencies.

For instance, in a CentOS7 server, we install it using the commands:

yum install php-xml
sudo yum --disableexcludes=main install libxslt.[arch]

Here, we make sure to choose the arch as i686 or x86_64 depending on the server type.

Now to enable the extension, we need to add it to the PHP configuration. For this, we create a new file named xsl.ini in /etc/php.d/ and add the following inside:

extension=xsl.so

Finally, we save and close the file.

Similarly, in an Ubuntu server for the PHP version, we use the commands to install it.

apt-get install php7.0-xsl
apt-get install libxslt-dev

Then add the extension to the PHP configuration and enable the PHP module, use the command,

phpenmod xsl

Finally, we restart the webserver to make the change reflect on the server.

 

PHP extension XSL in Windows

In a similar way, our Support Engineers also enable the XSL module in the Windows server.

Firstly, we open the php.ini file. Then we uncomment the line,

extension=php_xsl.dll

Later, we save the file and restart the webserver.

 

Enable XSL using cPanel

Some customers have control panels for their servers. This makes the task of enabling PHP modules much easier. Let’s take the instance of cPanel.

  1. Firstly, our Support Engineers login as root in the WHM.
  2. Next, we select EasyApache from the Software section.
  3. Here we select the appropriate PHP version.
  4. Now, we search for the XSL modules available.
  5. Finally, we select the module and click the button Save and Build.

This makes the XSL extension now available in the server.

After enabling the module, our Support Engineers always confirm it. For this, we check the phpinfo page in the website. It appears as,

PHP extension XSL in phpinfo page.

[Need help in enabling PHP extension XSL? – We’ll help you.]

 

Conclusion

In short, PHP extension XSL is important for converting XML code to HTML in PHP based websites. Today, we saw how our Support Engineers enable this in various platforms.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

1 Comment

  1. Jaguar

    tranks

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Categories

Tags

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF