Espelhar / var / www / html para um diretório / home / user

0

Eu sou muito novo em montar qualquer forma de LAMP e depois de brincar e não passar por um obstáculo em particular, eu estou atrás de alguma ajuda.

Estou usando um RaspberryPi 2 com Raspbian (como o Debian?).

Comecei a instalar primeiro em ordem após atualização / atualização: Apache2 mysql phpmyadmin vsftpd

Uma lista de todos os meus pacotes instalados:

adduser                     install
alsa-utils                  install
apache2                     install
apache2-bin                 install
apache2-data                    install
apache2-utils                   install
apt                     install
apt-listchanges                 install
apt-transport-https             install
apt-utils                   install
aptitude                    install
aptitude-common                 install
avahi-daemon                    install
base-files                  install
base-passwd                 install
bash                        install
bash-completion                 install
bind9-host                  install
binutils                    install
blends-tasks                    install
bluez                       install
bluez-firmware                  install
bsdmainutils                    install
bsdutils                    install
build-essential                 install
bzip2                       install
ca-certificates                 install
cifs-utils                  install
console-setup                   install
console-setup-linux             install
coreutils                   install
cpio                        install
cpp                     install
cpp-6                       install
crda                        install
cron                        install
curl                        install
dash                        install
dbconfig-common                 install
dbconfig-mysql                  install
dbus                        install
dc                      install
debconf                     install
debconf-i18n                    install
debconf-utils                   install
debianutils                 install
default-mysql-client                install
default-mysql-server                install
device-tree-compiler                install
dh-python                   install
dhcpcd5                     install
diffutils                   install
distro-info-data                install
dmidecode                   install
dmsetup                     install
dosfstools                  install
dphys-swapfile                  install
dpkg                        install
dpkg-dev                    install
e2fslibs:armhf                  install
e2fsprogs                   install
ed                      install
fake-hwclock                    install
fakeroot                    install
fbset                       install
file                        install
findutils                   install
firmware-atheros                install
firmware-brcm80211              install
firmware-libertas               install
firmware-misc-nonfree               install
firmware-realtek                install
fontconfig-config               install
fonts-dejavu-core               install
g++                     install
g++-6                       install
galera-3                    install
gawk                        install
gcc                     install
gcc-4.6-base:armhf              install
gcc-4.7-base:armhf              install
gcc-4.8-base:armhf              install
gcc-4.9-base:armhf              install
gcc-5-base:armhf                install
gcc-6                       install
gcc-6-base:armhf                install
gdb                     install
geoip-database                  install
gettext-base                    install
gnupg                       install
gnupg-agent                 install
gpgv                        install
grep                        install
groff-base                  install
gzip                        install
hardlink                    install
hostname                    install
htop                        install
ifupdown                    install
info                        install
init                        install
init-system-helpers             install
initramfs-tools                 install
initramfs-tools-core                install
install-info                    install
iproute2                    install
iptables                    install
iputils-ping                    install
isc-dhcp-client                 install
isc-dhcp-common                 install
iso-codes                   install
iw                      install
javascript-common               install
kbd                     install
keyboard-configuration              install
keyutils                    install
klibc-utils                 install
kmod                        install
less                        install
libacl1:armhf                   install
libaio1:armhf                   install
libalgorithm-diff-perl              install
libalgorithm-diff-xs-perl           install
libalgorithm-merge-perl             install
libapache2-mod-php7.0               install
libapparmor1:armhf              install
libapr1:armhf                   install
libaprutil1:armhf               install
libaprutil1-dbd-sqlite3:armhf           install
libaprutil1-ldap:armhf              install
libapt-inst2.0:armhf                install
libapt-pkg5.0:armhf             install
libarchive13:armhf              install
libasan3:armhf                  install
libasound2:armhf                install
libasound2-data                 install
libassuan0:armhf                install
libatomic1:armhf                install
libattr1:armhf                  install
libaudit-common                 install
libaudit1:armhf                 install
libavahi-common-data:armhf          install
libavahi-common3:armhf              install
libavahi-core7:armhf                install
libbabeltrace-ctf1:armhf            install
libbabeltrace1:armhf                install
libbind9-140:armhf              install
libblkid1:armhf                 install
libboost-filesystem1.62.0:armhf         install
libboost-iostreams1.58.0:armhf          install
libboost-iostreams1.60.0:armhf          install
libboost-iostreams1.62.0:armhf          install
libboost-system1.62.0:armhf         install
libbsd0:armhf                   install
libbz2-1.0:armhf                install
libc-bin                    install
libc-dev-bin                    install
libc-l10n                   install
libc6:armhf                 install
libc6-dbg:armhf                 install
libc6-dev:armhf                 install
libcap-ng0:armhf                install
libcap2:armhf                   install
libcap2-bin                 install
libcc1-0:armhf                  install
libcgi-fast-perl                install
libcgi-pm-perl                  install
libcomerr2:armhf                install
libcryptsetup4:armhf                install
libcurl3:armhf                  install
libcurl3-gnutls:armhf               install
libcwidget3v5:armhf             install
libdaemon0:armhf                install
libdb5.3:armhf                  install
libdbd-mysql-perl               install
libdbi-perl                 install
libdbus-1-3:armhf               install
libdebconfclient0:armhf             install
libdevmapper1.02.1:armhf            install
libdns-export162                install
libdns162:armhf                 install
libdpkg-perl                    install
libdrm2:armhf                   install
libdw1:armhf                    install
libedit2:armhf                  install
libelf1:armhf                   install
libencode-locale-perl               install
libestr0                    install
libevent-2.0-5:armhf                install
libexpat1:armhf                 install
libfakeroot:armhf               install
libfastjson4:armhf              install
libfcgi-perl                    install
libfdisk1:armhf                 install
libffi6:armhf                   install
libfftw3-single3:armhf              install
libfile-fcntllock-perl              install
libfontconfig1:armhf                install
libfreetype6:armhf              install
libfreetype6-dev                install
libgcc-6-dev:armhf              install
libgcc1:armhf                   install
libgcrypt20:armhf               install
libgd3:armhf                    install
libgdbm3:armhf                  install
libgeoip1:armhf                 install
libglib2.0-0:armhf              install
libglib2.0-data                 install
libgmp10:armhf                  install
libgnutls30:armhf               install
libgomp1:armhf                  install
libgpg-error0:armhf             install
libgssapi-krb5-2:armhf              install
libhogweed4:armhf               install
libhtml-parser-perl             install
libhtml-tagset-perl             install
libhtml-template-perl               install
libhttp-date-perl               install
libhttp-message-perl                install
libicu57:armhf                  install
libident                    install
libidn11:armhf                  install
libidn2-0:armhf                 install
libio-html-perl                 install
libip4tc0:armhf                 install
libip6tc0:armhf                 install
libiptc0:armhf                  install
libisc-export160                install
libisc160:armhf                 install
libisccc140:armhf               install
libisccfg140:armhf              install
libisl15:armhf                  install
libiw30:armhf                   install
libjbig0:armhf                  install
libjemalloc1                    install
libjim0.76:armhf                install
libjpeg62-turbo:armhf               install
libjs-jquery                    install
libjs-sphinxdoc                 install
libjs-underscore                install
libk5crypto3:armhf              install
libkeyutils1:armhf              install
libklibc                    install
libkmod2:armhf                  install
libkrb5-3:armhf                 install
libkrb5support0:armhf               install
libksba8:armhf                  install
libldap-2.4-2:armhf             install
libldap-common                  install
liblocale-gettext-perl              install
liblogging-stdlog0:armhf            install
liblognorm5:armhf               install
liblua5.2-0:armhf               install
libluajit-5.1-common                install
liblwp-mediatypes-perl              install
liblwres141:armhf               install
liblz4-1:armhf                  install
liblzma5:armhf                  install
liblzo2-2:armhf                 install
libmagic-mgc                    install
libmagic1:armhf                 install
libmariadbclient18:armhf            install
libmnl-dev                  install
libmnl0:armhf                   install
libmount1:armhf                 install
libmpc3:armhf                   install
libmpdec2:armhf                 install
libmpfr4:armhf                  install
libmtp-common                   install
libmtp-runtime                  install
libmtp9:armhf                   install
libncurses5:armhf               install
libncursesw5:armhf              install
libnetfilter-conntrack3:armhf           install
libnettle6:armhf                install
libnewt0.52:armhf               install
libnfnetlink0:armhf             install
libnfsidmap2:armhf              install
libnghttp2-14:armhf             install
libnih-dbus1                    install
libnih1                     install
libnl-3-200:armhf               install
libnl-genl-3-200:armhf              install
libnpth0:armhf                  install
libnss-mdns:armhf               install
libp11-kit0:armhf               install
libpam-chksshpwd:armhf              install
libpam-modules:armhf                install
libpam-modules-bin              install
libpam-runtime                  install
libpam-systemd:armhf                install
libpam0g:armhf                  install
libparted2:armhf                install
libpcre3:armhf                  install
libpcsclite1:armhf              install
libperl5.24:armhf               install
libpipeline1:armhf              install
libplymouth4:armhf              install
libpng-dev:armhf                install
libpng-tools                    install
libpng16-16:armhf               install
libpopt0:armhf                  install
libprocps6:armhf                install
libpsl5:armhf                   install
libpython-stdlib:armhf              install
libpython2.7-minimal:armhf          install
libpython2.7-stdlib:armhf           install
libpython3-stdlib:armhf             install
libpython3.5:armhf              install
libpython3.5-minimal:armhf          install
libpython3.5-stdlib:armhf           install
libraspberrypi-bin              install
libraspberrypi-dev              install
libraspberrypi-doc              install
libraspberrypi0                 install
libreadline5:armhf              install
libreadline6:armhf              install
libreadline7:armhf              install
librtmp1:armhf                  install
libsamplerate0:armhf                install
libsasl2-2:armhf                install
libsasl2-modules:armhf              install
libsasl2-modules-db:armhf           install
libseccomp2:armhf               install
libselinux1:armhf               install
libsemanage-common              install
libsemanage1:armhf              install
libsepol1:armhf                 install
libsigc++-1.2-5c2               install
libsigc++-2.0-0v5:armhf             install
libsigsegv2:armhf               install
libslang2:armhf                 install
libsmartcols1:armhf             install
libsqlite3-0:armhf              install
libss2:armhf                    install
libssh2-1:armhf                 install
libssl1.0.2:armhf               install
libssl1.1:armhf                 install
libstdc++-6-dev:armhf               install
libstdc++6:armhf                install
libsysfs2:armhf                 install
libsystemd0:armhf               install
libtalloc2:armhf                install
libtasn1-6:armhf                install
libterm-readkey-perl                install
libtext-charwidth-perl              install
libtext-iconv-perl              install
libtext-wrapi18n-perl               install
libtiff5:armhf                  install
libtimedate-perl                install
libtinfo5:armhf                 install
libtirpc1:armhf                 install
libubsan0:armhf                 install
libudev0:armhf                  install
libudev1:armhf                  install
libunistring0:armhf             install
liburi-perl                 install
libusb-0.1-4:armhf              install
libusb-1.0-0:armhf              install
libustr-1.0-1:armhf             install
libuuid1:armhf                  install
libv4l-0:armhf                  install
libv4l2rds0:armhf               install
libv4lconvert0:armhf                install
libwbclient0:armhf              install
libwebp6:armhf                  install
libwrap0:armhf                  install
libx11-6:armhf                  install
libx11-data                 install
libxapian30:armhf               install
libxau6:armhf                   install
libxcb1:armhf                   install
libxdmcp6:armhf                 install
libxext6:armhf                  install
libxml2:armhf                   install
libxmuu1:armhf                  install
libxpm4:armhf                   install
libxslt1.1:armhf                install
libxtables12:armhf              install
libzip4:armhf                   install
linux-base                  install
linux-libc-dev:armhf                install
locales                     install
login                       install
logrotate                   install
lsb-base                    install
lsb-release                 install
lsof                        install
lua5.1                      install
luajit                      install
make                        install
makedev                     install
man-db                      install
manpages                    install
manpages-dev                    install
mariadb-client-10.1             install
mariadb-client-core-10.1            install
mariadb-common                  install
mariadb-server-10.1             install
mariadb-server-core-10.1            install
mawk                        install
mime-support                    install
mount                       install
mountall                    install
multiarch-support               install
mysql-common                    install
mysql-server                    install
nano                        install
ncdu                        install
ncurses-base                    install
ncurses-bin                 install
ncurses-term                    install
net-tools                   install
netbase                     install
netcat-openbsd                  install
netcat-traditional              install
nfs-common                  install
openresolv                  install
openssh-client                  install
openssh-server                  install
openssh-sftp-server             install
openssl                     install
parted                      install
passwd                      install
patch                       install
paxctld                     install
perl                        install
perl-base                   install
perl-modules-5.24               install
php                     install
php-bz2                     install
php-common                  install
php-curl                    install
php-gd                      install
php-mbstring                    install
php-mysql                   install
php-pear                    install
php-php-gettext                 install
php-phpseclib                   install
php-tcpdf                   install
php-xml                     install
php-zip                     install
php7.0                      install
php7.0-bz2                  install
php7.0-cli                  install
php7.0-common                   install
php7.0-curl                 install
php7.0-gd                   install
php7.0-json                 install
php7.0-mbstring                 install
php7.0-mysql                    install
php7.0-opcache                  install
php7.0-readline                 install
php7.0-xml                  install
php7.0-zip                  install
phpmyadmin                  install
pi-bluetooth                    install
pinentry-curses                 install
pkg-config                  install
plymouth                    install
procps                      install
psmisc                      install
python                      install
python-apt-common               install
python-minimal                  install
python-rpi.gpio                 install
python2.7                   install
python2.7-minimal               install
python3                     install
python3-apt                 install
python3-minimal                 install
python3.5                   install
python3.5-minimal               install
raspberrypi-bootloader              install
raspberrypi-kernel              install
raspberrypi-net-mods                install
raspberrypi-sys-mods                install
raspbian-archive-keyring            install
raspi-config                    install
raspi-copies-and-fills              install
readline-common                 install
rename                      install
rpcbind                     install
rpi-update                  install
rsync                       install
rsyslog                     install
samba-common                    install
sed                     install
sensible-utils                  install
sgml-base                   install
shared-mime-info                install
socat                       install
ssh                     install
ssl-cert                    install
strace                      install
sudo                        install
systemd                     install
systemd-sysv                    install
sysvinit-utils                  install
tar                     install
tasksel                     install
tasksel-data                    install
tcpd                        install
traceroute                  install
triggerhappy                    install
tzdata                      install
ucf                     install
udev                        install
unzip                       install
usb-modeswitch                  install
usb-modeswitch-data             install
usbutils                    install
util-linux                  install
v4l-utils                   install
vim-common                  install
vim-tiny                    install
vsftpd                      install
wget                        install
whiptail                    install
wireless-regdb                  install
wireless-tools                  install
wpasupplicant                   install
xauth                       install
xdg-user-dirs                   install
xkb-data                    install
xml-core                    install
xxd                     install
xz-utils                    install
zlib1g:armhf                    install
zlib1g-dev:armhf                install

Eu configurei um usuário mysql para o meu site (com permissões limitadas) ... Então, agora preciso começar a adicionar meu site em / var / www / html

Idealmente, eu queria fazer isso via FTP (por "facilidade"), mas corri para um problema de 550 permissões.

Para começar, criei um novo usuário "ftpuser" no Pi com um diretório inicial /home/ftpuser e achei que poderia montar /var/www/html adicionando uma linha em /etc/fstab :

/var/www/html   /home/ftpuser  none    bind    0       0

e reiniciei o pi. Em seguida, alterei as permissões para /var/www/html para 775 e o proprietário para ftpuser .

drwxrwxrwx 3 ftpuser root 4096 Dec 26 15:55 html

Eu então posso logar com sucesso como ftpuser da minha caixa Unbuntu usando filezilla ... mas quando eu tento carregar "index.php" para / home / ftpuser /

Eu recebo:

Command:    STOR index.php
Response:   550 Permission denied.
Error:  Critical file transfer error
    
por Jcov 26.12.2017 / 17:14

0 respostas