Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
48
rated 0 times [  48] [ 0]  / answers: 1 / hits: 40546  / 2 Years ago, wed, march 16, 2022, 11:05:26

I've upgraded from UBUNTU 13.04 to 13.10 but I can not work with PHP pages or phpmyadmin .
I've tried this way to install lamp on Ubuntu sudo apt-get install lamp-server^ phpmyadmin
and I've done all of the configuration correctly after installation I've added this line Include /etc/phpmyadmin/apache.conf to /etc/apache2/apache2.conf then I restarted apache2



Now I have two problems:




  1. In phpmyadmin on the bottom of the page is this error : The mcrypt extension is missing. Please check your PHP configuration
    I've check and mcrypt was in it , but in phpmyadmin it gives me error of missing .


  2. The other problem is on PHP pages it seems like there is no PHP and it's all html because lots of PHP lines are printed in textbox's like : <? echo $row['details']; ?>
    Can anybody tell me what should I do ?



More From » php

 Answers
6

Try this for your mcrypt problem:



mv -i /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/
sudo php5enmod mcrypt
sudo service apache2 restart


It's a bug with the location of the mcrypt.ini file, I got the info from here.



I had the same bug, I did a cp instead of a mv to be sure but it solved the problem.



For PHP not working, if you get phpmyadmin working (even with the mcrypt error), it means PHP is working (because phpmyadmin uses PHP).
But in your example <? echo $row['details']; ?> change <? to <?php and try again?


[#28895] Thursday, March 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lawain

Total Points: 150
Total Questions: 106
Total Answers: 101

Location: China
Member since Mon, Aug 22, 2022
2 Years ago
lawain questions
;