mamp

How do I fix WordPress MySQL tables in phpMyAdmin?

家住魔仙堡 提交于 2019-12-12 17:24:00
问题 Backstory: I used MAMP on Mac to set up a local dev server and database for creating a WordPress site. All was going well. Yesterday, the MySQL server did not start up, so I took the advice of an answer on StackOverflow to remove the ib_logfile0, ib_logfile1, and ibdata1 files from the mysql56 folder. This started a chain of events that ended up corrupting my tables on phpMyAdmin. I kept the ib_ and database files, and after reinstalling MAMP, have placed them in MAMP/db/mysql, but now have

nginx 配置Tp5项目时出现 404 Not Found nginx

守給你的承諾、 提交于 2019-12-12 09:58:10
1.首先看了nginx报错日志 报 signal process started signal process started表示还有 产生原因 1、可能你的nginx.conf 内容配置的有问题。 2、./nginx -r reload 启动命令默认加载的nginx.conf 的路径不对。 之前还以为本地安装的nignx端口号冲突了呢,结果不是 是配置的问题; 假如mac安装的nignx和集成环境mamp端口号重复了, 可以修改配置文件nginx.conf中端口号来解决 也可以停掉你不需要的那个nignx服务 使用命令行 sudo nginx -s stop nginx不像apache那样能识别.haccess文件, 需要配置,加以下语句加到nginx配置下 if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; } 重启nginx服务 再次执行 http://tp5.test.com:7888/index/index/hi 结果依然报错 报404,我的内心是崩溃的 继续排查 发现 原来mamp pro中的配置文件 最后都会到 目录 /Library/Application Support/appsolute/MAMP PRO/conf/ 打开配置文件 发现虚拟站点tp.test5

PDOException: SQLSTATE[HY000] [2002] No such file or directory

五迷三道 提交于 2019-12-12 08:37:14
问题 I have put PushChatServer dir in htdocs folder and create database puschat try to run @"http://localhost/PushChatServer/api/test/database.php" Then I got following exception. I want do same thing to explain this link http://www.raywenderlich.com/32963/apple-push-notification-services-in-ios-6-tutorial-part-2 I have done all that but I got this exception Could not connect to the database. Reason: exception 'PDOException' with message 'SQLSTATE[HY000] [2002] No such file or directory' in

sending email in CodeIgniter through gmail

牧云@^-^@ 提交于 2019-12-12 07:19:05
问题 I'm following a tutorial to send emails using gmail, however what I get is a page that just hangs and doesn't even load an error. I'm using MAMP so that may be a reason why it isnt working. class Email extends CI_Controller{ public function __construct() { parent::__construct(); } function index(){ $config = Array( 'protocol' => 'smtp', 'smtp_host' => 'ssl://smtp.googlemail.com', 'smtp_port' => 465, 'smtp_user' => 'email', 'smtp_pass' => 'pass' ); $this->load->library('email',$config); $this-

Why won't Apache Server start in MAMP?

人盡茶涼 提交于 2019-12-12 07:16:58
问题 I'm trying to view php files locally on my mac. I'm running Yosemite. I have MAMP installed on my computer. When I press start the MySQL server starts but Apache doesn't. An error message appears saying 'Error. Apache couldn't be started. Please check your MAMP installation' I've gone through the internet typing stuff into terminal and changing 'envvars' to '_envvars' but nothing works. I reinstalled OSX and that worked but when I shut down the computer the problem occurs again. Can anyone

Problems with downloading Composer (PHP) on Macbook?

那年仲夏 提交于 2019-12-12 06:26:59
问题 Before I go on, I'm using MAMP(http://www.mamp.info/en/) and I have a Macbook 10.5.8. I tried typing curl -sS https://getcomposer.org/installer | php in my terminal, but all I get is Parse error: syntax error, unexpected T_SL in - on line 818 curl: (23) Failed writing body. If I delete the small "s" in curl -sS , I get: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 32543 0 32543 0 0 25478 0 --:--:-- 0:00:01 --:--:-- 82387 Parse error:

MAMP: Environment variables being deleted/replaced between envvars and runtime

风格不统一 提交于 2019-12-12 04:08:13
问题 Using MAMP + MAMP Pro 3.5 for local development. Using the envvars file, I'm supplying my own PATH, that is different from the PATH for any other user or purpose. Let's pretend it's /my/unique/custom/path . I put the following file on my local development site: <ol> <li><?php print $_SERVER['PATH']; ?></li> <li><?php print $_ENV['PATH']; ?></li> <li><?php print exec('echo $PATH'); ?></li> </ol> And this is the result: /my/unique/custom/path /my/unique/custom/path /usr/gnu/bin:/usr/local/bin:

How to display Relation View in MySQL using phpMyAdmin in MAMP

允我心安 提交于 2019-12-12 02:56:15
问题 Ok, I've working with my database, and I've got 2 tables and I'm trying to create a foreign link between the two. Apparently this means I need a button called Relation View that is only visible after you set both tables to InnoDB under Operations, which I have done. But Relation View failed to show up, either at the top under the "Structure" tab, or at the bottom next to the "Print" icon where it's supposed to be. So I went here (http://www.w3expert.com/2008/03/how-to-enable-view-feature-in

Cakephp session is destroyed after redirect

 ̄綄美尐妖づ 提交于 2019-12-12 02:35:13
问题 I'm currently on a MAMP install on my local machine testing a facebook application. I suspect it is probably my MAMP configuration. In cake php in /user/login I set a session using $this->Session->write('Facebook.last_name',$user_profile['last_name']); $this->redirect('/users/add'); then in /users/add I try and access all session informtaion print_r ($this->Session->read()); However the only session information that is returned is the following and not what I set. Array ( [Config] => Array (

Stop a number of httpd processes starting on MacBook Pro running Mac OS X Lion?

独自空忆成欢 提交于 2019-12-12 02:23:22
问题 I am running MAMP and noticed that a number of httpd processes were running in Activity Monitor. I had 24 separate processes running at one time. The users were daemon, root and _www. I also have zend running php, lighttpd and mysqld even though I uninstalled Does anyone know how to stop some of these processes starting up in the first place? 回答1: I found that you can turn off or stop services from starting up every time your machine starts by looking in the following folders: /Library