Install WordPress on var/www/html - Needs ISPConfig config or not?

Discussion in 'Installation/Configuration' started by MarsWarrior, Apr 8, 2015.

  1. MarsWarrior

    MarsWarrior New Member

    I do have an Ubuntu 14.10 server running ISPConfig.
    The server is accessable through http://www.example.com. The server's name is server1.example.com

    ISPConfig is used to host several WordPress sites on this server. This is working well so far.

    Now I want to install two extra packages on this server (ie on www.example.com):
    - Piwik
    - Wordpress

    Now I found this https://www.howtoforge.com/how-to-install-piwik-on-ubuntu-14.04 to manuall install piwik on /var/www/html/piwik. This requires no settings (like adding websites etc.) in ISPConfig. Access should be through http://www.example.com/piwik

    Is the same method the best one to install WordPress (example: https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-14-04) on this server, ie in /var/www/html/wordpress. Access should be through http://www.example.com/wordpress, or http://www.example.com/ (wordpress configuration option!)

    So in the end I have:
    - www.example.com: my WordPress website (with the WP-PIWIK plugin)
    - piwik.example.com or www.example.com/piwik: my Piwik analytics website to which the WP-PIWIK plugin is pointing to.
    - server1.example.com: the ISPConfig control panel (on port 8080)
    - Several WordPress websites hosted through the ISPConfig panel (all with the WP-PIWIK plugin for analytics)

    Note that I'm using an ISP for mail forwarding and DNS domain/subdomain management: the server is 'just' hosting the websites.

    So the question is: is this the right method (install WordPress/Piwik in /var/www/html), or should it be done different?
    I previously tried to install WordPress via ISPConfig on www.example.com/blog/, but that didn't work for some reason!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats the wrong way. Both guides are for servers without a controlpanel. For your ispconfig server, there are far better ways.

    1) Login to ISPConfig and create a nwe website example.com. Leave all settings at the defaults.
    2) Install piwik and wordprees into subfolders of this website. E.g. installing wordpress is really easy and takes a few minutes only, all you have t do is:

    - create a ftp user for that website
    - create a new mysql user and database in ispconfig.
    - upload wordpress to the web folder with that ftp user.
    - open the url http://www.example.com/blog in your browser and follow the installation instructions on the screeen.

    For piwik it is similar:

    create a new website piwik.example.com in ispconfig, add a mysql user and database, create a ftp user, upload piwik into the web folder of that website ....
     
  3. MarsWarrior

    MarsWarrior New Member

    Thanx for that answer. I will try this way. As I said, I tried this previously with an WordPress APS package, and that did NOT work.
    Your method is something in between fully manually and the fully automatic APS way. Why not using an APS package?
    The APS package way is not possible I understand? And how/where do I translate piwik.example.com to www.example.com/piwik? Manually or somewhere in ISPConfig?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    I always install software manually.

    APS is possible as well, but you often dont get the latest software versions when they are not packaged yet and I dont use the aps installer at all for my sites as I prefer to have control over the way a software is installed.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    For the second way you would create a folder piwik in the website example.com instead and install it there.
     
  6. MarsWarrior

    MarsWarrior New Member

    Ok. Thanks for the explanation :)

    I've never done a manual installation, as I'm used to Bitnami and DirectAdmin installers which do all the hard work for you!

    The 'problem' you mention with up-to-date APS packages is not relevant for both WordPress and Piwik as they have automatic updates and/or dashboard driven updates. No need to use FTP to update to the latest versions.

    Regarding the 'second way': I thought there was the possibility in ISPConfig to redirect piwik.example.com to www.example.com/piwik using subdomains (as vhosts) or not? I tried that before but failed, despite having read the ISPConfig manual...
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats a normal redirect of a subdomain, not a vhost subdomain.
     
  8. MarsWarrior

    MarsWarrior New Member

    Thanx sofar!

    Piwik is up and running on http://www.example.com/piwik/. For some reason http://piwik.example.com/ does not work yet using a subdomain redirect.

    It took some time before I understood that I didn't have to enter a clientid in order to get access to the default website web folder!

    Next is to install wordpress and the piwik plugin to get live data into piwik :D

    Update @2015.04.09:
    Wordpress installed fine using the APS installer and is accessible at http://www.example.com/wordpress.
    I still have to add some rewrite rules in several .htaccess files to:
    - redirect http://www.example.com/ to the wordpress folder
    - redirect my ip address to http://www.example.com/

    (or is this possible in ISPConfig too ?????)

    I hope the last one also fixes my subdomain redirect problem with http://piwik.example.com/ to the /piwik/ folder. For some reason I'm getting a redirect to http://<ip>/piwik which is not recognized as a valid URL...
    No idea if this is a bug in ISPConfig, or that I did something wrong in ISPConfig :mad:
     
    Last edited: Apr 9, 2015

Share This Page