Exact same thing, just omit the -c
option. Apache’s docs on it here.
htpasswd /etc/apache2/.htpasswd newuser
Also, htpasswd
typically isn’t run as root. It’s typically owned by either the web server, or the owner of the files being served. If you’re using root to edit it instead of logging in as one of those users, that’s acceptable (I suppose), but you’ll want to be careful to make sure you don’t accidentally create a file as root (and thus have root own it and no one else be able to edit it).
Related Posts:
- How can I use an .htaccess file in Nginx?
- .htaccess redirect http to https
- 404 Not Found The requested URL was not found on this server
- What is the difference between Local Server and a Web Server?
- How to run php files on my computer
- Whats the point of running Laravel with the command ‘php artisan serve’?
- Localhost is not working
- PHP $_SERVER[‘HTTP_HOST’] vs. $_SERVER[‘SERVER_NAME’], am I understanding the man pages correctly?
- SVN Error E175002 while checking out code from repository
- XAMPP, Apache – Error: Apache shutdown unexpectedly
- htaccess – Redirect to subfolder without changing browser URL
- Enable PHP Apache2
- client denied by server configuration
- What is HTTPD exactly?
- XAMPP: Connecting to localhost fix? [Persistent]
- Request exceeded the limit of 10 internal redirects due to probable configuration error
- How do you redirect HTTPS to HTTP?
- a2enmod command not found in apache server using cpanel in linux vps
- How do I disable directory browsing?
- Apache and Node.js on the Same Server
- Apache is downloading php files instead of displaying them
- lbmethod_heartbeat:notice – No slotmem from mod_heartmonitor –error after installing apache2.4.2 [closed]
- Difference between Systemctl and service command
- “End of script output before headers” error in Apache
- XAMPP installation on Win 8.1 with UAC Warning
- org.apache.jasper.JasperException
- Https to http redirect using htaccess
- Site does not exist error for a2ensite
- WAMP won’t turn green. And the VCRUNTIME140.dll error
- .htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration
- PHP code is not being executed, but the code shows in the browser source code
- How do I get the right permissions for WordPress running Apache on Debian
- How can I improve site/page performance of WordPress websites?
- Best practices for making a WordPress site “movable”?
- WordPress V2 REST-API: Endpoints 404?
- How to configure self hosted wordpress so that everything can be upgraded/installed from dashboard
- Installing WordPress in a Sub-Folder (not in root) on Localhost
- WordPress multisite causing Error 101 (net::ERR_CONNECTION_RESET): Unknown error [duplicate]
- What’s the proper way to setup WP-CLI on Ubuntu so that I don’t have to use the flag –allow-root?
- Which Apache-modules must I enable?
- What are some good Apache settings to use with wordpress?
- Point root folder to blog.domain.com and subdirectory to domain.com possible?
- Detect CURLOPT_SSL_VERIFYPEER programatically?
- Internal Server Error apache
- What to do when WordPress posts on a new server return an error 404
- Accidentally messed up URLs
- Show wordpress locally in xammp and in iPhone via ip
- WordPress docker with empty responses to HTTP requests
- White Screen of Death for unknown reason but fixes after rebooting the server
- Forbidden You don’t have permission to access this resource. Apache/2.4.41 (Ubuntu) Server [closed]
- WordPress page not accessible through WAN [closed]
- Caching plugins + mod_pagespeed = overkill?
- Virtual HostX and MAMP not working with WordPress
- I Made WordPress Multisite. And Now Everything Doesn’t Display Properly
- If I use Apache & ngnix together will I have fewer problems?
- how to config the home page locally
- WordPress: redirecting to my old public ip
- New wordpress keep redirecting to localhost/wp-admin/install.php
- How to point domain to wordpress page
- CURL error with REST API
- Is a local multisite installation equivalent to multiple VirtualHosts?
- How to rename a wordpress site from http://myserver.example.com/blog to http://myserver.example.com/somethingelse or just http://myserver.example.com
- WordPress in AWS Lightsail – restrict public IP
- How to make wordpress page site.com/content as location for main site.com that is worked on nuxt.js+node?
- Removed index.php now all pages with Internal Server Error
- WordPress V2 REST-API: Endpoints 404?
- Move site root directory on debian
- Wp-admin uses different php.ini than the theme files
- How to change wordpress port number to 8000?
- Timthumb isn’t displaying any images. “A TimThumb error has occured
- I got ERR_TOO_MANY_REDIRECTS on subdomain
- Error 500 ONLY in dashboard main page. How to fix it?
- Localhost WordPress Uploading of Images Issue
- Apache and Networks
- WordPress MAMP Installation Issue
- All scripts and style links return 404 on a local virtualhost
- Configure VirtualHost for a perfect WordPress Environment
- I’m think I’ve found a bug with JetPack 1.7 [closed]
- Issues when moving from server to MAMP
- CHMOD 0777, but WordPress still not able to write files/folders [closed]
- oEmbed work on localhost but not on distant server
- Permalinks to Post name not working
- WordPress – Unable to Create New Account – Windows/Apache/MySQL
- Serve static files via a subdomain on a wordpress
- How to automatically redirect HTTP to HTTPS on Apache servers?
- Only variable references should be returned by reference – Codeigniter
- Using PHP 7 with WAMP
- phpmyadmin “Not Found” after install on Apache, Ubuntu
- apache cpu over 70% on localhost
- Alias domain to Multi-site installation in Apache
- WordPress on Ubuntu 12.10: permalinks problem
- VB.net and WordPress
- WordPress returning 404 for multisite pages
- How to disable server signature on wordpress? [closed]
- Unable to get /%postname%/ permalinks working, 404 on all links
- How to redirect only 404 pages with htaccess in WordPress
- the content of the uploads folder gets deleted periodically, how to figure out what causes it?
- Broken 302 redirection for product subcategory (Woocommerce, Apache)
- Multisite /files/ URLs broken after server move
- Resolve the debugs