I would suggest following some other toturial instead of one that lacks any explanations as to the “why” like this one. Linode and digitalocean should have good toturial on how to install wordpress, and although they might not be debian specific, the once regarding ubuntu should probably be compatible with debian.
To answer the question, you need to remove the /wp
part of the alias and get something like
Alias /wp-content /var/lib/wordpress/wp-content
Alias / /usr/share/wordpress
And again, I would not setup wordpress like that in two different directories without a reason.
Related Posts:
- 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?
- .htaccess file missing from WordPress install directory
- Show wordpress locally in xammp and in iPhone via ip
- WordPress: redirecting to my old public ip
- Timthumb isn’t displaying any images. “A TimThumb error has occured
- ssl_error_rx_record_too_long and Apache SSL [closed]
- 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?
- How to automatically redirect HTTP to HTTPS on Apache servers?
- What is Options +FollowSymLinks?
- SVN Error E175002 while checking out code from repository
- 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]
- PHP and mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
- How do you redirect HTTPS to HTTP?
- Adding a user on .htpasswd
- 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
- Apache server keeps crashing, “caught SIGTERM, shutting down”
- httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
- org.apache.jasper.JasperException
- Https to http redirect using htaccess
- Configuring Apache for localhost
- Site does not exist error for a2ensite
- PHP code is not being executed, but the code shows in the browser source code
- How does one suppress a 404 status code in a WordPress page?
- Multisite Network Port Num Issues?
- Hosting multiple WordPress sites on single server – best practices?
- Why is group ownership with rwx permissions not enough?
- 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
- Rewrite URL to remap WordPress Permalink
- WordPress multisite causing Error 101 (net::ERR_CONNECTION_RESET): Unknown error [duplicate]
- Using wp-uploads instead of wp-content/uploads
- What are some good Apache settings to use with wordpress?
- WordPress incorrectly redirects to local IP address?
- Alias domain to Multi-site installation in Apache
- login wp impossible
- wp-admin/index.php gives a “500 Internal Server Error [closed]
- Apache /Ubuntu server not running WordPress installation, outputting PHP code like HTML
- PHP Warning: chmod(): Operation not permitted in class-wp-filesystem-direct.php on line 173
- WordPress – Promoting A Dev Build In A Subdirectory To Production / Root Directory
- Detect CURLOPT_SSL_VERIFYPEER programatically?
- Call to undefined function mysql_connect() After upgrading PHP 7.1 to 7.3
- Internal Server Error apache
- What to do when WordPress posts on a new server return an error 404
- Accidentally messed up URLs
- 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
- Plugins & backup not working correctly on new Digital Ocean server
- https and wordpress breaks posts
- 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
- New wordpress keep redirecting to localhost/wp-admin/install.php
- 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
- How to make wordpress page site.com/content as location for main site.com that is worked on nuxt.js+node?
- How to edit content in WordPress and the Polylang – plugin? – with demosite
- Removed index.php now all pages with Internal Server Error
- WordPress V2 REST-API: Endpoints 404?
- Front-end pages messed up due to HTTPS
- Wp-admin uses different php.ini than the theme files
- How to change wordpress port number to 8000?
- I got ERR_TOO_MANY_REDIRECTS on subdomain
- Migrating WordPress from Windows Server 2008 R2 (IIS v7.5) to CentOS
- Localhost WordPress Uploading of Images Issue
- 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]
- Problems loading stylesheet and permalinks after rebooting
- Permalinks to Post name not working
- Difference in sites-available vs sites-enabled vs conf.d directories (Nginx)?
- WordPress – Unable to Create New Account – Windows/Apache/MySQL
- Serve static files via a subdomain on a wordpress