Sunday, 10 June 2012

Increase php upload size for a plesk user


Edit your domain conf file from 

[root@server ~]# vi /var/www/vhosts/yourdomainname.com/conf/httpd.include

Add 
    php_admin_value post_max_size 60M
    php_admin_value upload_max_filesize 60M

in 

<Directory /var/www/vhosts/yourdomainname.com/httpdocs>
--------
--------
</Directory>

just like this,

    <Directory /var/www/vhosts/yourdomainname.com/httpdocs>
    php_admin_value post_max_size 60M
    php_admin_value upload_max_filesize 60M
    </Directory>

save and exit the editor

Run the command to reconfigure your vhost

[root@server ~]# /usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=yourdomainname.com

No comments:

Post a Comment