Postfix install fails. MySQL conflict - mysql

I'm using CentOS 6, and trying to create a virtual mirror on a new server of an old one (which someone else setup). As much as possible, I want keep everything with the same version, but I've started from scratch and am documenting everything. By default, yum would install MySQL 5.1.73. I downloaded MySQL community v5.1.69 and installed it manually. This required installing a "shared compatibility" package of MySQL v5.1.69 first, and removing mysql-libs.x86_64. With that in place, I successfully mirrored MySQL.
Now, I'm trying to install Postfix. Yum wants to pull version 2.6.6-6. This fails because it requires a dependency that it attempts to install as well: mysql-libs.x86_64 v.5.1.73-5. It splits out a pile of errors messages which are all similar to this:
Transaction Check Error:
file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-community-5.1.69-1.rhel5.x86_64
My old server is using postfix v2.6.6-2, which is apparently compatible with MySQL v5.1.69. I found the rpm for that version of postfix. It doesn't install, because it requires mysql-libs. I can't install mysql-libs v.5.1.69, because it conflicts with the MySQL community edition (also 5.1.69) that I installed. I tried to install the MySQL 5.1.73 "shared compatibility" package, but that conflicts with MySQL community too.
I'm going in circles. Is the only way to break this chain to uninstall MySQL community? Must I just use the v5.1.73 default, and the Postfix 2.6.6-6? I don't expect any real problems, but I'm going to end up with slightly different versions of MySQL and Postfix then I am trying hard to mirror.

I gave up, uninstalled all the MySQL community packages, and just installed the out of the box yum MySQL and Postfix. That works, but I now have different versions of this software on these two servers as a result.

Related

Install Dreamfactory on Xampp

I have been trying to install Dreamfactory on Xampp but can't find a single article on how to do so.
Purpose: To generate REST API in php with mysql.
What I have tried:
Initially I installed windows version of
Dreamfactory from official site. It was installed successfully but it don't allow access to MYSQL database in free version. Paid version is out of my budget, so I tried with Xampp. I downloaded open-source version from
Github. After extracting it, executed php artisan serve in xampp command shell as mentioned on Dreamfactory Wikipedia Installation guide. This resulted in following error:
Warning: require(D:\xampp\htdocs\sandbox\dreamfactory\public/../vendor/autoload.php): failed to open stream: No such file or directory in D:\xampp\htdocs\sandbox\dreamfactory\public\index.php on line 24
Fatal error: require(): Failed opening required 'D:\xampp\htdocs\sandbox\dreamfactory\public/../vendor/autoload.php' (include_path='D:\xampp\php\PEAR') in D:\xampp\htdocs\sandbox\dreamfactory\public\index.php on line 24
As mentioned in Git documentation, they have given installation procedures for Ubuntu and Debian. Further more, they have mentioned about Bitnami official installation software, but non for XAMPP or stuff like that.
Question:
Is there any way we can install Dreamfactory on XAMPP? If yes, how so!
I'd venture it's going to be fairly difficult task to run DreamFactory on XAMPP because DreamFactory requires quite a few dependencies which are not installed on XAMPP by default.
Your best bet would be to run the Bitnami for DreamFactory environment, or alternatively use Docker. Both can be downloaded from the DreamFactory website downloads page. Alternatively, if you'd like to run DreamFactory in a VM, the OSS download README points to automated installers for Debian and Ubuntu. Additional installers for CentOS and Fedora are found here, they work great however we just haven't moved them into the official distribution yet.

Upgrading from 3.0 to 3.2

I'm tying to upgrade the Zabbix Server from 3.0 to 3.2 on Ubuntu 16.04 that I didn't install by myself and I don't know if it was istalled form repository or sources. I've done all the necessary backups and when I'm tying to execute this command
sudo apt-get install --only-upgrade zabbix-server-mysql zabbix-frontend-php zabbix-agent
I get this message
Skipping zabbix-server-mysql, it is not installed and only upgrades
are requested.
I'm using MySQL with a working DB for Zabbix. Can the Zabbix Server be installd without the zabbix-server-mysql package and still use the MySQL database? If yes, does it mean that the previous user installed it from sources and not from the repository?
I didn't find similar problems searching the net so maybe someone here can help me.
dpkg-query -l 'zabbix*'
You'll see if Zabbix has been installed through the packages.
According to the error message you have, I would say definitely no.
Do a typical install through the packages, re-enter the login/pass of your MySQL DB and it will upgrade it. Don't forget to make a backup first, just in case something goes wrong.

How do I update phpMyAdmin on EC2 LAMP Server?

I have a LAMP server on an EC2 instance. I downloaded phpMyAdmin using Amazon's guide here: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html.
On the phpMyAdmin page it says that:
"A newer version of phpMyAdmin is available and you should consider upgrading. The newest version is 4.6.5.2, released on 2016-12-05."
and I need to update it and also MySQL to use new features they put on the updates.
I'm accessing the EC2 instance from the terminal in my Mac laptop. I've tried a lot of things but I couldn't manage it. I've tried
sudo yum install -y phpMyAdmin
sudo yum install
I tried to manually download the latest version from phpmyadmin.net and change the files in the folder but I couldn't access the phpmyadmin folder in the first place.
Any help would be appreciated,
Thanks
You're using the version of phpMyAdmin maintained by your distribution (presumably Fedora, CentOS, or Red Hat); this means that basically you're not responsible for (or able to) upgrade the software that's under control of the package manager (aside from running the updates occasionally). If you wish to use a different version, you're certainly able to remove the package manager version then install it manually. I don't use EPEL, but I believe the highest version currently distributed is 4.4.15.9 (reference, which I think is because of the older versions of PHP and/or MySQL which are currently shipped. So you might not be able to upgrade due to your MySQL or PHP versions, but YMMV.
Basically, if you're using the package managed version, the whole point is so you don't have to worry about manual updates.
You can disable the notification by adding the directive $cfg['VersionCheck'] = false; to your config.inc.php (which may be in /etc/ or /etc/phpmyadmin, but I'm just guessing about how your distribution may handle it.).

Perl: Is it possible to install Mysql module without having Mysql installation?

I'm trying to install the Mysql module on my development machine but it seems to want a local Mysql installation before it will install.
Is there a work around?
I don't need or want a local installation of Mysql, I'm querying a network machine with the installation.
DBD::mysql is a wrapper around the MySQL client libraries. You will at least need to install a client, just like you would need to a client to connect to a remove MySQL server anyway.
You don't specify what system you're on or how you are trying to install DBD::mysql.
You'll need the client libraries (and if you're installing from CPAN - the source of the client libraries) but you should not need MySQL Server. If on a linux the mysql-server package is a dependency of DBD::mysql, it would be a bug.

How do I install the mysql gem without a mysql server?

I'm trying to install the mysql2 gem for a rails app on a machine with an external mysql server. The machine I'm installing onto doesn't have or need a mysql server on it. However, whenever I try to install it always checks for a mysql install and fails.
Is there an install configuration or work-around for this?
Cheers
You need just the MySQL header files to be there where the native compiling takes place.
Depending on your OS / Distribution you should find the way to install the header files without installing the actual server (Debian / Ubuntu alikes should allow you to do so with the standard apt-get, but I might be wrong).
If you are on Windows, please check this post about mysql2 gem issues on Windows.