i am using laravel
web framework on my ubuntu 14.04
server and nginx
web server , i have this error when i try to upload file using laravel
to server.
my upload directory is on public/uploads
folder that has 777 permission.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
for php -v 7.1
works for me
The GD Graphics Library is for dynamically manipulating images. For Ubuntu you should install it manually:
sudo apt-get install php5-gd
sudo apt-get install php7.0-gd
sudo apt-get install php7.1-gd
sudo apt-get install php7.2-gd
sudo apt-get install php7.3-gd
That's all, you can verify that GD support loaded:
Output should be like this:
In my case under Archlinux:
php-gd
then in your
php.ini
for me in/etc/php/php.ini
uncomment line;extension=gd.so
by removing semicolon.Don't forget to restart the server.
Php 5.6 worked with below command
PHP5.6:
sudo apt-get install php5.6-gd
after installing restart server
@limonte's answer is correct, but if you're using PHP7+, you should use following command:
sudo apt-get install php7.0-gd
If you don't know what version of PHP you're using, just type
php -v
Output should start with something similar to
PHP 7.0.8-0ubuntu0.16.04.2 (cli) ( NTS )
.