On 12/5/2016 09:13, Gour wrote:
Hello,
I'm interested what would be recommended way to configure my desktop
machine as localhost for web (PHP) development?
I've few entries like:
127.0.0.1 foo.local bar.local
in my /etc/hosts in order to be able to access development sites via
aliases, e.g. http://foo.local/
Moreover, I'd like to work on the sites under my regular user account
using my uid/gid and keep the development under VCS.
I admit I'm not overly familiar with Apache2 setup and certainly not on
Fedora (on Debian it is configured a bit different) to which I recently
migrated.
As a temporary workaround to make it somehow work I configured Apache to
run under my uid/gid, put my foo/bar sites under /var/www/html as
VirtualHosts, chown-ed them as uid/gid and chmod-ed to 775.
Finally, I symlinked them to ~/prj/www/{foo,bar}...
I have feeling it's pretty ugly setup, so I'm humbly looking for some
improvement tips how to configure Apache+PHP for working on several
web sites on localhost machine?
Sincerely,
Gour
I think you went a bit out of your way by changing the Apache user, but
I believe Virtual Hosts are what you need. I had used them to make
personal web pages in home directories.
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org