phpmyadmin configure: what <Document Root>>

Ryan Schmidt ryandesign at macports.org
Sat Oct 28 09:24:56 UTC 2017


On Oct 27, 2017, at 19:43, Murray Eisenberg wrote:

> I’m using apache 2.4, php 7.1, mysql5.6, phymyadmin 4.7.4.
> 
> "Step 6: Configure phpMyAdmin” at https://trac.macports.org/wiki/howto/PHP begins with the actions:
> 
> $ cd <Document Root>
> $ ln -s /opt/local/www/phpmyadmin/doc/html/ phpmyadmin-doc
> 
> What directory does <Document Root> refer to??
> 
> In httpd.conf I have: 
>    DocumentRoot "/opt/local/www/apache2/html”
> 
> However, via enabling of userdir with apache I have a site at /Users/myname/Sites/.
> And via enabling vhosts with apache I also have various other sites.

This part of the configuration is only relevant if you want to be able to read the phpMyAdmin documentation by visiting http://<servername>/phpmyadmin-doc/

If you do, then you need to make a symlink "phpmyadmin-doc" inside your document root (whatever you may have configured that to be) pointing to the phpMyAdmin documentation folder.

If your httpd.conf says the document root is /opt/local/www/apache2/html, then that's the directory in which you make that symlink.



More information about the macports-users mailing list