Where is "${path}/tmp" pointing in php.ini - php

My phpmyadmin on a USB drive (I'm using EasyPHP Wamp ) is giving the following:
phpMyAdmin - Error
Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
following Cannot start session without errors in phpMyAdmin
I have cleared my browser cache, but its still not working. Now I want to check where session.save_path points to. In php.ini I see
session.save_path = "${path}/tmp"
I have my wamp on a USB key named F:. does the above in this context mean F:/tmp ?

Related

XAMPP phpMyAdmin Session Error

I had two XAMPP installed in my computer. XAMPP1 was in C:\XAMPP and XAMPP2 is in D:\XAMPP. Both were working fine. I needed to delete XAMPP1 (c:\xampp) and deleted. After that My XAMPP2 PHPMyAdmin Stopped Working. It displays error message something like this:
It is searching SESSION DATA in C:\XAMPP\TMP. So I created empty folder C:\XAMPP\TMP
After that it displays error message like this:
This means If I Install another xampp in C: drive it will work. But I don't want to install another xampp in C: drive. Is there any solution to this problem?
Looks like the installation in D:\XAMPP is not properly configured.
Adjust session.save_path in your php.ini. You most likely don't want the session data in the old Xampp directory.
Also check that extension_dir in your php.ini matches the correct path to your php extensions. This could be the reason that the mysqli extension is not loaded, if it's pointing to a different path.
Restart Apache and try again
Check your log files for errors, e.g. failed extension loading etc.
If the error about the missing mysqli extension persists, make sure it is not commented out in your php.ini
Edit:
Sorry, I don't have the rights to comment yet... :(
Not sure, if remote debugging is very effective here. Search the error message and have a look for example here: phpMyAdmin - #1932 Table doesn't exist (collation in use) after reinstalling

phpMyAdmin Error Message

Getting this error when I try and access PHPmyAdmin
Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.
I refreshed browser settings and even tried it in both Firefox and Chrome. Also cleared the temp folder within XAMPP.
Not sure what happened. I was able to access it before.
Any ideas?

Ubuntu 14.04 apache2 configuration problems

yesterday i've setted up an Ubuntu 14.04 with php5, Apache2, mysql / mysql-php
Now i try to access my pages - first i've owned all files in my var/ww-directiory, the mainpage of my page worked.
Iǘe logged in in the page (self written cms), nothing working now.Chrome tells me an Internal Server-Error (500). but they are no errors displayed.
I've tried to change the php.ini to display errors, but the changes will be ignored.
With service apache2 stop
i have stopped the server, but the server is running...
What i have to do to see my errors and top stop the server?
In xampp (windows xp / windows 7, booth) the page workes fine. The page is in use on a real server, there it works fine too.
My .htaccess seems to be ignored (routing engine).
If i fill my index.php with "Hello World" (and nothing other) it doesnt work too.
But it seems that php is loading my application correctly, it started the session (seen at the cookies) which is started in other file, which is included from index.php.
An Internal Server Error is probably due to some mistake in your configuration files. That could be either apache2.conf (or any other apache configuration files that get loaded) or php.ini (or any of the additional config files that php loads).
By the way, .htaccess files are disabled by default, and you need to explicitly enable them using apache directive AllowOverride.
Another thing to notice is that, in ubuntu 14.04, you're probably using apache 2.4. There's some slight differences. The first one I've noticed is that site definition files inside sites-available need to end in .conf now.
You can test you config for errors using apachectl configtest (on linux).

CakePHP 'Cake is NOT able to connect to the database'

I've looked at this post about a similar issue:
CakePHP: Can't access MySQL database
and I've tried everything they mentioned in there including:
Changing my database.php so that the 'port' attribute for both $default and $test are the location of my mysqld.sock file
Changing the 'port' attribute to the actual integer that represents the port in my my.cnf mysql config
Changing the mysql socket locations in php.ini to the location of my mysqld.sock file
I'm using ubuntu 11.04, apache 2.2.17, mysql 5.1.54, and CakePHP 1.3.10. My install of mysql and apache don't seem to match any conventions, as in, all the config files are there, they are all just in really weird places--I'm not sure why that is, but I've tried reinstalling both programs multiple times with the same results...
At any rate, I can log into mysql from the terminal and use it normally, and apache is working because I can see the CakePHP default homepage. I just can't get it to change the message 'Cake is NOT able to connect to the database'.
SOLVED: Figured it out, had to change php.ini so that extension_dir pointed to the correct directory and had to add a line extension=mysql.so.
I just got my cake php to work. OMG it sucked. I'm going to make a video tutorial on my blog when I get a chance to make it easy to install and show all the errors and how to fix them.
go into apache and turn this on in the apache modules: rewrite_module. For me in wamp, I just go to apache -> apache modules -> rewrite_module.
Then restart. I had to do this 3 times before it worked.
Then go into the php.ini and turn this on: extension=php_pdo_mysql.dll, by getting rid of the semicolon in the front of it. Then restart again.

Running PHP on Windows with Apache2

I am new to PHP and have been trying to get a PHP application setup on Windows.
I have installed MySql5.1, Apache2.2 and PHP5.2.14 on Windows Server 2008. I can login into MySql no problem and I can run phpinfo from htdocs in apache and get the php config summary however whenever I copy in my application to htdocs and run it I get a blank page.
I have set my DirectyIndex in httpd to welcome.php but nothing .... any help troubleshooting would be great.
Make sure you turn on all error display in php.ini
error_reporting = E_ALL | E_STRICT
then see if the application still gives you a blank page. If it still does, then it maybe configuration error on apache/php. Since, you are able to display phpinfo i would say the configuration works. perhaps, there's an error on the application.

Categories