Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

check .conf file error apache

Syntax check
To check configuration files for syntax errors:

# Red Hat-based (Fedora, CentOS), Arch-based and OSX
httpd -t

# Debian-based (Ubuntu)
apache2ctl -t

# MacOS
apachectl -t

-------------------------------------------------------

List virtual hosts
To list all virtual hosts, and their locations:

# Red Hat-based (Fedora, CentOS), Arch-based and OSX
httpd -S

# Debian-based (Ubuntu)
apache2ctl -S

# MacOS
apachectl -S
Comment

PREVIOUS NEXT
Code Example
Shell :: how to install mongoose globally 
Shell :: install formik 
Shell :: pip install rasterio 
Shell :: installation of genymotion on ubuntu 
Shell :: valet allow phpmyadmin route 
Shell :: ailure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user] 
Shell :: home brew for windows 10 
Shell :: linux whereis command 
Shell :: amplify remove environment 
Shell :: dialog plus android github 
Shell :: ngrok with docker-compose 
Shell :: how to read from keyboard in bash and store in a variable 
Shell :: wp-cli search-replace 
Shell :: How to count number of files in each directory 
Shell :: powershell array pipe foreach 
Shell :: silent install google chrome 
Shell :: git squash 
Shell :: update metasploit 
Shell :: ubuntu wifi enabled no internet connection 
Shell :: bash if 
Shell :: discard all changes 
Shell :: git pull from commit 
Shell :: clear the git stash 
Shell :: whats the file path for the documents folder linux 
Shell :: linux rename files add prefix 
Shell :: add ssh keys to github 
Shell :: pull branch git 
Shell :: linux how many cores 
Shell :: gen_random_uuid() does not exist 
Shell :: vtex cli install 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =