27 February 2015

I had an error when upgrading "error: failed to commit transaction (conflicting files)", "filesystem: /srv/http exists in filesystem". It came in relation with core/filesystem 2014.10-3 to 2015.02-1. Errors occurred, no packages were upgraded. The problem was that I have installed Apache and made a symlink from /srv/http to /var/www. The solution was to delete the symlink and configure apache to use /var/www directly.

Source code viewer
  1. # The solution was to delete the symlink and configure apache to use /var/www directly.
  2.  
  3. sudo rm /srv/http
  4.  
  5. sudo vim /etc/httpd/conf/httpd.conf
  6. # Change next lines(If you use cgi you need more changes):
  7. # DocumentRoot "/srv/http" -> DocumentRoot "/var/www"
  8. # <Directory "/srv/http"> -> <Directory "/var/www">
  9. sudo systemctl restart httpd
Programming Language: Bash