http://localhost/phpmyadmin doesn't work - php

So, this is my problem. I have installed phpmyadmin via
sudo apt-get install phpmyadmin.
When I try to go "localhost/phpmyadmin", it downloads a file, called "download", without any explanation.
P.S. I have already installed LAMP before phpmyadmin.

Add the following line to /etc/apache2/apache2.conf
Include /etc/phpmyadmin/apache.conf
Or the path that is correct for your system. After restart apache.

I solved this problem. It was very noobian mistake.
I really forgot, that I was using suPHP instead the original PHP5. Now, I removed suPHP mode and enabled PHP5 and everything is working.

At my site, the dashboard of phpmyadmin didn't show up, but the php file that
would show up the dashboard. This was because,
I forgot to install the connection between apache and php:
apt-get install libapache2-mod-php
After doing it, it worked.

Related

Install PhpMyadmin 4.7.2 with php 7.0 in Nginx, access denied

i faced this problem when i open phpmyadmin.
I was installed, php7.0, nginx, and phpmyadmin 4.7.2 (Download the file and unzip it, put in /usr/share/phpMyAdmin , granted permission 0755)
I have no problem when run the php files, i still can check my php file, just cant open the phpmyadmin. Any clues on it?
UPDATE 1
After i check the log file located in /var/log/php-fpm/www-error.log, and then I try this with the command /sbin/restorecon -R /usr/share/nginx/html/phpMyAdmin
then it show up another error which i need to enable a mbstring.
You need to use ln -s command to link the phpmyadmin to localhost/phpmyadmin
According to the link
Missing mbstring PHP extension when installing phpMyAdmin on Mac, doesnt work with php7, so i use this command.
yum install phpp70w-mbstring
It works after i restart the php-fpm.
This question is solve.

Apache2 cannot open .php files

I installed lamp long time ago and was able to execute php files. However, recently I tried to install cakePHP and ran into trouble (restarting apache started to generate errors). Thus I purged apache2 from my system. I reinstalled apache2 using command "apt-get install apache2" but after doing so it could no longer open .php files, shows a blank page instead. I've set the necessary permissions (given -R 777 to /etc and /var/www). I've also ran the command "apt-get install php7.0 libapache2-mod-php7.0" and restarted apache several times, nothing works. Can anyone help?
PS: I was originally trying to run phpmyadmin, before purging I was able to run it but after reinstalling it threw errors, thence I discovered my server was not able to execute any php file.
Additionally, when I access the file (home.php) via localhost/home.php it shows a blank page but if follow the path file:///var/www/html/home.php it brings a pop up that asks me to either save or open the script.
I think problem is the apache-php-mod is not well installed,I suggest you purge remove all apache and php package,then reinstall them.
sudo apt-get purge apache2
sudo apt-get purge php
sudo apt-get autoremove
Then,find all apache2 or php files, and remove them,you can do it by using find command,be carefully when do this!
sudo find / -name apache2
At last,you can reinstall them

Why Laravel doens't reconize mcrypt even though I have everything installed correctly on Yosemite OSX?

I created a new project with Laravel, then I put it in the corresponding path for apache could execute, then I write the URL in a browser to open the project and I get the following message
Mcrypt PHP extension required.
I installed mcrypt with this command
brew install homebrew/php/php55-mcrypt
and work fine when I create a new project in laravel
I was searching and I found this tutorial but still withouth work
Open /etc/php.ini and add the line below at the end extension=mcrypt.so.
If there is no php.ini file, then you need to make one from php.ini.default in the same location like so: sudo cp /etc/php.ini.default /etc/php.ini
allow write capability sudo chmod u+w /etc/php.ini
Then add the line as above in your favourite text editor: sudo nano /etc/php.ini
add in the line: extension=mcrypt.so
Restart Apache sudo apachectl restart
but still without work, what can I do?
While it's always good to do PHP stuff on a local server, you will almost always run into the issue of getting everything set up correctly if you don't know what you're doing. My advice, use a service already provided for you.
Using Homestead (Laravel's Dev Environment) will help in getting projects setup very quickly. It'll also have all the PHP modules (e.g. mcrypt) already configured.
I'd take a look at Homestead: Laravel Homestead
Try visiting: Install mcrypt for php on Mac OSX 10.10 Yosemite
OR
Just see your phpinfo(); it will give you the status for mcrypt.
OR
Try updating your php version. Visit: Update PHP
See, if that helps you.

Blank screen on my domain and automatic Zip download

when i try upload something on my domain ftp, blank screen appiers and automatic Zip download starts , even phpinfo not working. I have dedicated server and never had any problems
My domain is and i want to install script at http://fablefly.com/install
Can You look Guys ?
P.S i'm running Cpanel , php 5.2 , mysql , ion cube enabled.
I think I understand what you mean. I had the issue before when I set up my server and installed PHP, whenever I went to a page, it downloaded a useless file. I solved the issue by running the following commands via ssh.
sudo apt-get install libapache2-mod-php5
sudo a2enmod php5
sudo service apache2 restart
Not sure exactly how you would go about doing this via cpanel as I use webmin personally and do most of the work via command line. But I believe this is your issue.
See this page
http://serverkb.co.uk/wiki/PHP - the section titled "PHP Page downloading"
Check this out
http://cpanelhostingstuff.com/php-files-are-downloading-instead-of-executing/
Also look at some of these pages https://www.google.co.uk/#q=php+downloading+instead+of+executing+cpanel

Configuring LAMP Environment in Linux Mint using XAMPP- installing Memcache

Okies, I have successfully installed the XAMPP and added virtual hosts and am able to make database calls and stuff. The problem I am facing is while trying to enable the memcache module.
Currently trying to configure using these links.
http://theindexer.wordpress.com/2008/06/02/installing-a-lamp-stack-on-linux-using-xampp-for-linux/
http://theindexer.wordpress.com/2008/06/11/installing-xdebug-on-xampp-for-linux/
http://lynxbites.blogspot.com/2009/09/steps-to-install-memcache.html
The problem I am facing is while starting the phpize from /opt/lampp/bin/phpize
I am getting the following error.
Cannot find config.m4.
Make sure that you run '/opt/lampp/bin/phpize' in the top level source directory of the module
Can any one tell me wat to do for this error and if anyone has any useful links for configuring memcache on linux using XAMPP please paste here.
Thanks.
First unzip the xdebug.
In the step of phpize make sure that you can see the file named (config.m4) by issueing the (ls) command, i.e. enter inside the zipped file twice as in
~/Downloads/xdebug-2.2.3/xdebug-2.2.3# sudo phpize
Looks like you are missing some packages to install. I solved the phpize problem when tryinng to install xdebug following the following guidelines
http://www.spiration.co.uk/post/1385/Cannot-find-autoconf.-Please-check-your-autoconf-installation
Try running as root: sudo phpize...

Categories