You should be able to use your user 'ray' in ftp. But 'ray' will be locked to his home directory so can not access the files of user 'rgc'.
With regards to phpadmin, I assume that that is still installed in /var/www and therefore no longer accessible.
What I suggest is to configure (another) virtual hosts. To do so, make a copy of your /etc/apache2/sites-available/default
Code:
sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/phpmyadmin
Next modify the phpmyadmin file that you just created. The below example is based on the very original default file, not the one you modified.
Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName phpmyadmin
DocumentRoot /var/www/phpmyadmin
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/phpmyadmin/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
You also need to create an entry in /etc/hosts for this new website; add the red line below. You need root privileges to edit the file.
Code:
127.0.0.1 localhost
127.0.1.1 wim-desktop
127.0.0.1 phpmyadmin
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Next issue the following 2 commands; the first one enables the new site on your system and the second one is obvious (I guess)
Code:
sudo a2ensite phpmyadmin
sudo service apache2 restart
Next you can use a browser to access the sites
http://localhost will give you the site that we created earlier (in your home directory)
http://phpmyadmin will give you phpmyadmin located in /var/www/phpmyadmin.
PS
Virtual hosts is the normal way to allow one webserver to serve different websites (including different domains and subdomains).
Bookmarks