title: How to install PHP5 with pthreads on Ubuntu?
body: <p>I have a server which has PHP5 installed. I need pthreads and found that link to install php5 with pthreads:</p>
  
  <p><a href="https://gist.github.com/erkanarslan/d5e56f6dccc8c6dd4087" rel="nofollow noreferrer">PHP5 installation with pthreads</a></p>
  
  <p>I install all the packages I need with <code>apt-get install</code>. I have no idea about what a make file is, how to compile a source code etc. I am a web developer with limited OS knowledge.</p>
  
  <p>I have followed the steps given in the link above. At the last command on step 4, I get an error because <code>/opt/php-zts/modules.d/</code> does not exist.</p>
  
  <p>I simply wanted to replace existing php with a new php installation that supports pthreads. Now, the server code does not work.</p>
  
  <p>How can I install PHP5 with pthreads enabled so that it will replace existing PHP5 installation that I installed with <code>sudo apt-get install php5 libapache2-mod-php5</code>?</p>
  
  <p>Also, I have another question. I need some other packages like php-curl. Can I install them with <code>sudo apt-get install php-curl</code> after I succesfully install PHP? Do these commands work with custom builds?</p>
  
  <p>Edit: <a href="https://stackoverflow.com/questions/18033191/how-to-install-pthread-in-ubuntu-12-10">how-to-install-pthread-in-ubuntu-12-10</a> This is not a solution for my problem because I don't want an isolated installation. I want the installation to replace already existing php installation.</p>