mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #116] cannot make it work on ubuntu server #93
Labels
No labels
Feature request
Feature request
bug
cant reproduce
enhancement
help wanted
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pictshare#93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (May 11, 2020).
Original GitHub issue: https://github.com/HaschekSolutions/pictshare/issues/116
When I try to upload a file I'm getting cannot post error. Am I missing something?
curl -F "file=@/Users/apple/Desktop/dev/bethabit/marketing/logo.png" https://bethabit.com/api/upload.phpthis is the nginx block I use.
this is the pictshare config
@geek-at commented on GitHub (May 11, 2020):
does it work if you point it to pictshare.net?
curl -F "file=@/Users/apple/Desktop/dev/bethabit/marketing/logo.png" https://pictshare.net/api/upload.php?
@ghost commented on GitHub (May 11, 2020):
that does work but obviously I need to store the files in my server..
I tried changing the URL in pictshare config file to "https://pictshare.net/" but got the same result "Cannot GET /api/upload.php"
@geek-at commented on GitHub (May 11, 2020):
Sure, just making sure it's a problem on your side.
what's the output of
ls -al /var/run/php/php7.3-fpm.sock@ghost commented on GitHub (May 12, 2020):
It was
cannot access '/var/run/php/php7.3-fpm.sock': No such file or directoryI installed php7 again according to another document https://pixelspress.com/how-to-install-php-7-3-fpm-on-ubuntu-19-10/
Now I get
srw-rw---- 1 www-data www-data 0 May 12 05:33 /var/run/php/php7.3-fpm.sockand I do php -v I get this
PHP 7.3.17-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Apr 19 2020 07:44:26) ( NTS )
I restarted nginx and I was getting the same cannot post error. I thought nginx cannot access var/www/ by sudo so I placed the repo to the root and tried running it again without any success.
@geek-at commented on GitHub (May 13, 2020):
really sounds like a PHP problem. anything in the nginx or php error log?