LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-04-2015, 10:19 AM   #1
Kgeil
Member
 
Registered: Mar 2014
Posts: 37

Rep: Reputation: Disabled
apt-get install php5-mcrypt does not create php5/conf.d/mcrypt.ini: Can't continue


Hi, I'm trying to get mcrypt running on ubuntu 14.04 lts server. I installed the LAMP stack when I installed the os.

For the application I need to install, I need to have mcrypt enabled and running.

I invoked sudo apt-get install php5-mcrypt, and restarted apache.

From my understanding, I then need to create a symbolic link in /etc/php5/mods-available to mcrypt.ini, which should exist in php5/conf.d, but that directory was not created during the install process.

As always, any advice will be greatly appreciated.

Thanks!
Kevin
 
Old 09-04-2015, 10:43 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
RPM based OS`s like RHEL 7 : /etc/php.d/mcrypt.ini

Debian, Ununtu : /usr/share/php5/mcrypt/mcrypt.ini
https://packages.debian.org/jessie/a...crypt/filelist
 
Old 09-04-2015, 11:03 AM   #3
Kgeil
Member
 
Registered: Mar 2014
Posts: 37

Original Poster
Rep: Reputation: Disabled
Thanks. That did look promising, but unfortunately, the /usr/share/php5/mcrypt directory does not exist either. I double checked the version, and it's 14.04.2 LTS, if that makes a difference.

I do have the directory:
/usr/lib/php5/20121212, which contains an mcrypt.so file. The /usr/share/doc/php5-mcrypt directory exists, with a changelog, and when I read that, the top item reads:

php-mcrypt (5.4.6-0ubuntu5) trusty; urgency=low
*Install ini file in correct location with PHP 5.5.
Thanks to Johannes Ballman (LP: #123568)

Unfortunately here, it doesn't tell me what that location might be.

Any other ideas?

Thanks,

Kevin
 
Old 09-04-2015, 11:37 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #3.

Well, then please run $ dpkg -L php5-mcrypt
... to get the file list ...
http://packages.ubuntu.com/trusty/am...crypt/filelist
/etc/php5/mods-available/mcrypt.ini
/usr/lib/php5/20121212/mcrypt.so


-
 
Old 09-04-2015, 12:12 PM   #5
Kgeil
Member
 
Registered: Mar 2014
Posts: 37

Original Poster
Rep: Reputation: Disabled
Thanks. I still have no mcrypt.ini file in any of those directories. I do have mcrypt.ini.dpkg-new in the /usr/lib/php5/20121212 directory, which I tried to copy to /etc/php5/mods-available, and changed the extension to just read mcrypt.ini, but am still unable to make it run.
 
Old 09-04-2015, 12:57 PM   #6
Kgeil
Member
 
Registered: Mar 2014
Posts: 37

Original Poster
Rep: Reputation: Disabled
OK, as I was working on a vm, I just blew it away, and started over. Good news! mcrypt.ini does get created, but in the php5/mods-available directory. so, my best guess as to my foolishness is that I didn't look, created the symbolic link, which pointed to nothing, and wiped out the one that actually got created. I created one of these servers a few months ago, and the symbolic link was necessary (and I was following my notes meticulously). Now, it seems as if that's no longer necessary. That must be what this is all about:

php-mcrypt (5.4.6-0ubuntu5) trusty; urgency=low
*Install ini file in correct location with PHP 5.5.
Thanks to Johannes Ballman (LP: #123568)

Thanks for the tips knudfl. I would have been stuck much longer without you. I started over with a fresh ubuntu server, installed php5-mcrypt, and ran the dpkg-L command, and found my previous folly at this point.

Thanks again,

Kevin
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to install php-mcrypt Raakh5 Linux - Newbie 7 01-30-2015 03:30 PM
unable to install php5 using apt nkd Ubuntu 2 01-02-2012 03:03 AM
mcrypt install matthewo256 Red Hat 8 06-01-2009 10:12 AM
Why I can't install mcrypt on my server baby_php_guru Linux - Newbie 1 12-15-2007 07:23 AM
php5 configure with different php.ini file dtra Linux - Software 2 01-19-2005 08:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration