does antix use www-data or apache2

Forum Forums General Software does antix use www-data or apache2

  • This topic has 4 replies, 4 voices, and was last updated Jun 1-7:08 am by cobber.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #60642
    Member
    cobber

      I’m new to AntiX and have just set up apache2, php and mariaDB.

      I always forget the configuration for localhost as once it’s set I generally don’t touch it for a very long time.

      If I want to allow the creation of directories and files in /var/www/html what is the process please?

      Do I make a new group and add myself to the group and then allow the group to the html directory or is there a better way?

      Many thanks

      • This topic was modified 1 year, 11 months ago by cobber.
      #60662
      Member
      Xecure
        Helpful
        Up
        0
        ::

        I have never set up a webserver, so I cannot provide any good guidance.
        If this article is accurate
        https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-debian-10
        and it isn’t much different in antiX (except for service commands are different, no systemctl), then this should do.

        Maybe you also need to edit something in /etc/hosts, /etc/hostname and /etc/defaultdomain, but I have no idea if this is relevant. Maybe Dave or someone else can give better pointers.

        antiX Live system enthusiast.
        General Live Boot Parameters for antiX.

        #60676
        Forum Admin
        Dave
          Helpful
          Up
          2
          ::

          If this setup is for building / testing webpages then the easiest would be to make the folder with www-data:users ownership

          chown www-data:users /var/www/html
          chmod -R 664 /var/www/html/

          If it is only for your user, add a directory to your home directoy like ~/Web-tests, make the ownership your-username:www-data, and change /etc/apache2/sites-enables/000-default document root to /home/your-username/Web-tests/ followed by an apache restart (service apache2 restart).

          • This reply was modified 1 year, 11 months ago by Dave.

          Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown

          #60678
          Moderator
          Brian Masinick
            Helpful
            Up
            0
            ::

            I read through the article. Caveat: I do not have personal experience installing or using Apache, but many years ago I was on UNIX servers in my organization that were using Apache Web servers,so I’ve seen some of the components in action, and this article appears to be accurate for a simple, first time configuration.

            Note that though they used www as their sample, that is the least secure implementation. I would opt for the most secure option that still accomplishes what you need.

            As Xecure notes, anything with systemctl is using systemd, which we don’t use. In most cases, if it involves looking at information, using the logs in antiX will help. The dmesg or similar tools may suffice for some of this. Using a job control service from either sysvinit or runit that performs a similar function substitutes for what’s mentioned in the article.

            As also mentioned, one of the developers who knows the definitive answer can provide the correct details.

            --
            Brian Masinick

            #60721
            Member
            cobber
              Helpful
              Up
              0
              ::

              Good morning,

              Thanks everyone for the prompt replies, it’s really appreciated.

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.