내 아파치 서버에 업로드 양식과 PHP 파일을 활성화하는 방법은 무엇입니까?

내 아파치 서버에 업로드 양식과 PHP 파일을 활성화하는 방법은 무엇입니까?

컬을 사용하여 http를 통해 내 아파치 서버에 파일을 업로드하려고 합니다.

내 서버의 루트 디렉토리에 간단한 upload.php 파일이 있고 서버에 단순한 업로드 양식인 "제출" 페이지도 있습니다.

내 서버에 파일을 업로드할 수 있도록 두 장치를 연결하여 함께 작동하려면 어떻게 해야 합니까? 아니면 .php 파일만으로도 내 파일을 서버에 업로드할 수 있나요?

-v를 사용하여 컬 명령을 실행하면 다음과 같은 출력이 표시됩니다.

root@glennvds-VirtualBox:/home/glennvds# curl -F 
‘data=@~/home/glennvds/Desktop/link.txt’ http://xx.xx.xx.xx/upload.php -v
Warning: setting file ~/home/glennvds/Desktop/link.txt’  failed!
*   Trying xx.xx.xx.xx...
* TCP_NODELAY set
* Connected to xx.xx.xx.xx (xx.xx.xx.xx) port 80 (#0)
POST /upload.php HTTP/1.1
Host: xx.xx.xx.xx
User-Agent: curl/7.58.0
Accept: /
Transfer-Encoding: chunked
Content-Type: multipart/form-data; boundary=------------------------ 
f226a51eab6734da
Expect: 100-continue


< HTTP/1.1 100 Continue
* read function returned funny value
* stopped the pause stream!
* Closing connection 0
curl: (26) read function returned funny value

관련 정보