[Resolved] 403 error - symlink - phpmyadmin

Discussion in 'General' started by whey, Jun 23, 2010.

  1. whey

    whey New Member

    Trying to connect to phpmyadmin via symlink to mydomain.com/phpmyadmin however i encounter a 403 error. I have looked around and done some research and to no avail so I thought I would post a thread.

    the link links to phpmyadmin ( /usr/share/phpmyadmin )

    Cheers,
    Whey
    Last edited by a moderator: Jun 24, 2010
  2. NiteWave

    NiteWave Administrator

    so you did
    ln -s /usr/share/phpmyadmin mydomain.com/phpmyadmin
    and encountered
    "HTTP Error 403 Forbidden"

    may need define a alias to avoid the error.
    like

    alias /phpmyadmin /usr/share/phpmyadmin

    in your httpd.conf
  3. whey

    whey New Member

    where is the httpd.conf for litespeed located? Tried to look for it but could not find it other than a couple templates in the lsws conf folder.
  4. NiteWave

    NiteWave Administrator

    sorry, I assumed you're in cPanel env and litespeed read apache's httpd.conf.

    the equivalent of alias in litespeed's native configuration is "context" in vhost level.

    add a static context:
    URI:/phpmyadmin/
    Location:/usr/share/phpmyadmin/

    refer document:
    http://www.litespeedtech.com/docs/webserver/config/context/
  5. whey

    whey New Member

    ah so simple connection is fine after inserting the codex.

    Sorry for not saying I was just using litespeed without cpanel. However we do have cpanel servers as well which we might transfer over in the near future, just testing it out on a single domain for now :) Thanks for the help!

Share This Page