我有一个在CPanel中托管的Laravel项目,它正在运行,但是当我上传一个图像时,它应该存储在公用文件夹中,比如(“public_path()/post/therealalImage.jpeg”)。
在我的本地机器上,一切都进行得很顺利,但在主机上却没有进展。
我不知道我是否应该做任何…的配置
下面是文件夹的结构
./
| public_html
| | posts
| | index.php
| | some other files
|
| myapp
| | all the other files controllers v
我从localhost运行脚本
我尝试使用Laravel 5.4上传文件到亚马逊网络服务的S3存储桶,但是我得到了这个错误:
Error executing "PutObject" on "https://bucket_name.s3.amazonaws.com/1520719994357906.png"; AWS HTTP error: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c
我的权限有问题。在我的主机上,我在/home/public_html/images上创建了一个文件夹image,并从cpanel 777设置了完全权限。当我尝试使用dropzone上传图片时,它会说:
production.ERROR: exception 'Intervention\Image\Exception\NotWritableException' with message 'Can't write image data to path (/home/username/app_folder/public/images/15003681530.jpg)&
服务器上部署了基于vuejs UI的Laravel项目。现在我需要修改代码,并在本地机器上正常工作。但问题出现了,我必须压缩所有的文件,并再次上传。这看起来很乏味。同样,当我上传它的时候,应用程序似乎没有像在本地机器上那样改变。我该怎么办?我的Cpanel上也没有安装节点,所以我无法运行npm run dev。