phpmyadmin max upload size

Discussion in 'Installation/Configuration' started by ttoine, Nov 29, 2012.

  1. ttoine

    ttoine New Member

    Hi,

    I followed the howto "The perfect server - Ubuntu 12.04..." with ISPConfig 3. Great, thanks a lot! I am working on a testing server, I hope soon to be able to put my Wordpress Multisites websites from shared hosts to VPS hosts.

    I only have a problem with phpmyadmin: I cannot import files bigger than 2M with http://libre-factory.org/phpmyadmin/ . As you can check on http://libre-factory.org/phpinfo.php , I set it to 32M.

    After searching on the forum, I found stuff about something like that, but for ISPConfig 2. And when I try to edit the suggested file with nano, it is empty... So I guess I am missing something with the ISPConfig3 setup. But what ?

    Toine
     
    Last edited: Nov 29, 2012
  2. till

    till Super Moderator

    Just edit the max upload file size in the file /etc/php5/apache2/php.ini and restart apache.
     
  3. ttoine

    ttoine New Member

    Till,

    If I set upload_max_filesize to 32M, then in phpmysql it is 8M max...
     
  4. till

    till Super Moderator

    Then you might run your phpmyadmin on e.g. fastcgi or suphp and not mod_php. The php.ini for cgi, suphp and fastcgi is:

    /etc/php5/cgi/php.ini
     
  5. ttoine

    ttoine New Member

    So, after checking both files and trials:
    - /etc/php5/cgi/php.ini -> websites created with ISPConfig3, that's why phpinfo show this loaded file
    - /etc/php5/apache2/php.ini -> ISPConfig3, Phpmyadmin, etc...

    Right ?
     
  6. till

    till Super Moderator

    No, the php.ini depends on the php mode that you use for the different sites or software applications:

    php cgi: /etc/php5/cgi/php.ini
    php fcgi: /etc/php5/cgi/php.ini
    suphp: /etc/php5/cgi/php.ini
    mod_php: /etc/php5/apache2/php.ini
     
  7. ttoine

    ttoine New Member

    Till,

    Thanks for your answers. I think ISP Config 3 is too complicated for me:
    - editing apache, php or mysql config files cannot be done in ISPConfig, still need terminal
    - ssh, ftp or webdav can not be created with the same directory, username, password in one time
    - some stuff with "The perfect server..." don't fit my need for Wordpress or don't work the good way (file upload in Wordpress get a server error, etc...)

    So I will look for something more easy to manage.
     
  8. till

    till Super Moderator

    Normally you dont have to do that after initial setup of the server as you can do all required settings for the sites, databases etc. in ispconfig.

    You can access the same directory with ssh and ftp users. Users were not created together as ispconfig offers a more fine grained control over users as it is required by larger hosting companies. If you run a small home server, then this might be too much for you indeed.

    I run several wordpress sites on perfect setup debian servers, they work all out of the box.
     
  9. ttoine

    ttoine New Member

    What about Webdav ?

    And with the Perfect server for Ubuntu 12.04, Wordpress don't work very well...
     
  10. till

    till Super Moderator

    Webdav in pavhe does not support to run under different users which is required for secures websites, so it is not possible to access the site files with webdav. For that reason, webdav is only implemented as file storage option and not to access websites.

    Which problems do you had with wordpress. My guess is that you just used wrong site options as wordpress works out of the box on ubuntu systems that i installed for several clients. All php based cms system require the php mode php- fcgi and suexec has to be enabled, thats described in detail in the manual. With other php modes, you dont get write access to the site directory which is required by wordpress.
     
  11. ttoine

    ttoine New Member

    fcgi and suexec are enabled on the site, as I can see in ISP Config 3. But Wordpress can't upload.

    I am now looking to a solution with less things to manage (one php.ini, not too much options to learn, etc...) And at the moment, I don't find that. Sometime, I hope that shared host with garantied performances would exist, it would be easier...
     
  12. till

    till Super Moderator

    Ok. Please post the output of:

    ls -la /var/www/domain.tld/web/

    Replace domain.tld with the domain name of the site.
     

Share This Page