简体   繁体   中英

internal server error 500 only on files transferred over ftp not on locally created files, running ubuntu server 16.04

I am running into an error with uploaded php files, they always return an http 500 error but when I write an identical file in nano on my linux machine the file works perfectly

so far I have tried changing editiors on my windows machine, uninstalling and reinstalling filezilla, I have tried vsftpd and proftpd(current is vsftpd)

Then your file permissions are set wrong. Try chown your webserveruser the files and chmod 755

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM