logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Two websites on single server
Author
MikeD254



Joined: 30 Jun 2020
Posts: 9
Location: USA, Melbourne

PostPosted: Thu 03 Sep '20 20:20    Post subject: Two websites on single server Reply with quote

I am trying to set up a web server on my private network to host two websites. There is an existing website that was set up when Apache2 was installed. This site is used for testing and learning to code html and css. I want to host another website on the same server running Wordpress. All the prerequisites for Wordpress are present. Here is my current setup:

Distributor ID: Ubuntu
Description: Ubuntu 16.04.7 LTS
Release: 16.04
Codename: xenial

mysqld Ver 5.7.31-0ubuntu0.16.04.1 for Linux on x86_64 ((Ubuntu))

PHP 7.4.9 (cli) (built: Aug 7 2020 14:29:10) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.9, Copyright (c), by Zend Technologies

The Wordpress files were extracted to /var/www/sample/.
The ownership and permissions set to www-data.
A .conf file for each site was created in the sites-available folder.
Symlinks for each are in the sites-enabled folder.

The server was rebooted. The original website is reachable and behaves as usual. The new Wordpress site is unreachable. “The requested URL was not found on this server.”

I am sure that there is something that is not configured correctly or missing.
Any advice or help is greatly appreciated.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7294
Location: Germany, Next to Hamburg

PostPosted: Fri 04 Sep '20 8:16    Post subject: Reply with quote

Did you set up two virtual hosts? ( in /etc/apache2/sites-available/) and use a2ensite ?
Back to top


Reply to topic   Topic: Two websites on single server View previous topic :: View next topic
Post new topic   Forum Index -> Apache