when i add ioncube to my mac and mamp
it keeps giving me this error :
/library/application support/appsolute/mamp pro/conf/php.ini, does not exist or is not accessible.
it does exist so must be not accessible even when i gave mamp full disk acces ?
how do i fix this problem
i tryed almost everything i think
i dont think there is anything else
/library/application support/appsolute/mamp pro/conf/php.ini, does not exist or is not accessible.
enter image description here
Related
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
I cant see my xampp settings: using this URL http://localhost/xampp/
This is the result im looking for:
I dont know why but if i look at examples, everyone's URL looks like http://localhost/xampp/ if i use this Url i get a page saying:
Object not found! The requested URL was not found on this server.
The directory is located in C:\xampp, and if i just add http://localhost/ as domain i get the tree structure of everything within C:\xampp\htdocs.
Also using Xampp v3.2.2 , if im in control panel and click on the Apache Config tab it open my file structure as mentioned above everything within C:\xampp\htdocs.
I just want to mention im using Windows, not Mac, but i meen both windows and mac has these Apache settings afcourse, i just dont get it how i cant find it using http://localhost/xampp/.
Apache & MySQL is switched on.
What i think could be the problem:
Could it be that im missing the /xampp directory within the /htdocs directory ?
Im not sure if there should be a xampp directory in htdocs but its the
only thing that makes sense?
Possible reason: Something is running with port 80
when you run Xampp, check the apache port no. ex: if it is displaying port 8012
then your url is http://localhost:8012/dashboard/
Check Directories for Xampp
Xampp directories.
more about this topic
For check all dependencies in the : httpd-xampp
The only reason i see is the xampp file should be located in the htdocs folder at least that is how i have it.
However i do not think that this will cause a problem for you in developing anything.
Hope this was helpful :)
For something that should be so simple, I'm finding it maddeningly difficult to set the path that PHP exec() commands use under MAMP on a Mac running El Capitan.
I need the solution to use environment variables rather than (for example) PHP's putenv() or a hardcoded "PATH=foo && ", as this code will be used on different servers that each may use a different path. I had it working fine on Yosemite (though, to be honest, I can't remember what finally worked), but when I upgraded to El Capitan the path was reset.
I've tried the following, and have restarted the computer after each just to be entirely sure that Apache's path was being reset:
Added to path in /etc/paths and /etc/paths.d
Added export PATH=$PATH:/opt/local/bin to MAMP/Library/bin/_envvars
Even set path in /System/Library/LaunchDaemons/org.apache.httpd.plist after disabling SIP to make it possible.
Edit to add: Also tried a symbolic link to somewhere in the default path, but LaTeX, for example, really needs to live on the path.
After each of these, the path (as indicated by a "exec('echo $PATH', $output);" command in the PHP) remains the same:
\/usr\/bin:\/bin:\/usr\/sbin:\/sbin
I'm at wit's end. If anybody's managed to set the path on a similar setup, I'd love to get input on how it was done.
Thanks!
On Mavericks it worked like this:
- Stop MAMP
- Rename the file /Applications/MAMP/Library/bin/envvars_ to /Applications/MAMP/Library/bin/envvars (without underscore).
- Add these two lines at the end of the renamed file:
PATH="$PATH:/additional/path1:/additional/path2"
export $PATH
- Start MAMP and have a look into phpinfo() Output
Currently trying to setup my localhost and install php as well with the new osx yosemite
i've been following the following instructions: http://coolestguidesontheplanet.com/get-apache-mysql-php-phpmyadmin-working-osx-10-10-yosemite/
I've uncommented everything they said for apache and php and restarted apache afterwords
FYI. SO won't let me type localhost so where I write lh means that
I'm successfully able to get to
lh/
but... if I try to go to any other pages it says the site can't be found.
There is a index.html in the Sites folder which I have tried to access lh/~myusername/index.html
and I have the same file in /Library/WebServer/Documents which I have tried to access lh/index.html
Can someone tell me the step that I am missing that needs to get all of this to work correctly?
Apache has a DocumentRoot which is the default page for localhost. That guide tries to enable a virtualhost for a directory in your local user but it is not possible to know why yours is not working as it is not clear which part you have gone wrong.
However it is better to use normal virtualhost configuration to define any folder you want for Apache as it is pretty much the same as Apache under Linux. Follow this guide for a basic understanding of creating virtualhosts for Apache. Let me know if you have any issues.
I had the same exact problem.
Followed all the steps, retraced them but still got the error.
First, check for a syntax error in your httpd.conf by typing in terminal:
sudo apachectl configtest
If you get a Syntax OK, then most likely its one of the settings in your httpd.conf file that isn't set right
You can check out this post and try what some other people did:
Apache localhost/~username/ not working
My error was that I didn't actually include "~" in the username (thought it was just there to define the var 'username' - took me almost 2 god damn hours to figure that out -__-)
After I got that far
localhost/~username
worked but I didn't have permissions to view it.
Had to do an extra step here to add permissions for my user:
http://coolestguidesontheplanet.com/forbidden-403-you-dont-have-permission-to-access-username-on-this-server/
I am using Windows OS (64-bit) and running XAMPP(PHP 5.4.7). I tried installing the PHP MongoDB Driver but it is not reflecting on the phpinfo() page.
I followed the same steps as listed:
I downloaded php_mongo-1.3.2RC1.zip (latest one) from https://github.com/mongodb/mongo-php-driver/downloads
I extracted the folder and copied the php_mongo-1.3.1-5.4-vc9.dll file and pasted in C://XAMPP/php/ext/.
My PHP extension build says API20100525,TS,VC9
I opened php.ini file and i inserted ;extension=php_mongo-1.3.1-5.4-vc9.dll at the last line.
I then looked at the phpinfo() page as well as I tried the
echo extension_loaded("mongo") ? "loaded\n" : "not loaded\n";
It says it is not loaded.
Try removing the ; from the beginning of ;extension=php_mongo-1.3.1-5.4-vc9.dll in your php.ini
After doing all the steps as mentioned in the question, xampp may not be able to load the ".dll" file. Just ensure to add the path of the ".dll" file's folder to the environment variable as a system variable path.
I was facing same issue, then after adding the path of the ".dll" file's folder to the environment variable as a system variable path, it worked. It is then able to find the file.
At the end that was the only step which was stopping xampp to load the ".dll" file, although it was present in that folder. Often people miss this step as it is no where pointed out clearly.