We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Installing mediawiki with a symlink in public_html and getting an HTTP ERROR 500
Installing mediawiki with a symlink in public_html and getting an HTTP ERROR 500
Hi,
I followed Mediawiki's recommandations to install it on Ubuntu : https://www.mediawiki.org/wiki/Manual:R ... _or_Ubuntu
Mediawiki is installed in : /var/lib/mediawiki
In order to make the files available for different sites, a symlink is used :
However accessing to site.com/mediawiki/ display an HTTP ERROR 500
I tried to copy the files instead of making a symlink. It works this way. However I would have to make multiple copies of the files for the different wikis, which is not a good way to limit ressources used.
Do you know how this problem could be solved ?
Regards
I followed Mediawiki's recommandations to install it on Ubuntu : https://www.mediawiki.org/wiki/Manual:R ... _or_Ubuntu
Mediawiki is installed in : /var/lib/mediawiki
In order to make the files available for different sites, a symlink is used :
Code: Select all
sudo ln -s /var/lib/mediawiki /home/admin/web/site.com/public_html
I tried to copy the files instead of making a symlink. It works this way. However I would have to make multiple copies of the files for the different wikis, which is not a good way to limit ressources used.
Do you know how this problem could be solved ?
Regards
Re: Installing mediawiki with a symlink in public_html and getting an HTTP ERROR 500
The php error log :
Code: Select all
Warning: Unknown: open_basedir restriction in effect. File(/var/lib/mediawiki/index.php) is not within the a$
[Thu May 10 02:47:35.544950 2018] [:error] [pid 11695] [client 51.38.176.57:38306] PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
[Thu May 10 02:47:35.544958 2018] [:error] [pid 11695] [client 51.38.176.57:38306] PHP Fatal error: Unknown: Failed opening required
Re: Installing mediawiki with a symlink in public_html and getting an HTTP ERROR 500
Your problem is here:
Go to /usr/local/vesta/data/web/apache2, then copy a default template and name it for example to mediawiki, then modify the line for open_basedir and add the path:
Then go in vesta to web and change the apache2 template to the new created template.
Code: Select all
open_basedir restriction in effect. File(/var/lib/mediawiki/index.php) is not within the..
Code: Select all
...
php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/var/lib/mediawiki
...
Re: Installing mediawiki with a symlink in public_html and getting an HTTP ERROR 500
Works like a charm ! Thanks ! ;-)