hawc Posted August 8, 2013 Posted August 8, 2013 Can someone please explain how to move the root directories of the above two programs from /var/www to /media/usbflash. I am new to this stuff Thanks Harry
pcstru Posted August 8, 2013 Posted August 8, 2013 Generally config files located under /etc. Apache is probably /etc/apache2/, proftpd might be under it's own folder or just a file. Appropriate google results might help : apache. Proftpd. 1
hawc Posted August 8, 2013 Author Posted August 8, 2013 Should I edit the config files or do a symbolic link?
CyberNerd Posted August 8, 2013 Posted August 8, 2013 I would edit the config to as to avoid confusion in the future. You may also need to make sure: The POSIX attributes are correct in the new directory. The extended attributes (if any) are correct. SELinux (or any other security features) are aware of the change.
hawc Posted August 8, 2013 Author Posted August 8, 2013 You may also need to make sure: The POSIX attributes are correct in the new directory. The extended attributes (if any) are correct. SELinux (or any other security features) are aware of the change. How do I do this?
CyberNerd Posted August 8, 2013 Posted August 8, 2013 If you have any extended attributes ls -l /var/www will show an @ at the end of the POSIX attributes on OSX and a + on Linux. I'm not sure about other unicies. Run sestatus -v (linux) to see if selinux is enabled. If the command doesn't run it probably isn't installed. 1
CyberNerd Posted August 8, 2013 Posted August 8, 2013 They won't care where the web server files live and the database files won't be in /var/www unless its a very bizarre install! 1
hawc Posted August 9, 2013 Author Posted August 9, 2013 No they are not so it should be a smooth move
CyberNerd Posted August 9, 2013 Posted August 9, 2013 also check for hidden files that start with a dot. eg .htaccess ls -la make sure you copy the hidden files.
hawc Posted August 9, 2013 Author Posted August 9, 2013 Can someone help me with Phpmyadmin please. Should I uninstall it and then reinstall it. Will it end up in /medi/usbflash where I want it. I tried to move it but I get root@raspberrypi:/home/pi# mv -p /var/www /media/usbflash root@raspberrypi:/home/pi# mv /var/www /media/usbflash mv: cannot create symbolic link `/media/usbflash/www/phpmyadmin': Operation not permitted root@raspberrypi:/home/pi# cp -t /var/www/* /media/usbflash cp: target `/var/www/index.html' is not a directory root@raspberrypi:/home/pi# mv -f /var/www /media/usbflash mv: inter-device move failed: `/var/www' to `/media/usbflash/www'; unable to remove target: Is a directory root@raspberrypi:/home/pi# mv -f /var/www/* /media/usbflash/* mv: cannot create symbolic link `/media/usbflash/www/phpmyadmin': Operation not permitted I don't want a symbolic link. I want to move the files. That include PhpMyAdmin
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now