Skip to content

“simplexml_import_dom() must be available” Hatası ve Çözümü

Symfony ile yeni bir proje oluştururken bu hata ile karşılaştım. PHP7 kurdum, sonra symfony kurdum. Daha sonra symfony new projeminadi komutunu çalıştırdığımda bu hata ile karşılaştım:

Preparing project…

✕ Symfony 3.3.4 was successfully installed but your system doesn’t meet its
technical requirements! Fix the following issues before executing
your Symfony application:

* simplexml_import_dom() must be available
> Install and enable the SimpleXML extension.

After fixing these issues, re-check Symfony requirements executing this command:

php projeminadi/bin/symfony_requirements

Then, you can:

* Change your current directory to /home/oralunal/projeminadi

* Configure your application in app/config/parameters.yml file.

* Run your application:
1. Execute the php bin/console server:start command.
2. Browse to the http://localhost:8000 URL.

* Read the documentation at http://symfony.com/doc

simplexml_import_dom() must be available Hatasının Çözümü

Hatayı almanızın sebebi PHP-XML’in kurulu olmamasıdır. Hatanın çözümü de oldukça basittir. PHP-XML kurmanız yeterli olacaktır:

sudo apt-get install php-xml

Umarım faydalı olur arkadaşlar,

Kaynak: phpfriend.com/how-to-install-symfony-2-8-under-ubuntu-16-04/

TR Kodlama GitHub'da!

TR Kodlama'da yer alan makaleleri GitHub üzerinden düzenleyebileceğinizi biliyor muyudunuz? Harika değil mi? Bu makale ile ilgili düzenleme yapmak isterseniz aşağıdaki butona tıklayınız!

GitHub'da Görüntüle ve Düzenle!