Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php install yaml extension

I try to install yaml extension for PHP.
I follow this tutorial : https://github.com/LegendOfMCPE/LoM-CMS/wiki/How-to-Install-LibYAML

I have already do:

sudo apt-get install php-pear libyaml-dev
pecl install yaml

But I don't understand the end:

/etc/php5/apache2/php.ini
extension=yaml.so

Can you explain me the last commands?

like image 407
wxcvbn Avatar asked Mar 31 '26 01:03

wxcvbn


1 Answers

You need to edit php.ini file in order to unable the extension. Here is how you can do it.

Command to open and edit the file.

sudo nano /etc/php5/apache2/php.ini

Above command might ask you for the system password you're working on. I've used nano as a text editor you can use any of your choice. (e.g. gedit)

Now go to end of the opened file and paste the following code.

extension=yaml.so

Now save the opened file and close it.


That's all it needs to setup the library. Make sure you restart the apache server to make changes work.

You can restart apache server using following command.

sudo service apache2 restart
like image 76
Alok Patel Avatar answered Apr 02 '26 20:04

Alok Patel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!