mamp

How to configure PHP to run the same version on the web server as in a background process

那年仲夏 提交于 2019-12-13 06:56:43
问题 From the command line: php --info //⇒ PHP Version => 5.5.18 From the command line within a background process: exec('php --info>>logs/phpVersion.txt'); //⇒ PHP Version => 5.5.14 I want the background process to run version 5.5.18 (or the same version as the web server). Where is that configured? 回答1: You must reinstall 5.5.18 to replace 5.5.14. It's not a configuration file, there are two instances of PHP. If you specify on OS, I will update this answer with further instruction. (Or just

Trouble with local host PHP require_once

时光怂恿深爱的人放手 提交于 2019-12-13 06:18:48
问题 I am hosting a site locally with MAMP . I have the virtual host setup properly and the index.php file does get pulled up when i reference the local URL: my.example.local The issue is that the PHP file includes are not working. Here is a sample of the code: <?php session_start(); $_SESSION['message'] = ''; require_once "includes/config.php"; require_once "includes/classes/facilities.class.php"; require_once "includes/classes/states.class.php"; $title = "Home"; $sub_title = $title; $reset =

MAMP PHP Mailer Not Working

[亡魂溺海] 提交于 2019-12-13 04:36:49
问题 I can't get phpmailer to work with MAMP (Free version). I've tried some suggestions from others for what worked with them but I've had no luck. These are what I've tried so far: 1) Tried to use regular mail function from php using this - http://www.blog.tripleroi.com/2012/05/solvedenabling-sendmail-on-localhost.html 2) Enabled postfix following these post instructions - http://benjaminrojas.net/configuring-postfix-to-send-mail-from-mac-os-x-mountain-lion/ (Been getting "Undelivered Mail

Wordpress: 500 Internal Server Error, probable issue using $wpdb

*爱你&永不变心* 提交于 2019-12-13 03:59:32
问题 I'm using Wordpress and I'm performing a query which gives me back this error: Failed to load resource: the server responded with a status of 500 (Internal Server Error) My query looks like: global $wpdb; $session_uid = isset($_POST["session_uid"]) ? trim(strip_tags($_POST["session_uid"])) : ""; $the_data = isset($_POST["the_data"]) ? trim(strip_tags($_POST["the_data"])) : ""; $ss = "select * from ".$wpdb->prefix."vp_pms_messages inner join ".$wpdb->prefix."vp_pms_group_users on ".$wpdb-

MAMP error: couldn't be started

[亡魂溺海] 提交于 2019-12-13 03:01:19
问题 I've installed MAMP (windows) and I can't start it. When I first opened it, i got the usual error of port 80 already used. But after i changed it to another port, 8888, i got a diferent error: Could not wait for starting of Apache child. Apache parent process id is: 6208 I'm always getting this error, even though i've reinstalled MAMP and tried diferent ports as well, like 2222, and I keep getting the error. Besides, the process id in the error is always diferent every time i try to start

MAMP PHP date.timezone incorrect

萝らか妹 提交于 2019-12-13 01:25:00
问题 I am using MAMP to run some local PHP pages in my browser for school and I am having a weird issues where my timezone is stuck on "Europe/Berlin". I have manually set it to date.timezone = "America\Los_Angeles" in the 5.4.4 php.ini file (and double checked that is the version that MAMP is using) but no luck. I made sure my time zone in system preferences was set to West Coast time and tried it both with automatic time zone detection and without, but still nothing. Finally, I edited my

Coldfusion/MAMP Pro/Windows 10

核能气质少年 提交于 2019-12-13 00:14:18
问题 Documentation on setting up Mamp to work with Coldfusion in a Windows environment seems to be pretty limited, so here I am. I have both MAMP PRO and COLDFUSION 11 set up on a WINDOWS 10 computer. Mamp is pointed to the correct Document Root folder and both Apache and MySQL services start correctly (I assume). When I navigate to 'localhost' in my browser, all I can see is the ColdFusion source - not a rendered page. I assume ColdFusion isn't running in this instance. The .htaccess file seems

How to run mysql commands from terminal on a MAMP install?

流过昼夜 提交于 2019-12-13 00:06:44
问题 I just installed mamp (xampp) from the mamp.info page and it is working on my mac (both apache, php, phpmyadmin, and mysql). The only problem is when i try to run mysql -u root -p Which connects to mamp from the mac os terminal, i get a command error. I have installed and uninstalled mamp and xampp for mac multiple times to no avail. I am following this tutorial; http://www.raywenderlich.com/2941/how-to-write-a-simple-phpmysql-web-service-for-an-ios-app and i can't get past a certain part

Can't access MySQL databases after upgrade to Mountain Lion (using MAMP)

梦想与她 提交于 2019-12-12 23:04:34
问题 I recently upgraded to Mountain Lion from Snow Leopard, and in doing so threw my entire local development environment into disarray. I solved the majority of my issues by finally installing MAMP Pro (I was previously using the "native" methods provided by Apple). The problem I have now is I still can't access my old mysql databases. I can view the "new" databases via phpmyadmin in MAMP, but I have old projects that I'd like to work on. My old databases still exist in /usr/local/mysql/data ,

MAMP not working after Sierra OSX update

喜夏-厌秋 提交于 2019-12-12 17:50:14
问题 I am using MAMP version 3.2 with Sierra OSX v10.12. After installing a recent update to Sierra, MAMP is refusing to start. In the apache_error.log file under /Applications/MAMP/logs , I see the following error: [Fri Nov 04 10:16:51 2016] [error] (2)No such file or directory: Cannot create SSLMutex Configuration Failed 回答1: Just wondering if you can install a new version of MAMP? If not, check permissions of /tmp folder Try changing permission to chmod 777 tmp 来源: https://stackoverflow.com