Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

installing mycrypt on ubuntu running on a virtual server

Posted on 2012-04-05
5
Medium Priority
?
777 Views
Last Modified: 2012-04-05
Hi guys i need to install mycrypt on a virtual server running Linux 2.6.38-11-server

I have SSH access only and i have tried using:

sudo apt-get install php5-mcrypt
 sudo /etc/init.d/apache2 restart

but i get:

:~# apt-get install php5-mcrypt /etc/init.d/apache2 restart
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package php5-mcrypt

this is on a fasthosts virtual server and im not sure what todo next?
0
Comment
Question by:firstnetsupport
  • 3
  • 2
5 Comments
 
LVL 12

Accepted Solution

by:
larsrohr earned 2000 total points
ID: 37812402
Try an update first:
 apt-get update
 apt-get install php5-mcrypt

If that doesn't work, please show us the output of:
 lsb_release -a
and the contents of /etc/apt/sources.list
0
 

Author Comment

by:firstnetsupport
ID: 37812440
that seemed to work, my web application is saying that The mcrypt module is not configured to load with PHP. Please review the instructions for enabling mcrypt in the PHP manual.

they are pointing me towards the following link

http://us.php.net/manual/en/mcrypt.installation.php

how do i find my php.ini file using ssh? and furthermore how to i edit it?
0
 
LVL 12

Expert Comment

by:larsrohr
ID: 37812470
I think you may just need to enable the module with:
 sudo a2enmod php5-mcrypt
0
 
LVL 12

Assisted Solution

by:larsrohr
larsrohr earned 2000 total points
ID: 37812483
Or possibly just restarting apache.
 sudo /etc/init.d/apache2 restart
0
 

Author Closing Comment

by:firstnetsupport
ID: 37812546
Thanks for your help on this one its now working like a dream...
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question