MediaWiki installation hangs after exporting LocalSettings.php - mediawiki

I just finished going through the MedaWiki installation steps, and have moved LocalSettings.php to the root directory of the wiki, but the wiki fails to load. Instead, when I go to the wiki index page, the request hangs and does nothing.
attempted /var/www recursive permissions:
777 nobody:nogroup
777 www-data:www-data
777 sshUser:sshUser
Server settings:
Ubuntu 15.04 Lighttpd php5-fpm php5-cgi mysql-server
Other websites load, it's just MediaWiki that fails after exporting LocalSettings.php to the MediaWiki root directory.

I got it to work. What I did was the follow the steps on https://www.raspberrypi.org/forums/viewtopic.php?t=9566 to apt-get install more php files:
sudo apt-get install mysql-client phpmyadmin php5-cgi php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-fpm php5-cgi php5-cli php5-common php5-suhosin
After doing that, and changing the permissions to the wiki root directory to 777, I deleted the old LocalSettings.php and restarted the installation to create a new one. It worked with the new LocalSettings.php.

Related

ubuntu 16.04 install phpmyadmin 404

Operation system: ubuntu 16.04
Runs in a VWWare Player
I installed Lamp with apache2, php, mysql and it works just fine.
then I installed phpmyadmin
sudo apt-get install phpmyadmin
This installs a lot, but if I open the browser with localhost/phpmyadmin I get the 404 Error: Page not found.
I searched for other ways: I was told to just copy the phpmyadmin.***.tar file to the document_root folder. This works, but I don't have access to the Database. I get the User/PWD Dialog but I haven't set anything, so I don't know the password
I would like to get some help on the "sudo install phpmyadmin" way, which seems to me to be the right one.
Regards Martin
I read about some changes up from ubuntu 13
The following did the trick:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin
sudo service apache2 restart
After that I could open localhost/phpmyadmin (But I forgot the password)
So I removed phpmyadmin
sudo apt-get remove --purge phpmyadmin
and simply reinstalled it:
sudo apt-get install phpmyadmin
User name is phpmyadmin and the password has to be set during the installation
I would highly suggest installing this manually so it's up to date and as secure as possible.
cd to webroot
IE: cd /var/www/html
wget https://files.phpmyadmin.net/phpMyAdmin/4.7.7/phpMyAdmin-4.7.7-all-languages.zip && unzip phpMyAdmin-4.7.7-all-languages.zip
Make sure unzip + wget are installed.
apt-get install wget unzip
I also suggest renaming the phpmyadmin dir.
mv phpMyAdmin-4.7.7-all-languages random-name-here
have you tried root with no password? Sorry I'm not allowed to add this as comment.

How to enable allow_url_fopen for phpMyAdmin?

After updating phpMyAdmin to v4.7.5 on my Apache/2.4.10 (Debian) I'm getting:
The curl extension was not found and allow_url_fopen is disabled. Due
to this some features such as error reporting or version check are
disabled.
phpinfo() says Local Value: Off, Master Value: On
In my /etc/php5/cli/php.ini I've: /etc/php5/cli/php.ini
I tried allow_url_fopen Local Value=Off Master Value=Off but it didn't help.
php --ini shows the following files:
Configuration File (php.ini) Path: /etc/php5/cli
Loaded Configuration File: /etc/php5/cli/php.ini
Scan for additional .ini files in: /etc/php5/cli/conf.d
Additional .ini files parsed: /etc/php5/cli/conf.d/05-opcache.ini,
/etc/php5/cli/conf.d/10-pdo.ini,
/etc/php5/cli/conf.d/20-gd.ini,
/etc/php5/cli/conf.d/20-json.ini,
/etc/php5/cli/conf.d/20-mcrypt.ini,
/etc/php5/cli/conf.d/20-mysql.ini,
/etc/php5/cli/conf.d/20-mysqli.ini,
/etc/php5/cli/conf.d/20-pdo_mysql.ini,
/etc/php5/cli/conf.d/20-readline.ini
(Of course I rebooted after making the changes.)
What can I do?
I solved the problem by installing cURL with this command:
apt-get update && apt-get install php5-curl
then
reboot
and ready!
Check if php5-curl is installed with one of those two command
dpkg -s php5-curl
sudo apt-cache policy php5-curl
If it if not try to install it with a:
sudo apt-get install php5-curl
And after that you should retart apache server
No need to reboot

Conflict installing XMind 3.6.0 from RPM on Fedora 23

I am trying to solve problem installing XMind 3.6.0 RPM on Fedora 23.
I have downloaded the .deb package from XMind webpage.
Than, I have converted it to RPM package with Alien, to be able to install it on Fedora with help of this manual.
sudo alien -r -c xmind-3.6.0-2.x86_64.deb
and than install the generated RPM package
sudo rpm -ivh xmind-3.6.0-2.x86_64.rpm
but I keep getting the error message:
Preparing... ################################# [100%]
file /usr/bin from install of xmind-3.6.0-2.x86_64 conflicts with file from package filesystem-3.2-35.fc23.x86_64
file /usr/lib from install of xmind-3.6.0-2.x86_64 conflicts with file from package filesystem-3.2-35.fc23.x86_64
Does anybody know, how to resolve this conflict?
Thanks,
shimon
I was unable to solve the error described in my post. However, I have found a way to install XMind 7 (3.6.0) on Fedora 23.
Following this page.
The problem is, the xmind binaries structure has changed since this article. So the commands needed are little bit different.
Download Xmind portable version from Xmind web page - http://www.xmind.net/xmind/downloads/xmind7-portable-3.6.0.R-201511090408.zip
Extract it to directory ~/xmind_portable, then cd ~/xmind_portable
Untar the data.tar.gz tar -xf data.tar.gz
Move desktop launcher sudo mv ./usr/share/applications/xmind.desktop /usr/share/applications
sudo mv ./usr/share/mime/packages/xmind.xml /usr/share/mime/packages/
Move application data sudo mv ./usr/lib/xmind/ /opt/
Update mime DB sudo update-mime-database /usr/share/mime/
Make a link to your bin
sudo ln -s /opt/xmind/XMind /usr/local/bin/xmind
Then use it!
xmind

MySQL: Package 'mysql-server' has no installation candidate

This error is being shown whenever I want to install any software via command line.
Even if i try to install softwares which I know are present at the source from where I am downloading.
Below is the full error message i am getting :
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mysql-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'mysql-server' has no installation candidate
It worked for me.
If you have followed all the previous steps successfully and after running sudo apt-get install mysql-server you are getting an error then try this
sudo apt-get install mariadb-server
I experienced this issue when trying to install MySQL Server on Debian 10.
Here's how I fixed it:
The issue is caused by the MySQL server apt repository not being included in your system's software repository list. In Debian 10 for example, MariaDB, a community fork of the MySQL project, is packaged as the default MySQL variant.
So to fix this first, add the MySQL server apt repository to your system's software repository list. Follow these steps:
Go to the download page for the MySQL APT repository at:
https://dev.mysql.com/downloads/repo/apt/
Select and download the release package for your Linux distribution. You can use:
sudo wget https://the-download-link
In my case it was:
sudo wget https://dev.mysql.com/get/mysql-apt-config_0.8.15-1_all.deb
Install the downloaded release package with the following command, replacing version-specific-package-name with the name of the downloaded package (preceded by its path, if you are not running the command inside the folder where the package is):
sudo dpkg -i version-specific-package-name.deb
In my case it was:
sudo dpkg -i mysql-apt-config_0.8.15-1_all.deb
Note: dpkg is used to install, remove, and inspect .deb software packages. The -i flag indicates that we’d like to install from the specified file.
During the installation, you’ll be presented with a configuration screen where you can specify which version of MySQL you’d prefer, along with an option to install repositories for other MySQL-related tools. The defaults will add the repository information for the latest stable version of MySQL and nothing else. This is what we want, so use the down arrow to navigate to the Ok menu option and hit ENTER.
You'll also be asked to select a repository to add. Choose 'debian buster' which has the package 'mysql-server' in it. After the adding this repository you can update the repository and use the below command to install MySQL.
sudo apt-get install mysql-server
The package will now finish adding the repository. Refresh your apt package cache to make the new software packages available:
sudo apt update
Note: If you ever need to update the configuration of these repositories, just run sudo dpkg-reconfigure mysql-apt-config, select new options, and then sudo apt-get update to refresh your package cache.
Install MySQL by the following command:
sudo apt-get install mysql-server mysql-client libmysqlclient-dev
Note: This installs the package for the MySQL server, as well as the packages for the client and for the database common files. During the installation, you are asked to supply a password for the root user for your MySQL installation.
The MySQL server is started automatically after installation. You can check the status of the MySQLserver with the following command:
sudo service mysql status
Stop the MySQL server with the following command:
sudo service mysql stop
To restart the MySQL server, use the following command:
sudo service mysql start
MySQL creates a default user called root. You can change the password to any password of your choice by logging in to MySQL console using socket authentication:
sudo mysql -u root
Then run the command below to change the password
ALTER USER 'root'#'localhost' IDENTIFIED WITH mysql_native_password BY 'your-preferred-password';
Reference:
A Quick Guide to Using the MySQL APT Repository
How To Install the Latest MySQL on Debian 10
That's all.
I hope this helps
You can install mysql by
sudo apt install default-mysql-server
--------
sudo service mysql status
● mariadb.service - MariaDB 10.3.31 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2022-02-09 13:19:33 +08; 33s ago
Docs: man:mysqld(8)
https://mariadb.com/kb/en/library/systemd/
Main PID: 18537 (mysqld)
Status: "Taking your SQL requests now..."
Tasks: 31 (limit: 4915)
Memory: 73.1M
CGroup: /system.slice/mariadb.service
└─18537 /usr/sbin/mysqld
run:
apt install default-mysql-server
which installs MariaDB unfortunately, but still responds to service mysql status
Most likely you are running on ubuntu. It is important to run apt-get update first.

How do I update phpMyAdmin in Ubuntu?

I have an old phpMyAdmin installation (contains my training and jobs data). I want to update it to the latest version and I want to keep my data safe while updating it. Is there any way to do it by running some commands on the terminal? Is my data erased if I uninstall phpMyAdmin?
Here is how to upgrade/downgrade on Ubuntu.
Note: The following instruction only works if you previously (and correctly) installed phpMyAdmin with the command line and use APACHE as a web server.
I suppose that you already have a working phpMyAdmin, but the version isn't the one you want. For instance, Ubuntu is shipping the 4.6.x version which doesn't work properly with PHP 7.2.
Check the version you want on:
https://www.phpmyadmin.net/files/
On your server
cd /usr/share/
rm -rf phpmyadmin
then adapt this line with the correct version number
wget https://files.phpmyadmin.net/phpMyAdmin/4.8.0/phpMyAdmin-4.8.0-all-languages.zip
unzip phpMyAdmin-4.8.0-all-languages.zip
rm phpMyAdmin-4.8.0-all-languages.zip
mv phpMyAdmin-4.8.0-all-languages phpmyadmin
Note: If unzip don't work, install it with: sudo apt-get install unzip
Check permissions
Now you should be good.
The owner of /usr/share/phpmyadmin should be root:root on a default installation. This should be fine but if you face some permissions issues, you can try to let Apache be the owner:
# only if you have permissions issues
chown -R www-data:www-data /usr/share/phpmyadmin
chmod -R 755 /usr/share/phpmyadmin
You can also restart Apache
sudo service apache2 reload
Troubleshooting
Note: Depending on your PHP version, you may need to install additional libraries.
For example, to resolve the error about missing mysqli and mysql extensions (update the command to reflect your PHP version):
sudo apt-get install php5.6-mysql
phpmyadmin is mysql client, so it will not affect your database if you uninstall phpmyadmin.
I update phpmyadmin by using terminal commands:
First you have to add repository to get phpmyadmin :
sudo add-apt-repository ppa:nijel/phpmyadmin;
and then update it to get the latest version of software in repositories :
sudo apt-get update;
after that, you can get it (install, you need to uninstall the older version first if you have) :
sudo apt-get install phpmyadmin;
Oh, make sure you are connected to the internet
Using ubuntu? i think it will be better if you ask it in ubuntu forum.
may it helps
------ UPDATE -------
If you find the phpmyadmin version you get from ppa is not the latest one, you can find the latest version here and install it manually (not from repo).
Downloaded phpmyadmin can be installed in /var/www/html/ or in your working directory (public_html or something you've defined). Just extract the zip and move extracted folder to /var/www/html/. And don't forget to change the permission of the phpmyadmin folder to 777(it may not safe, but works fine).
Here is the how:
extract downloaded file
unzip phpMyAdmin-4.6.6-all-languages.zip
move to /var/www/html/, you might need sudo.
if you're not sudoer, move it into your working directory (e.g. public_html), and rename the folder to 'phpmyadmin'
sudo mv phpMyAdmin-4.6.6-all-languages /var/www/html/phpmyadmin
change the permission
sudo chmod 777 -R /var/www/html/phpmyadmin
and then you can access phpmyadmin via http://localhost/phpmyadmin.
If you put the phpmyadmin in public_html, you might want to create a symlink into it from /var/www/html, so you can access phpmyadmin as usual.
phpMyAdmin is only client for MySQL database, it doesn't contain your data. It's all saved in database, so nothing will be deleted even if you delete phpMyAdmin.
To update phpMyAdmin from repository you can follow steps from this thread.
1- check your phpmyadmin version from GUI.
2- Download Latest version of phpMyAdmin HERE
Use the below command to download the latest version of phpMyAdmin into /opt or /usr/src directory
# wget https://files.phpmyadmin.net/phpMyAdmin/4.8.3/phpMyAdmin-4.8.3-all-languages.zip
Notes to install unzip package: apt-get install unzip
# unzip phpMyAdmin-4.8.3-all-languages.zip
3- Find phpMyAdmin Installation Directory
Use the below command to search the phpMyAdmin Installation Directory on your system
# /usr/share/phpMyAdmin
4- Remove/Delete phpMyAdmin content
/usr/share/phpmyadmin is correct phpMyAdmin installation directory, Just Delete/Remove everything from that directory
# cd /usr/share/phpMyAdmin/
# rm -Rf *
5- Move/Copy New phpMyAdmin content
Use the below command to copy all the new phpMyAdmin content to /usr/share/phpmyadmin.
# cd /opt/phpMyAdmin-4.8.3-all-languages
# mv * /usr/share/phpMyAdmin/
6- Restart Apache, MySQL or MariaDB service.
Start/Restart the service in SysVinit Systeme
# service restart httpd
# service restart mysql
Start/Restart the service in Systemd Systeme
# systemctl restart httpd.service
# systemctl restart mariadb.service
7- Now Check New version of phpMyAdmin
Navigate your browser to http://localhost/phpmyadmin, Now you are using latest version 4.8.3 of phpMyAdmin.
Reference
sudo su
cd /usr/share/
rm -rf phpmyadmin
wget https://files.phpmyadmin.net/phpMyAdmin/4.8.4/phpMyAdmin-4.8.4-all-languages.zip
unzip phpMyAdmin-4.8.4-all-languages.zip
mv phpMyAdmin-4.8.4-all-languages phpmyadmin
chown -R www-data:www-data /usr/share/phpmyadmin
chmod -R 755 /usr/share/phpmyadmin
sudo service apache2 reload