PHPMYADMIN not loading in Ubuntu12.04 - php

I have installed phyMyAdmin on my Ubuntu 12.04 using sudo apt-get.. I configured the Apache2 Server as it was given in the Documentation The problem I am facing is that when i take "http://localhost/phyMyAdmin" nothing is displayed in the browser,instead it downloads a php file. Why is this occuring?How can I resolve this problem?

You're missing PHP.
From the terminal:
sudo apt-get install php5 php5-mysql
Then restart Apache:
sudo service apache2 restart
You can then navigate to http://localhost/phyMyAdmin and it'll work.

This might help you
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
sudo service apache2 restart

Related

PHP XML Extension: Not installed

So i'm currently installing mybb and went through a very long tutorial on how to do it. The problem is when I get to the requirements check this shows up
How does one go about fixing this? I read that I may need to do
sudo apt-get install php-xml
I have done this and everything went ok but still doesn't change it to installed.
FYI: I have only been using this OS for a few days so please go nice on me :)
You're close
sudo apt-get install php-xml
Then you need to restart apache so it takes effect
sudo service apache2 restart
Had the same problem running PHP 7.2.
I had to do the following :
sudo apt-get install php7.2-xml
I solved this issue with commands bellow:
$ sudo apt-get install php7.3-intl
$ sudo /etc/init.d/php7.3-fpm restart
These commands works for me in homestead with php7.3
In Centos
sudo yum install php-xml
and restart apache
sudo service httpd restart
If you are working with php in windows, you can just access to the file "php.ini" located in your php instalation folder and uncomment the ";extension=xmlrpc" line deleting the ";"
("extension=xmlrpc")

Setting up LAMP Stack in Ubuntu 14.04

I am trying to setup LAMP stack on Ubuntu 14.04 LTS by installing each of the packages seperately in terminal and not by using LAMP software bundle packages. The following are the commands that I executed:
sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install mysql-server
sudo apt-get install phpmyadmin
Is there any other configuration that needs to be done like configuring the apache2 server, phpmyadmin, etc... I looked it up on google and unable to find recent results.
Appreicate your help
Edit: Updated the query with more information
Go in the apache2 config file by typing:
sudo nano /etc/apache2/apache2.conf
Then, type the following and save the file:
Include /etc/phpmyadmin/apache.conf
Now, restart the apache2 server by typing:
/etc/init.d/apache2 restart

Linux phpmyadmin when accesing localhost/phpmyadmin see only text

I have problem with accessing phpmyadmin i can access but it's show me just text, there is no decompilation of php sending screen
Try installing the mod_php, the php interpreter:
sudo apt-get install libapache2-mod-php5
Then obviously restart apache
sudo /etc/init.d/apache2 restart
In my case, i had installed php7.2 and i disabled the php version through the command
a2dismod php7.2
and this happend.
Then i ran the below command
a2enmod php7.2
and i'm done.

curl extension not showing in php.ini even after installation of curl in ubuntu

i am using php 5.5.9. ubuntu 14.04 os .
try to run the php function
curl_init()
it shows an error Call to "undefined function curl_init()" then
1.i installed curl (How to enable curl, installed Ubuntu LAMP stack?)
2. i checked " php.ini to remove comment extension but i not found the text in php.ini .
still i have the error i restarted apache many times. please help.
I'm unsure of what your problem really is..
Try this, I'm sure this WORKS.
To purge all curl and apache2 packages
sudo apt-get purge curl libcurl3 libcurl3-dev php5-curl apache2
To Install curl and apache2
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl apache2
Restart apache2
sudo service apache2 restart
After restarting your web-server, go to /etc/php5/apache2/php.ini
search for ;extension=php_curl.dll and remove the ; (uncomment) and save the file, restart apache2 sudo service apache2 restart again.
Everything should WORK fine now.

How can enable imap in php.ini

I was trying to install vtiger in my server for installing vtiger we need to enable imap
I tried to enable imap using php.ini by removing ; from extension=php_imap.dll but this does not work. Installing page still showing that imap is not enabled. Can i enable this using any php function. Any help will be greatly appreciated
On Ubuntu and debian a better way is to enable it this way:
sudo apt install php-imap
sudo phpenmod imap
sudo service apache2 restart
On CentOS7+
sudo yum install php-imap
On Ubuntu (<= 14.04) and debian (<= Weezy)
sudo apt-get install php5-imap
sudo php5enmod imap
sudo service apache2 restart
If you are using LAMP server,
First install IMAP using the command on terminal
$ sudo apt-get install php5-imap
Then add this extension=imap.so code to your php.ini file
Restart your server,
$ sudo /etc/init.d/apache2 restart
It will work
sudo apt-get purge php5
sudo apt-get install php5=5.5.9+dfsg-1ubuntu4
sudo apt-get install php5-imap php5-curl
add in php.ini
extension=imap.so
extension=curl.so
reload and restart apache2. clear all your browser history. And Check than.
it may be help.
For PHP7 on LAMP (in Ubuntu)
sudo apt-get install php7.0-imap
sudo service apache2 restart
on centos7 php7
yum install php-imap
Step 1
Open This PC and go to this path mentioned below
Yourdrive:\xampp\php(type : configuration Settings)
Step 2
Open This file in any editor and find ;extension=imap
Step 3
Remove ;(Comment) and save the file and close it.
Step 4
Restart Apache and Mysql from your xampp.
Step 5
Now you'll able to install Laravel-imap Library
Open cmd (Command Prompt) in your project directory and run this command
composer require webklex/laravel-imap

Categories