PhpMyAdmin does not open in mozilla but work in chromium browser - php

I am using Ubuntu 12.04 Operating System. I have suddenly encountered a very strange problem. My "PhpMyAdmin" interface is not opening in "Mozilla". But it is opening in another browser named as "Chromium".
Problem:
When i try to open it from Mozilla, it shows me the following error:
But in other browser "Chromium" it is working totally fine.
I searched about it on the internet. Everybody says it is a permission issue on the "config.inc.php" file. I have tried many solutions provided on the internet, but none of them worked.
Question:
My question is that if it is indeed a permission problem then why it is working in the "Chromium" browser but not in the "Mozilla" browser..

It looks like you are logged in one browser and not logged in another. That forces different routing and, therefore, in one case the permission on config.inc.php is being checked and in other case—not. Nevertheless you should fix the problem with executing
$ chmod a-w config.inc.php
from the directory it belongs to.

If you're using an interpreter, try to set Mozilla as your default web brower in the settings of your interpreter.

Related

phpMyAdmin error: Cannot access browser storage

The full text of the phpMyAdmin complaint is ...
There was a problem accessing your browser storage, some features may not work properly for you. It is likely that the browser doesn't support storage or the quota limit has been reached. In Firefox, corrupted storage can also cause such a problem, clearing your "Offline Website Data" might help. In Safari, such problem is commonly caused by "Private Mode Browsing". '
And it shows up every time I do anything at all in phpMyAdmin. I've tried emptying the cache and local storage - which was empty anyway - but no joy there. I don't find that I have disabled local storage anywhere.
I've just installed phpMyAdmin, working against a local MySQL installation. Seems to work ok ... but I get the complaint on every single thing I do in phpMyAdmin.
While I'm here let me ask about the debian-sys-maint user with all privileges on the MySQL installation. I certainly didn't create that. I don't see a way to delete it either.
I had this exact same issue, and it was caused by Cookies being turned off. So turning Cookies back on solved this issue for me.
Not sure what the root cause of this error was (maybe an unfortunate Firefox crash) but getting rid of persistent site-related storage from my Firefox profile solved this for me.
Open your profile folder and get rid of the following:
places.sqlite
places.sqlite-shm
places.sqlite-wal
storage/
webappsstore.sqlite
webappsstore.sqlite-shm
webappsstore.sqlite-wal
On Mac OS X you can find your profile folder as follows.
In terminal type the command:
open ~/Library/Application\ Support/Firefox/Profiles/
Then look for the current profile folder, which looks something like 86fdt4d.default
NOTE: by removing these files you will remove all of your site visits (history) and offline web app data so make really sure that you are not deleting any essential data before continuing...
Try to completely un-install Firefox
sudo apt-get purge firefox
Check in your home that folder /.mozilla does not exist (otherwise delete it) & re-install Firefox.

Replacing PHP file - file doesn't work anymore

I have a weird problem I cannot seem to solve (as a php noob).
I am working on simple php site (no sql involved). Everything was working perfectly till the moment I decided to copy over the files and edit them on another computer. All worked fine on the other computer as well. Then I took the files and copied them to the first computer again. Here came the problem: if I try to open ANY file copied from the second computer, it doesn't show anything, just a blank page. Even if the file was not edited at all on the second computer.
For example my index.php:
1. Copied from comp 1 to comp 2, no edits done
2. Copied from comp 2 to comp 1
3. Opened in the browser -> blank page
What's going on here and how to solve it? Is it some cache that apache is keeping? How to clear it? Both computers with OSX, however the second one was running MAMP, while the first had php/apache/sql set up.
Your permissions need to be set up correctly. Do the following:
Change the owner of the group to your user
chmod 0755 all the directories
chmod 0644 all the files
Then you are good to go!
You need to make sure that your permissions are set up correctly.
Apache Permissions
The blank page is displaying because Apache is encountering a PHP error somewhere, but is not set to display PHP errors.
Check out what is going on in your Apache error log and work from there. You could also look in the Developer Tools of a browser like Chrome, or use Firebug, to see what response your browser is getting from the server (most likely a HTTP 500 error).
I wouldn't recommend blindly changing ownership on files and directories until you know what is going on.

Zend Framework - sometimes strange errors in few environments

I have project written in Zend Framework and it works fine most of environments.
For example it works good in Windows 7 and Windows XP with popular browsers such as IE, Firefox, Opera and Google Chrome.
In my computer it also works on Ubuntu, but in my friend's computer on ubuntu sometimes it doesn't.
For example: it worked fine yesterday morning, but later it didn't load and there was this error:
Zend_Session::start() - /var/www/try/library/Zend/Loader.php(Line:146):
Error #2 Zend_Loader::include_once() [function.include]: Failed opening 'Req.php' for
inclusion (include_path='.:/var/www/try/application/../library:/var/www/try
/application/../lib:/var/www/try/application/models/:/var/www/try
/application/models/generated/:/var/www/try/application/controllers/:/var
/www/try/application/forms/:.:/usr/share/php') Array
Sometimes even css isn't loaded...
It's like $this->configuration['baseUrl'] suddenly don't work.
What it could be?
Restarting the browser usually helps.
What happened?
An include failed when the application tried to load 'Req.php'
This appears to be that the classes are not autoloading correctly.
What to check?
Check you have the required libraries installed correctly, and matching the folders on your include path. i.e. run a search in your project for Req.php, check this actually exists.
Check where your include path is set - try wrapping the following line in a realpath(), the environment may not like the '../library' in the path.
/var/www/try/application/../library
The answer is that, there was some a problem with session, and the application looked for files from another application, which was used before (application was in the same server).
I found the answer accidently, when I was doing something in that other application and I found there the Req.php file...

Symfony project is not work on local pc

I have this trouble: i copy symfony project files on my pc, after that change paths and db settings, and it still not working, even dont tell about errors! Maybe there is some specific actions for setting up symhony on another server?
Almost the same problem How to configure symfony project in local server? but when i try execute "php symfony" it prints "no such file or directory"
There are no any php errors at all.
Using Fedora 15 OS, and apache. php work in command line, symfony is not working. I tried to find out what is happening - inside Controller.class some error, when it use processObjects method, it take 11 objects, and after first of them (header.object.php) it stops.
The white screen generally means symfony can't write to cache and/or log dir, check on apache error logs to see details.
if 'php symfony' on command line throws no such file or directory could mean php is not in your system path.
Please add more information to get answers
myabe, as said below is a permission problem of the caché and log files. Check if they are writable. Good Luck!

Apache doesn't execute my copied PHP files, but testing.php works

I've just installed LAMP on my Ubuntu 9.10 machine, and everything works fine except when I copy my PHP files from another computer.
The LAMP guides I've followed also made me create a phpinfo() test file, which works, but when I try to type in e.g. index.php absolutely nothing happens - just a blank page in FireFox. :(
The files are in the exact same directory.
I'm thinking it's probably something with permissions and so on, but since I'm new to both PHP and Ubuntu, I'm kind of lost. It's like I can't create a PHP file with my file browser, but only by using the terminal - like when I created the testing.php from the LAMP guide.
Whaddayaknow... I made an error, tried to:
echo "Hello" world
which, even though I'm a PHP noob, I clearly know is wrong.
I think I'll have to figure out how to enable some sort of error reporting, a blank page is clearly not good enough.
You mean you have a index.php (copied from another computer) and a test.php (edited by hand, with a call to phpinfo()) in the same apache directory, the second works from your browser and the first doesnt ?
That can be a permission issue, or some compilation error in your php.
About permissions, for files should be readable from the apache server (more precisely, form the user that runs the apache server). You can type chmod a+r index.php.
YOu can also check your apache error logs (location dependent on installation). In any case it's vital to know where the error logs are if your are developing a web site.

Categories