memory error

Discussion in 'General' started by planet_fox, Jan 14, 2007.

Thread Status:
Not open for further replies.
  1. planet_fox

    planet_fox Member HowtoForge Supporter

    ok I have find this in

    /etc/
    Code:
    host:/etc# grep -R memory_limit * | more
    grep: alternatives/phpextdist: No such file or directory
    grep: alternatives/ext_skel: No such file or directory
    Binary file alternatives/php matches
    Binary file alternatives/php-cgi matches
    Binary file alternatives/php-cgi-bin matches
    php4/apache2/php.ini:memory_limit = 22M      ; Maximum amount of memory a script may consume (8MB)
    php4/apache2/php.ini.save:memory_limit = 32M      ; Maximum amount of memory a script may consume (8MB)
    php4/cli/php.ini:memory_limit = 32M      ; Maximum amount of memory a script may consume (32MB)
    php4/cli/php.ini.dpkg-old:memory_limit = 32M      ; Maximum amount of memory a script may consume (8MB)
    php4/cgi/php.ini:memory_limit = 32M      ; Maximum amount of memory a script may consume (8MB)
    php5/apache2/php.ini:memory_limit = 16M      ; Maximum amount of memory a script may consume (16MB)
    php5/cli/php.ini:memory_limit = 16M      ; Maximum amount of memory a script may consume (16MB)
    php5/cli/php.ini.dpkg-old:memory_limit = 16M      ; Maximum amount of memory a script may consume (16MB)
    php5/cgi/php.ini:memory_limit = 16M      ; Maximum amount of memory a script may consume (16MB)
    php5/cgi/php.ini.dpkg-old:memory_limit = 16M      ; Maximum amount of memory a script may consume (16MB)
    

    All data with "dpkg-old" can I remove ?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    I think so. At least move them out of the php4 or php5 directory.
     
  3. planet_fox

    planet_fox Member HowtoForge Supporter

    Hi

    ok I have the files remove and nor finish the problem. Here can you see some infos I and I do php + suphp new install and i hope i can fix the problem :)

    Code:
    server:# php -i | grep 'php.ini'
    Configuration File (php.ini) Path => /etc/php5/cli/php.ini
    server:#
    server:# php4 -i | grep 'php.ini'
    PHP Warning:  Xdebug MUST be loaded as a Zend extension in Unknown on line 0
    Configuration File (php.ini) Path => /etc/php4/cli/php.ini
    server:# php5 -i | grep 'php.ini'
    Configuration File (php.ini) Path => /etc/php5/cli/php.ini
    server:# php -i | grep 'memory_limit'
    memory_limit => 32M => 32M
    server:# php4 -i | grep 'memory_limit'
    PHP Warning:  Xdebug MUST be loaded as a Zend extension in Unknown on line 0
    memory_limit => 32M => 32M
    
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Is it working now?
     
  5. planet_fox

    planet_fox Member HowtoForge Supporter

    no, my next idee is new install php and suphp and this do on next weekend. I have this week lots of learning for school and it is so bad when I do work on server on Night and musst go to school on 6:30 than I have a very bad Day :eek: . I say you when I have php4 and suphp new install and it work.

    Whats is when I do

    apt-get --purge remove php4 and than apt-get install php4 ?

    makes this big problem ?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats not easy to predict. I've seen that apt sometimes did not enable all PHP modules properly again. maybe its better to remove PHP including the modules and then install them again.
     
  7. planet_fox

    planet_fox Member HowtoForge Supporter

    Problem is solve , I have do

    apt-get --purge remove php4-cgi and than apt-get install php4-cgi

    apt-get --purge remove php5-cgi and than apt-get install php5-cgi

    I can di all in php.ini what I want

    Thread can you close

    Thanks for all Help :)
     
Thread Status:
Not open for further replies.

Share This Page