

# limit libapache2-mod-php to files and directories necessary by pma Your nf file will include lines something like this: Alias /phpmyadmin /usr/share/phpmyadmin These are actually often just symlinks to the actual file which is located somewhere like /etc/phpmyadmin/nf (again using Ubuntu as the example here). On WAMP/Windows/Whatever you'll need to look at the setup for your Apache configuration, but it will probably be in conf-enabled, conf.d, sites-enabled, or something like that. On Ubuntu Linux, this is found in /etc/apache2/conf-enabled/ I'd suggest a better solution is therefore (assuming you are using the standard Apache PHP module) to edit the specific virtual host configuration for PHPMyAdmin. MySQL imports to PHPMyAdmin are often large, but you don't want every Tom, Dick and Mary uploading 64MB files to another site on your server because you need to do it every now and again for your MySQL database. It may not matter greatly on development machines, but editing php.ini to globally increase max upload size could be a really bad idea on a server where you have several websites operating. changing php.ini should probably be your last resort when increasing file upload sizes to something as big as 64MB. I'm surprised nobody else has mentioned this. Save the file, restart apache and mysql in xampp and try to upload again, if you follow correctly you should be able to import files through 16MB (example) Instead of 2M, increase to 16M for example. Instead 60, increase input time in seconds (120 for example)Īnd top of all you have to change this line: upload_max_filesize = 2M Instead 30, increase execution time that’s in seconds (90 for example), also you need to change this line: max_input_time = 60

Instead 2M, put wanted maximum file size (16MB for example but not higher than 128M), 770, or press ctrl+f in notepad++ to find it): With some text editor file (notepad++) open the file called php.ini (by type windows describe it as configuration settings) and edit the line (cca.
#XAMPP FOR WINDOWS XP AND PHP 7 INSTALL#
Open your xampp install folder and go to php folder. Basically we will just increase the maximum upload file size. That should be it.īut if your file exceeded file size of 2MB (that is default value in xampp installation) than you need to tweak some out. Choose file from local folder and leave all settings as is. It’s the best solution to open new, clean database, and import the file in phpMyAdmin.
#XAMPP FOR WINDOWS XP AND PHP 7 HOW TO#
How to import huge amount of Data in Xampp Obviously, the apache service has to be restarted to see the changes. In my case the values were: memory_limit =128M Then checked the variables in the new /etc/php.ini as per Aditya Bhatt advice above and it worked. I copied /private/etc/ cp /private/etc/ /private/etc/php.ini It turns out that the first result in the locate command above is what I'm looking for.Īt least in OS X 10.9.4 Mavericks (OS X is something new to me) /etc is actually a link, etc -> private/etc, and by the looks of it PHP assumes default values unless php.ini is actually present. The below is from the phpinfo(): Configuration File (php.ini) Path: /etc Ĭame back saying that it expects /etc/php.ini but I didn't have one there. I remembered that there is a better way to find out this file I'm looking for or and least where php is looking for php.ini. I've tried editing /usr/local/etc/php/5.4/php.ini and then restart in the server put this didn't work. I had a problem with changing the upload size on my phpmyadmin and OS X 10.9.4 Mavericks.Īt first I didn't know where the php.ini is so used locate locate php.ini

If you were still not able to increase it, please send me an email for more detailed assistance. htaccess file in your application root and add the following line php_value upload_max_filesize 10M If you are in a shared hosting and do not have root access or access to your php.ini configuration file, then the other way is to create a. You can also restart directly from their path like /etc/init.d/apache2 restart or /etc/init.d/httpd restart Usually the command to restart apache would be service httpd restart (CentOs) / service apache2 restart (ubuntu) Step2 : Restart your apache service for this new change to take effect. Step 1: Go to php.ini and find the following and change their values to something more higher than your database size. Usually in servers like CentOs it is located at /etc/php.ini. You can increase the allowed upload size of phpmyadmin by editing your server’s php.ini configuration file. That makes it odd and highly impossible to import larger files. By default you get a 2mb limit of upload / import size in phpmyadmin.
