I have lampp and wordpress installed correctly. When I attempt to navigate to http://localhost/phpmyadmin
I get a 403 permission denied error. I can access the two sites available in my virtual host configurations. Though I'm not completely sure of what all options do in my virtual host configuartion files so I think that they mess up something for phpmyadmin. E.g. when I navigate to localhost I get the following error message which probably means that I've done something wrong (there isn't any wordpress installation linked in /var/www/
):
"Neither /etc/wordpress/config-localhost.php
nor /etc/wordpress/config-localhost.php
could be found. Ensure one of them exists, is readable by the webserver and contains the right password/username."
My two sites are available in /var/www/
and the file system layout looks like this:
-site1
---web (public html - symbolic link to /usr/share/wordpress)
---uploads
-site2
---web (public html - symbolic link to /usr/share/wordpress)
---uploads
phpmyadmin has been installed through the Ubuntu 12.04 repositories, just like everything else, and was automatically configured during install (which should make it available by just navigating to http://localhost/phpmyadmin/
but I probably broke that while configuring the rest.)
And this is how I've configured the virtual host (the settings apply to both sites, just different domains):
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName site1.com
ServerAlias www.site1.com
ErrorLog /var/log/apache2/site1.com/error.log
CustomLog /var/log/apache2/site1.com/access.log combined
DocumentRoot /var/www/site1.com/web
<Directory />
Options -Indexes FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
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 ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
#CustomLog ${APACHE_LOG_DIR}/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>
If you have any comments regarding this configuration besides what's needed to make phpmyadmin work please tell me them as well :)
All help is highly appreciated! Thank you very much!