mamp

Problems with cookies / MAMP / CodeIgniter

拈花ヽ惹草 提交于 2019-12-20 05:44:32
问题 I'm having a problem with reading cookies on localhost, using MAMP and Codeigniter. I'm trying to ude a cookie to authenticate acess to an admin area. I can set the cookie (I see it on my browser - Chrome) but i'm not able to read it after doing that to grant the acess. I've already tried lots of configurations, but none works. I really need some help on this. Those are the essencial parts of my code: Here I set the cookie $cookie = array( 'name' => 'login', 'value' => 'true', 'expire' => '0'

MAMP on Mac redirects virtual localhost to https

帅比萌擦擦* 提交于 2019-12-20 05:38:29
问题 Chrome Version : 67.0.3396.87 Webserver : Apache When I hit http://www.assignmenthelpdesk.local , it redirects to https://www.assignmenthelpdesk.local/ How can I stop MAMP to redirect to https? Thanks in advance. /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf details below: <VirtualHost *:80> DocumentRoot /Applications/MAMP/htdocs ServerName localhost </VirtualHost> <VirtualHost *:80> DocumentRoot /Applications/MAMP/htdocs/AssignmentHelpDesk ServerName www.assignmenthelpdesk.local <

Virtual Host with MAMP

旧巷老猫 提交于 2019-12-20 04:23:18
问题 I installed Drupal 8 with MAMP. My MAMP preference number for Apache Port : 80 , Nginx Port: 80 and MySQL Port: 8889 In etc/hosts file, I add 127.0.0.1 mmcast.test In httpd.conf file, Listen 80 and uncomment the following line. # Virtual hosts Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf In httpd-vhosts.conf file, NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /Applications/MAMP/htdocs ServerName localhost </VirtualHost> <VirtualHost *:80> ServerName mmcast.test

开启MAMP自带的xdebug

試著忘記壹切 提交于 2019-12-19 23:30:43
按照 http://www.dotvoid.com/2012/09/using-xdebug-in-mamp/所说的,把下列内容 [xdebug] ;zend_extension="/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so" 更改到了 [xdebug] zend_extension="/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so" xdebug.remote_host=127.0.0.1 xdebug.remote_enable = 1 但是查看phpinfo(),依然找不到xdebug 纠结了许久,终于再stackoverflow找到了答案, http://stackoverflow.com/questions/15114392/xdebug-not-running-on-mamp 经测试可行: I don't know if it's too late but i'm sure that someone will need the real answer. To solve yo online have

mysql server won't start MAMP

六眼飞鱼酱① 提交于 2019-12-19 10:51:03
问题 I've read a few answers on here that say when your mysql server won't start in MAMP you should run sudo killall -9 mysqld I've used that in the past and it has worked but for whatever reason it is not working this time. I'm getting this error message in the logs: [04-May-2014 11:02:08 UTC] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/Applications/MAMP/tmp/mysql/mysql.sock' (2) in /Users/Chappell/Websites/LFB/wp-includes/wp-db.php on line 1372 I recently

codeIgniter use mysql_real_escape_string() instead.database connection issue

限于喜欢 提交于 2019-12-19 09:33:12
问题 I have code igniter installed on server with database I want to run the same db on my mac, I used MAMP and I copy the project folder inside htdocs, but I have this error would you please help me! ErrorException [ 8192 ]: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. 回答1: Don't be afraid to change core files, just alter FCPATH/system/database/drivers/mysqli/mysqli_driver.php function escape_str($str, $like = FALSE) { if (is_array($str)) { foreach (

Install PHP gnupg using PECL on MAC/MAMP 10.8.4

半世苍凉 提交于 2019-12-19 09:24:25
问题 I am trying to install gnupg on a mac using PECL. sudo pecl install gnupg downloading gnupg-1.3.3.tgz ... Starting to download gnupg-1.3.3.tgz (19,141 bytes) ......done: 19,141 bytes 5 source files, building WARNING: php_bin /Applications/MAMP/bin/php/php5.5.3/bin/php appears to have a suffix /php5.5.3/bin/php, but config variable php_suffix does not match running: phpize Configuring for: PHP Api Version: 20121113 Zend Module Api No: 20121212 Zend Extension Api No: 220121212 building in

MAMP - phpMyAdmin #2002 - Can't connect to local MySQL server through socket '/Applications/MAMP/tmp/mysql/mysql.sock'

巧了我就是萌 提交于 2019-12-19 05:22:24
问题 I was working on MAMP phpMyAdmin and everything worked well until i query an ALTER TABLE statement from SQL tab. Operation was too long to end so i decided to refresh my page. From this time, i cannot reach phpMyAdmin anymore and i always have this message : #2002 - Can't connect to local MySQL server through socket '/Applications/MAMP/tmp/mysql/mysql.sock' (2) I've tried a lot of things found on the net, including on Stackoverflow, Server Fault, ... like reinstalling MAMP, symlink to /tmp

MAMP PEAR configuration is pointing to local directories

感情迁移 提交于 2019-12-19 03:58:39
问题 I am using MAMP 2.0.5 and I have an issue upgrading PEAR MAMP: How to upgrade PEAR The issue is that PEAR is always installed in the "local" PEAR directory instead of the MAMP PEAR directory. My MAMP PEAR configuration is the following: sudo /Applications/MAMP/bin/php/php5.3.6/bin/pear config-show Configuration (channel pear.php.net): ===================================== Auto-discover new Channels auto_discover 1 Default Channel default_channel pear.php.net HTTP Proxy Server Address http

Java 1.6 Broken when called by background Symfony task

戏子无情 提交于 2019-12-18 12:13:41
问题 I have a Symfony task that generates some files calls exec to a jar and then parses the output. The jar runs fine from the command line, the task runs fine from the command line. The problem: I call the task in an action based on a form submission. I have the action start a new php process in the background to run the task regardless of what the page the spawned it does now. When it gets to the java call, say exec(java -version); it outputs this: Error occurred during initialization of VM