Installing WordPress inside Joomla on localhost
-
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
- You must be logged in to reply to this topic.