Report post You have 30 minutes to complete this form before the CAPTCHA will expire. Security image * Required field JavaScript is required to view this page. Either you do not have JavaScript enabled in your web browser, you do not have cookies enabled in your web browser, or this website is misconfigured such that cookies do not save correctly. This is a reported post for a post in the topic <input class="cms_keep_ui_controlled" size="45" title="[post param="Install Wordpress after nextcloud"]325[/post]" type="button" value="post Comcode tag (dbl-click to edit/delete)" />, by jacobgkau<br /><br /><comcode-quote param="2"><comcode-quote param="vimsee">Hi!<br />Now, I also want to add a wordpress site as well, prefeably under www.mydomain.com (which is already used for my nextcloud server) and then change my nextcloud installation to go under www.nextcloud.mydomain.com.<br />I can setup a new database and install it, but I`m afraid it will mess with my apache configuration as well as the SSL certificate.<br /><input class="cms_keep_ui_controlled" size="45" title="[snapback]324[/snapback]" type="button" value="snapback Comcode tag (dbl-click to edit/delete)" /></comcode-quote><br />Hello there, thanks for stopping by! This is a fairly easy use case; the hardest part will be moving your Nextcloud server's URL.<br />First, you'll want to set up another A record in your DNS pointing to the same IP address. (I'd recommend just using nextcloud.mydomain.com, but if you want www.nextcloud.mydomain.com, you can try creating an A record of "www.nextcloud".)<br />You can separate out your subdomain traffic using Apache by setting up virtual hosts. These are the files located at /etc/apache2/sites-available (and symlinked to /etc/apache2/sites-enabled after you run the a2ensite command.)<br />If you're using the default vhost, you'll want to make a copy of /etc/apache2/sites-available/000-default.conf to a location like /etc/apache2/sites-available/nextcloud.conf, and uncomment the ServerName line. Set the ServerName to nextcloud.mydomain.com, and make sure the DocumentRoot points to the location where your Nextcloud files are.<br />After you save that file, you'll want to run "a2ensite nextcloud" if you called the file nextcloud.conf, and then run Certbot again to make Let's Encrypt set up TLS for that site. Next is the tricky part: if you go to nextcloud.mydomain.com, you'll probably see a Nextcloud error. You'll need to edit /var/www/html/config/config.php (or wherever your Nextcloud config.php is located) and change the domain from www.mydomain.com to nextcloud.mydomain.com. After doing that, Nextcloud should let you access itself from the new URL.<br />Finally, you'll want to create a new directory in /var/www, maybe /var/www/wordpress, and change the DocumentRoot in your old /etc/apache2/sites-available file to point to that directory. (Alternatively, you could create another new vhost file called "wordpress.conf", set the ServerName to www.mydomain.com, set your DocumentRoot in that file, and run "a2ensite wordpress" to enable the vhost.) If at any point you don't have HTTPS (or you don't have it set up correctly), just run Certbot again and try to get it to apply Let's Encrypt to your configuration.<br />Let me know if this helps & if you have any questions/issues!<br /></comcode-quote><br />//// PUT YOUR REPORT BELOW \\\\<br /><br /> Add: Add: Font Size Color [Font] Arial Courier Georgia Impact Times Trebuchet Verdana Tahoma Geneva Helvetica [Size] 0.8 1 1.5 2 2.5 3 4 [Color] Black Blue Gray Green Orange Purple Red White Yellow This is a reported post for a post in the topic [post param="Install Wordpress after nextcloud"]325[/post], by jacobgkau [quote="2"] [quote="vimsee"] Hi! Now, I also want to add a wordpress site as well, prefeably under www.mydomain.com (which is already used for my nextcloud server) and then change my nextcloud installation to go under www.nextcloud.mydomain.com. I can setup a new database and install it, but I`m afraid it will mess with my apache configuration as well as the SSL certificate. [snapback]324[/snapback][/quote] Hello there, thanks for stopping by! This is a fairly easy use case; the hardest part will be moving your Nextcloud server's URL. First, you'll want to set up another A record in your DNS pointing to the same IP address. (I'd recommend just using nextcloud.mydomain.com, but if you want www.nextcloud.mydomain.com, you can try creating an A record of "www.nextcloud".) You can separate out your subdomain traffic using Apache by setting up virtual hosts. These are the files located at /etc/apache2/sites-available (and symlinked to /etc/apache2/sites-enabled after you run the a2ensite command.) If you're using the default vhost, you'll want to make a copy of /etc/apache2/sites-available/000-default.conf to a location like /etc/apache2/sites-available/nextcloud.conf, and uncomment the ServerName line. Set the ServerName to nextcloud.mydomain.com, and make sure the DocumentRoot points to the location where your Nextcloud files are. After you save that file, you'll want to run "a2ensite nextcloud" if you called the file nextcloud.conf, and then run Certbot again to make Let's Encrypt set up TLS for that site. Next is the tricky part: if you go to nextcloud.mydomain.com, you'll probably see a Nextcloud error. You'll need to edit /var/www/html/config/config.php (or wherever your Nextcloud config.php is located) and change the domain from www.mydomain.com to nextcloud.mydomain.com. After doing that, Nextcloud should let you access itself from the new URL. Finally, you'll want to create a new directory in /var/www, maybe /var/www/wordpress, and change the DocumentRoot in your old /etc/apache2/sites-available file to point to that directory. (Alternatively, you could create another new vhost file called "wordpress.conf", set the ServerName to www.mydomain.com, set your DocumentRoot in that file, and run "a2ensite wordpress" to enable the vhost.) If at any point you don't have HTTPS (or you don't have it set up correctly), just run Certbot again and try to get it to apply Let's Encrypt to your configuration. Let me know if this helps & if you have any questions/issues! [/quote] //// PUT YOUR REPORT BELOW \\\\ Use of this website implies that you agree to the website rules and privacy policy.