I have installed MediaWiki in my Ubuntu 18.04 and able to get it running properly. After that, I installed NextCloud which is also working fine. But the former stopped working .
Error: Not found. The requested URL was not found on this server.
MediaWiki:
- Version: 1.34.0
- PHP: 7.2
- Path: var/www/html/mediawiki/mediawiki-1.34.0
- URL: http://localhost/mediawiki/mediawiki-1.34.0/index.php/Main_Page
# mediawiki.conf
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/mediawiki/
ServerName http://localhost/mediawiki
ServerAlias www.localhost/mediawiki
<Directory /var/www/html/mediawiki/>
Options +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/apache2/media-error_log
CustomLog /var/log/apache2/media-access_log common
</VirtualHost>
NextCloud:
- Version: 19.0.0
- PHP: 7.4
- Path: var/www/nextcloud
- URL: http://localhost/nextcloud/index.php/login
# nextcloud.conf
Alias /nextcloud "/var/www/nextcloud/"
<Directory /var/www/nextcloud/>
Options +FollowSymlinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
</Directory>
Apache 2:
# apache2.conf
...
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
...
Tried following approaches but to no avail:
I changed the values of AllowOverride and Require in mediawiki.conf
Ran following commands for mediawiki
sudo a2enmod rewrite
sudo service apache2 restart
Firewalls allow for http and https
How do I clear this? I suspect the problem is with Apache2 and Virtual Hosts