{"id":1355,"date":"2017-08-11T19:29:17","date_gmt":"2017-08-11T19:29:17","guid":{"rendered":"https:\/\/puvox.software\/?p=1355"},"modified":"2021-11-14T13:45:49","modified_gmt":"2021-11-14T13:45:49","slug":"solution-error-in-composer-the-requested-php-extension-ext-sockets-is-missing-from-your-system","status":"publish","type":"post","link":"https:\/\/puvox.software\/blog\/solution-error-in-composer-the-requested-php-extension-ext-sockets-is-missing-from-your-system\/","title":{"rendered":"[Solution] The requested PHP extension ext-sockets * is missing from your system"},"content":{"rendered":"<div class=\"default-content-clss content_1355 type_post \"><p>&nbsp;<\/p>\n<h1 style=\"text-align: center;\">Fix the &#8220;ext-sockets&#8221; error in composer:<\/h1>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-1357 size-full\" src=\"https:\/\/puvox.software\/wp-content\/uploads\/2017\/08\/composer-error-e1502465205998.jpg\" alt=\"composer windows showing error message\" width=\"957\" height=\"177\" srcset=\"https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2017\/08\/composer-error-e1502465205998.jpg 957w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2017\/08\/composer-error-e1502465205998-400x74.jpg 400w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2017\/08\/composer-error-e1502465205998-300x55.jpg 300w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2017\/08\/composer-error-e1502465205998-768x142.jpg 768w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2017\/08\/composer-error-e1502465205998-520x96.jpg 520w, https:\/\/puvox.software\/blog\/wp-content\/uploads\/sites\/2\/2017\/08\/composer-error-e1502465205998-60x11.jpg 60w\" sizes=\"(max-width: 957px) 100vw, 957px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>If you tried to use composer and install any specific package\/project (and probably, it&#8217;s the first time when you tried to install a package), \u00a0in some cases you might see the following error:<\/p>\n<p><strong><code>The requested PHP extension ext-sockets * is missing from your system. Install or enable PHP's sockets extension.<\/code><\/strong><\/p>\n<p>To solve that error message, you need to do the following:<\/p>\n<p style=\"text-align: center;\"><span style=\"font-size: 18pt;\">Solution 1<\/span><\/p>\n<ul>\n<li>Open the <code>php.ini<\/code>\u00a0file, probably located in i.e. <code>xamp\\php<\/code>\u00a0or <code>wamp\\bin\\php\\phpX.XX<\/code>\u00a0(where XX is version number)<\/li>\n<li>Search for <code><span class=\"pln\">php_sockets<\/span><span class=\"pun\">.<\/span><span class=\"pln\">dll<\/span><\/code>and uncomment it (by removing the <code>;<\/code>\u00a0in front of it)<\/li>\n<\/ul>\n<p>p.s. \u00a0if your installation doesnt have\u00a0<code>php_sockets.dll<\/code>, you should download exactly version of PHP package from <strong><a href=\"http:\/\/php.net\/downloads.php\">this link<\/a><\/strong>, from the archive, extract <code>php_sockets.dll<\/code>\u00a0 and put in your <code>php\\ext<\/code>\u00a0folder. Then try to install again, the error should be gone.<\/p>\n<p style=\"text-align: center;\"><span style=\"font-size: 18pt;\">Solution 2<\/span><\/p>\n<p>If you still get the error, that means you need to set correct path in <code>php.ini<\/code>\u00a0for extensions (and for other things too). For that, you need to replace the default path for variables in <code>php.ini.<\/code><\/p>\n<p>If still problem, then you can read the accepted <strong><a href=\"https:\/\/stackoverflow.com\/questions\/22332031\/composer-the-requested-php-extension-ext-intl-is-missing-from-your-system\">answer here<\/a><\/strong>.\u00a0 You can comment here you solution and I will add that fix in this list.<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<div class=\"default-content-clss excerpt_1355 type_post \"><p>&nbsp; Fix the &#8220;ext-sockets&#8221; error in composer: &nbsp; If you tried to use composer and install any specific package\/project (and probably, it&#8217;s the first time when you tried to install<a class=\"excerpt-read-more\" href=\"https:\/\/puvox.software\/blog\/solution-error-in-composer-the-requested-php-extension-ext-sockets-is-missing-from-your-system\/\">(Continue Reading)<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":1357,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[17],"tags":[],"class_list":["post-1355","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-coding"],"_links":{"self":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/1355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/comments?post=1355"}],"version-history":[{"count":0,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/posts\/1355\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media\/1357"}],"wp:attachment":[{"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/media?parent=1355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/categories?post=1355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/puvox.software\/blog\/wp-json\/wp\/v2\/tags?post=1355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}