Hallo,
I just installed Fedora 17 and configured Apache MySql Php with Virtual Hosts using Home User Privileges in a Developper's environment and I would like to share it:
In Fedora 18, this setup is not working for the moment, since httpd-itk.2.4 has not yet been available through yum. (Check post#4 for a workaround solution)
1) Install LAMP
2) Configure Apache UserDir and setup selinux to allow users install a website on a directory they own.
3) Install httpd-itk to allow apache running a virtual host as owner's "user:group" :
Follow the instructions:Code:yum install httpd-itk
4) Create Virtual HostsCode:cat /usr/share/doc/*itk*/README.Fedora It is only additional MPM for Apache web server. To enable it: 1) If you are use moderm systemd: systemctl stop httpd.service systemctl disable httpd.service systemctl enable httpd-itk.service systemctl start httpd-itk.service 2) If you are still using old sysvinit style: Set HTTPD=/usr/sbin/httpd.itk in /etc/sysconfig/httpd and restart daemon: service httpd restart For more information about Apache refer to man and manuals in main httpd package
5) Enable apache to run as user:group
* The above example was pasted from this postCode:<VirtualHost *:80> ServerAdmin xxx DocumentRoot /xxx/xxx/xxx/ ServerName test.loc ServerAlias test.loc *.test.loc ErrorLog xxx CustomLog xxx ErrorDocument 403 /403.html ErrorDocument 404 /404.html ScriptAlias /cgi-bin/ "xxx/cgi-bin/" <Directory "/xxx/cgi-bin/"> AllowOverride None Options None Order allow,deny Allow from all </Directory> AssignUserId user group </VirtualHost>
6) Don't forget to update /etc/hosts :
And creat a separate virtual host for phpmyadmin:Code:cat /etc/hosts 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 127.0.0.1 test
7) Restart and enjoy:Code:<VirtualHost *:80> DocumentRoot /usr/share/phpMyAdmin ServerName phpmyadmin </VirtualHost>
Kind regards,Code:systemctl start httpd-itk.service
tntrush


Reply With Quote
