title: Allowed memory size of 268435456 bytes exhausted
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4096582/allowed-memory-size-of-x-bytes-exhausted">Allowed memory size of X bytes exhausted</a>  </p>
  </blockquote>
  
  
  
  <p>I'm handling with a quite little big database (87mb) import and to do that I use a php script.
  All the operations are made in locale with an apache installation on Ubuntu Lucid.</p>
  
  <p>When I run the script after few minutes I receive this error:</p>
  
  <pre><code>Allowed memory size of 268435456 bytes exhausted 
  </code></pre>
  
  <p>I've changed <code>memory_limit</code> to 2GB in php.ini file and restarted apache. After that I've checked <code>phpinfo()</code> and I see that <code>memory_limit</code> is set to '2048M' so all is ok.</p>
  
  <p>But when i relaunch my script i receive the same error, 256mb memory limit exahusted. </p>
  
  <p>Where am I wrong?</p>