• Hello everyone,

    This is actually a very n00b question (sorry for that). I am a network engineer but do not have much experience in “advanced” config on webservers.

    I am in the process of migrating from Joomla to WordPress and I wanted to have both cms installed on my computer for facility. (On a Ubuntu 22.04 VM actually).

    On the VM, I have a running version of my “old” Joomla website and I succeeded in installing WordPress alongside it.

    Basically, my Joomla is installed on /var/www/html/joomla and I installed WordPress in /var/www/html/joomla/wordpress.

    I have played a lot with the config files in /etc/apache2/sites-available, trying things like this :

    ServerAdmin webmaster@localhost  

    ServerName joomloc
    DocumentRoot /var/www/html/joomla

    <Directory /var/www/html/joomla/>
    Options FollowSymlinks
    AllowOverride All
    Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/example.com_error.log
    CustomLog ${APACHE_LOG_DIR}/example.com_access.log combined

    </VirtualHost>


    <VirtualHost *:80>

    ServerAdmin webmaster@localhost

    ServerName wploc
    DocumentRoot /var/www/html/joomla/wordpress

    <Directory /var/www/html/joomla/wordpress/>
    Options FollowSymlinks
    AllowOverride All
    Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/example.com_error.log
    CustomLog ${APACHE_LOG_DIR}/example.com_access.log combined

    </VirtualHost>

    But whatever I do, I cannot have both websites functionning correctly. The closets I got was joomla website ok and wordpress welcome page ok, but all the links inside were broken.

    I’ve read that there is something to add in the .htaccess file, but I do not really get it.

    Can someone explain?

    Thanks in advance,

    Thierry

Viewing 3 replies - 1 through 3 (of 3 total)
  • Basically, my Joomla is installed on /var/www/html/joomla and I installed WordPress in /var/www/html/joomla/wordpress.

    I’d go the easiest, laziest way with zero vhost configuration needed.

    If the existing Joomla installation is available at http://joomloc/, then the WordPress installation should be available immediately at http://joomloc/wordpress/ … no separate vhost configuration is needed at all.

    Of course, you can always complicate matters with a separate virtual host configuration 😀

    Thread Starter thilroy

    (@thilroy)

    Yes indeed, thanks for your prompt answer George ! That was my favorite scenario too. When I a2dissite everything, including 000-default.conf, I’ve got the apache2 default page on http://joomloc, my Joomla website on http://joomloc/joomla and my wordpress site on http://joomloc/joomla/wordpress. The only caveat is that the links on the wordpress landing page (ie : exemple page ) are not correct : http://joomloc/wordpress/?page_id=2 and of course are broken. They should have been http://joomloc/joomla/wordpress/?page_id=2.
    So, there is some fine-tuning to do to correct that, but where ?

    Thanks again,

    Thierry

    You have to set the site and home URL to http://joomloc/joomla/wordpress/ in WordPress. You can do this in the backend under Settings > General or in the manual ways described here: https://developer.wordpress.org/advanced-administration/upgrade/migrating/#changing-the-site-url

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.