http-server launch wizard and convenient server management and configuration.
Tested on Ventura.
-
Go to releases page your GitHub repository.
-
Download the latest release, usually it will be named as
AS-http-server-installer.shor similar. -
Open a terminal and navigate to the directory where you downloaded the setup file.
-
Make the file executable:
chmod +x AS-http-server-installer.sh
-
Start instalation File
-
./AS-http-server-installer.sh
You can install AS HTTP Server using the following 1 command:
curl -O https://raw.githubusercontent.com/administrati0n/http-master/main/mac/AS-http-server-installer.sh && chmod +x AS-http-server-installer.sh && ./AS-http-server-installer.sh- Lack of Homebrew:
In console: brew: command not found
Solution: Install Homebrew following the instructions on the official website or
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Console: Error: EACCES: permission denied or similar access denied messages. Solution: Run the command with "sudo" or change the permissions to the desired directory.
In console: Directory not found. Solution: Check and specify the correct path to the project.
In console: Wrong choice!. Solution: Follow the instructions and select one of the options.
In the console: For example, sed: command not found or ln: command not found. Solution: Install the missing utilities or replace them with analogues.
In console: No space left on device or similar messages. Solution: Free up disk space by deleting unnecessary files or moving them to another medium.
In console: Error messages from npm or node indicating incompatibilities or conflicts. Solution: Update or rollback packages. If necessary, use the nvm utility to manage Node.js versions.
In console: curl: (22) The requested URL returned error: 404 Not Found. Solution: Check if the URL is available and correct. If the resource has been moved, find a new URL and update the script.
Tested on Ubuntu, Fedora, Debian, Kali.
-
Go to releases page your GitHub repository.
-
Download the latest release, usually it will be named as
AS-http-server-installer.shor similar. -
Open a terminal and navigate to the directory where you downloaded the setup file.
-
Make the file executable:
chmod +x AS-http-server-installer.sh
-
Start instalation File
-
./AS-http-server-installer.sh
You can install AS HTTP Server using the following 1 command:
curl -O [https://raw.githubusercontent.com/administrati0n/http-master/main/linux/AS-http-server-installer.sh && chmod +x AS-http-server-installer.sh && ./AS-http-server-installer.shIf you encounter any issues while using the installation script, please follow the guide below for the most common errors and their solutions.
Symptoms : The script terminates with the message that curl isn't found on your system.
Solution: The script tries to automatically install curl using the available package manager. If you see this error, it means the script couldn't find a recognized package manager. You'll need to manually install curl for your distribution.
Symptoms: The script terminates with a message saying Node.js is not installed.
Solution: Similar to the curl issue, if you see this error, it means that your package manager isn't recognized by the script. Install Node.js manually for your distribution.
Symptoms: Script complains that npm is missing even after Node.js installation.
Solution: Some Linux distributions separate Node.js and npm into different packages. Make sure you install both. The script attempts to handle this, but in some cases, you might need to install npm separately.
Symptoms: Script indicates that http-server isn't installed.
Solution: The script should automatically install http-server via npm. If this error persists, try running npm install -g http-server manually in the terminal.
Symptoms: The script indicates that the specified project directory doesn't exist.
Solution: Ensure you've provided the correct path to your project. If using the default path, verify that the directory exists on your system.