Menu

One more thing

Help
Anonymous
2000-10-31
2000-10-31
  • Anonymous

    Anonymous - 2000-10-31

    How can I make the directories accessible at www.mydomain.com/user instead of www.mydomain/phpwebhosting/public_html/user? Is that configuration in apache or in phpwebhosting?

     
    • Jason Wies

      Jason Wies - 2000-10-31

      #1: You can just create a symlink from public_html to users, ie 'ln -s /path/to/phpwebhosting/public_html /path/to/users'.

      But an even better solution is to edit the values at the begining of main.inc.  There is nothing in PHPWebHosting that says you have to use public_html as the directory.  You can move the directories to wherever you want, as long as you change the paths in main.inc.  The only file you need outside of public_html is sql.inc, which should be somewhere not accessible to the web.  So, for example:

      mv /path/to/phpwebhosting/public_html /path/to/users
      mv /path/to/phpwebhosting/sql.inc /path/sql.inc
      Edit /path/to/users/main.inc, change $rootdir to /path/to/users and $hostname to http://www.yoursite.com/users and $outdir to /path.
      You do NOT need to set $savedeleted, and it shouldn't be set unless you're planning on enabling FTP access (which doesn't work too well, and isn't recommended at all).

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.