<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Yogi Siswanto on Medium]]></title>
        <description><![CDATA[Stories by Yogi Siswanto on Medium]]></description>
        <link>https://medium.com/@yogi_siswanto?source=rss-66142b5cb56c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lZ_PT7BJnHbbeAjR4UJoxQ.jpeg</url>
            <title>Stories by Yogi Siswanto on Medium</title>
            <link>https://medium.com/@yogi_siswanto?source=rss-66142b5cb56c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 13:33:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yogi_siswanto/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[exec() has been disabled for security reasons]]></title>
            <link>https://medium.com/@yogi_siswanto/exec-has-been-disabled-for-security-reasons-cdebc63e72dd?source=rss-66142b5cb56c------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdebc63e72dd</guid>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[php-artisan]]></category>
            <category><![CDATA[exec]]></category>
            <dc:creator><![CDATA[Yogi Siswanto]]></dc:creator>
            <pubDate>Fri, 14 Aug 2020 12:42:38 GMT</pubDate>
            <atom:updated>2020-08-14T12:43:52.009Z</atom:updated>
            <content:encoded><![CDATA[<p>Jadi, ketika saya menjalankan perintah <em>laravel </em>yakni <em>php artisan storage:link</em>, muncul <em>eror exec() has been disabled for security reasons</em> seperti gambar berikut ini.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*03aU9ufJ2EE0ctyPTOYMqQ.png" /><figcaption>Tampilan eror — exec() has been disabled for security reasons</figcaption></figure><ol><li>Seperti biasa, saya buka file php.ini pada direktori</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/0*rO40A1s-Yy41-Wrh.png" /><figcaption>Direktori file php.ini pada dari webserver WinNMP</figcaption></figure><p>2. Hilangkan fungsi <em>exec </em>pada daftar fungsi yang tidak diijinkan oleh PHP</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WJzhPdujF3vny6eWduLVcQ.png" /><figcaption>Tampilan php.ini sebelum execnya dihilangkan</figcaption></figure><p>menjadi seperti ini</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*geDxU8Fq6kSNDe0a5GQBwA.png" /><figcaption>Tampilan php.ini setelah execnya dihilangkan</figcaption></figure><p>3. <em>Save </em>file php.ini setelah itu</p><p>4. <em>Restart services</em> PHP</p><p>Dan hasilnya akan seperti gambar berikut ini</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NLWElB7tG7UP5MjXBVFaWg.png" /><figcaption>Sukses menjalankan perintah php artisan storage:link</figcaption></figure><p>Sekian eror hari ini :D</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdebc63e72dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[putenv() has been disabled for security reasons]]></title>
            <link>https://medium.com/@yogi_siswanto/putenv-has-been-disabled-for-security-reasons-4bffe5cfba8e?source=rss-66142b5cb56c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bffe5cfba8e</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[composer]]></category>
            <category><![CDATA[putenv]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Yogi Siswanto]]></dc:creator>
            <pubDate>Thu, 13 Aug 2020 11:53:55 GMT</pubDate>
            <atom:updated>2020-08-13T11:53:55.242Z</atom:updated>
            <content:encoded><![CDATA[<p>Ketika saya menjalankan perintah composer pada <em>command prompt</em>. Muncul <em>error putenv() has been disabled for security reasons</em> seperti pada gambar berikut ini.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*oEjrezWsAmXdwYfSQkxkvA.png" /><figcaption>Error — putenv() has been disabled for security reasons</figcaption></figure><p>Setelah saya cari-cari di <em>google</em>, saya menemukan sebuah <em>thread </em>dari <em>stackoverflow </em>mengenai masalah yang sama.</p><p>Ini <em>thread</em>-nya</p><p><a href="https://stackoverflow.com/questions/51812996/putenv-has-been-disabled-for-security-reasons-when-executing-composer-commands/51813262">putenv has been disabled for security reasons when executing composer commands</a></p><p>Dari <em>thread </em>tersebut saya mengetahui bahwa eror ini terjadi akibat adanya fungsi <em>putenv </em>yang masuk kedalam daftar fungsi-fungsi yang tidak diijinkan oleh PHP.</p><p>Nah, di-<em>thread </em>tersebut juga dijelaskan mengenai perbaikan eror tersebut. Eror tersebut bisa diatasi dengan menghilangkan fungsi <em>putenv </em>di dalam daftar fungsi-fungsi yang tidak ijinkan oleh PHP. Adapun langkah yang saya lakukan antara lain adalah sebagai berikut.</p><p>1. Buka file php.ini pada direktori file PHP yang kita install</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*8QvRl6aYOU3EQjP5CNTyPA.png" /><figcaption>File php.ini didalam direktori PHP dari webserver</figcaption></figure><p>Saya menginstall <em>WinNMP </em>sebagai <em>daily driver webserver</em> saya.</p><p>2. Hilangkan fungsi <em>putenv </em>dari daftar fungsi yang tidak diijinkan oleh PHP</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kCVYmEkghe0fO9ubXXJWSg.png" /><figcaption>Sebelum</figcaption></figure><p>menjadi seperti ini</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3yYyLsvo0zGS5Z2JcPGmMg.png" /><figcaption>Setelah</figcaption></figure><p>3. Save file php.ini</p><p>4. <em>Restart service PHP</em></p><p><em>Voilaaaaaaa</em>, hasilnya seperti gambar berikut ini</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*9VHsqZRSJZUH1Wj-l9TGHA.png" /><figcaption>Composer tidak eror</figcaption></figure><p>Demikian tuliasan kali ini :D</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bffe5cfba8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Error open_basedir restriction in effect]]></title>
            <link>https://medium.com/@yogi_siswanto/error-open-basedir-restriction-in-effect-c3d4d79fb223?source=rss-66142b5cb56c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3d4d79fb223</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[composer]]></category>
            <category><![CDATA[windows-10]]></category>
            <dc:creator><![CDATA[Yogi Siswanto]]></dc:creator>
            <pubDate>Thu, 13 Aug 2020 10:02:44 GMT</pubDate>
            <atom:updated>2020-08-13T10:02:44.655Z</atom:updated>
            <content:encoded><![CDATA[<p>Jadi ceritanya ketika saya mau install composer di komputer, muncul lah error seperti gambar berikut.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*TYgKEDeURN2bxwT6WzdvuA.png" /><figcaption>Composer Installer Error — open_basedir restriction in effect.</figcaption></figure><p>Setelah <em>googling </em>beberapa saat, saya menemukan sebuah <em>issue </em>dari <em>github composer </em>sebagai berikut.</p><p><a href="https://github.com/composer/composer/issues/7353">Composer installation error on Windows 10 · Issue #7353 · composer/composer</a></p><p>Dari <em>issue </em>tersebut, saya baca. Bahwa yang menyebabkan error tersebut adalah <em>user account windows </em>yang digunakan untuk menginstall php, tidak mengijinkan untuk membaca/menulis file kedalam direktori dari <em>webserver</em> (saya menggunakan <em>WinNMP </em>sebagai webserver).</p><p>Menurut keterangan dari <em>issue </em>tersebut, untuk mengatasi masalah <em>error </em>tersebut adalah dengan memberikan komentar pada<em> open_basedir</em> dengan “;”.</p><p>Kemudian saya membuka file (<em>C:\WinNMP\bin\PHP\64bit-php-7.4</em>), lalu mencari file <em>php.ini </em>dan kemudian memberikan komentar pada<em> open_basedir </em>dengan “;”. Untuk tampilannya seperti ini.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*GULpeqFBuAjD8SCQYq-nNQ.png" /><figcaption>Comment out the open_basedir</figcaption></figure><p>Setelah menambahkan komentar pada <em>open_basedir</em>, langkah selanjutnya yang saya lakukan adalah menyimpannya dan melalakukan <em>restart service</em> PHP dan hasilnya sebagai berikut.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*WEVe0Wevl7DfPDI1JNx1zw.png" /><figcaption>Composer yang berhasil diinstall</figcaption></figure><p>Sekian cerita hari ini :D</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3d4d79fb223" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>