mamp

Cannot connect to phpMyAdmin on MAMP

≡放荡痞女 提交于 2019-12-10 09:56:42
问题 Im getting this error message: MySQL said: Cannot connect: invalid settings. phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server. The user and pass are the default ones - both 'root'. I haven't set them anywhere. Ive tried various answers on here but nothing is working 回答1: In

.htaccess is ignored when using an aliased URI

纵然是瞬间 提交于 2019-12-10 03:28:46
问题 I am using mod_rewrite to route all requests to index.php. My folder structure is as follows: /Users/Peter/Projects/Framework /.htaccess /index.php In my .htaccess file I have the following: RewriteEngine on RewriteCond $1 !^index\.php/ RewriteRule ^(.*)$ index.php/$1 [L] This works fine when I visit projects.localhost/framework/example . I also have the following alias set up: Alias /~alias /Users/Peter/Projects When I navigate to http://projects.localhost/~alias/framework/example I get a

“pdo_mysql” is disabled and I can't get it enabled. I have MAMP v. 3.0.4 installed on my iMac 7.1 OSX 10.6.8

巧了我就是萌 提交于 2019-12-09 22:04:15
问题 “pdo_mysql” is disabled and I can't get it enabled. I have MAMP v. 3.0.4 installed on my iMac 7.1 OSX 10.6.8. On my phpinfo page I can see that the only PDO enabled is sqlite. If I look in my php (5.5.10) extensions folder I do see the pdo_mysql.so file (as well as one ending with .a). But if I go to the php.ini file the both the extensions folder path and the extension=pdo_mysql.so are there and correct. It feels like maybe my Mac is using another php.ini file but how do I find that out?

MAMP / Symfony: MAMP overrides date.timezone setting from php.ini, Symfony fails

爷,独闯天下 提交于 2019-12-09 18:23:59
问题 I'm trying to configure Symfony2 framework in MAMP. In php.ini I have correctly set date.timezone , however, it appears that MAMP somehow overrides the setting and uses system time instead. As a result, Symphony's config.php page sends this warning: Warning: date_default_timezone_get() [function.date-default-timezone-get]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used

MAMP Python-MySQLdb issue: Path to libssl.1.0.0.dylib changing once Python file called

泪湿孤枕 提交于 2019-12-09 18:21:51
问题 I'm trying to use python MySQLdb to access my MySQL database on my MAMP server. When I initially tried to call a Python file with python-sql to access my database on MAMP I got the image not found error regarding the libssl.1.0.0.dylib library Traceback (most recent call last): File "desktopsql.py", line 3, in <module> import _mysql as ms File "build/bdist.macosx-10.5-x86_64/egg/_mysql.py", line 7, in <module> File "build/bdist.macosx-10.5-x86_64/egg/_mysql.py", line 6, in __bootstrap__

running php on mamp [closed]

北战南征 提交于 2019-12-09 16:26:16
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . I already installed MAMP in my macbook pro. I want to run a php. what can i do? 回答1: If you have done everything right, open your browser and type this: http://localhost to see if it opens successfully and then you can open your sites. Also check out the mamp's documentation on how to configure it

Mamp Pro 4 HTTP and HTTPS

对着背影说爱祢 提交于 2019-12-09 13:21:26
问题 Is it not possible in Mamp Pro 4 to have both http and https? The application I am working on requires both depending on the page. I must be missing something as it makes no sense when I enable SSL only https works and http then stops working. I tried going through the http.conf, but really have no idea whats causing this. I think it just generates the vhost for https only and then removes http. Doesn't even look like you can manually edit it. Any suggestion would be great. 回答1: Well to

Use Python on MAMP

≡放荡痞女 提交于 2019-12-09 13:10:58
问题 I'm slowly migrating from PHP to Python. In particular, as I work in webdev/webdesign I would like to display a basic HTML page using Python, using the following code : #!/usr/bin/python print('<html><head></head><body>This is a test</body></html>') Again, the point is just to see if it works. Sending the file online on my host as index.cgi I've had no problem displaying the content of the file. The problems start when I try to install the WSGI module on MAMP, or just to make Python work in

Can i use MAMP (MySQL) or XAMPP (MySQL) with Ruby on Rails 3?

大城市里の小女人 提交于 2019-12-09 06:33:23
问题 Can i use MAMP (MySQL) or XAMPP (MySQL) with Ruby on Rails 3? i installed MySQL from MYSQL.com and had so much trouble that i like to use the MAMP/XAMPP Mysql. Is Anyone doing this? Also what configurations do i need to make to do this. I'm new to RoR. Thank you in advance ;-) 回答1: Yes, I use it, this is my config in database.yml development: adapter: mysql2 database: app username: app_user password: app_password socket: /Applications/MAMP/tmp/mysql/mysql.sock host: localhost pool: 5 timeout:

webpack-dev-server can't find localhost

夙愿已清 提交于 2019-12-09 03:06:52
问题 I'm trying to get started with React using webpack , but keep running into an error when I try to set up webpack-dev-server . I ran npm install webpack-dev-server followed by webpack-dev-server and the command line returns the following: events.js:154 throw er; // Unhandled 'error' event ^ Error: getaddrinfo ENOTFOUND localhost at errnoException (dns.js:26:10) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:77:26) Any clues on what is happening here? I don't really know how webpack