mamp

Upgrading PEAR on Mac OS X / MAMP

折月煮酒 提交于 2019-12-25 18:15:13
问题 I am installing PHPUnit on Mac OS X and I am having problems with my current PEAR version. Existing SO questions don't resolve the problem. The current PEAR version is listed as 1.9.1. PHPUnit requires 1.9.4. [le programmeur]$which pear /Applications/MAMP/bin/php5.3/bin/pear [le programmeur]$pear -V PEAR Version: 1.9.1 PHP Version: 5.3.5 Zend Engine Version: 2.3.0 [le programmeur]$pear config-get php_dir /Users/rallen8440/pear/share/pear After running pear install -f pear PEAR 1.9.4 is

MAMP mysql not starting

荒凉一梦 提交于 2019-12-25 18:01:12
问题 Got error: 2002: Can't connect to local MySQL server through socket '/Applications/MAMP/tmp/mysql/mysql.sock' (2) when trying to connect 150629 15:44:35 mysqld_safe Starting mysqld daemon with databases from /Applications/MAMP/db/mysql 150629 15:44:35 [Warning] You have forced lower_case_table_names to 0 through a command-line option, even though your file system '/Applications/MAMP/db/mysql/' is case insensitive. This means that you can corrupt a MyISAM table by accessing it with different

No DB connection with MAMP and MSSQL (SQL Server), using CodeIgniter

穿精又带淫゛_ 提交于 2019-12-25 07:12:35
问题 I'm running MAMP 3.0 on OS X and trying to connect to a remote SQL Server DB with no luck. I've followed what I could from other support questions regarding getting mssql enabled in my MAMP php install. Everything appears to be correct, mssqlsupport shows as enabled in phpinfo() The project is in CodeIgniter using the sqlsrv driver, and when running a db connection test I get nothing on screen and no errors in my MAMP logs or my CI logs. All debugging and error reporting appears to be turned

Error: “Cannot modify header information - headers already sent by …” [duplicate]

淺唱寂寞╮ 提交于 2019-12-25 05:17:06
问题 This question already has answers here : How to fix “Headers already sent” error in PHP (11 answers) Closed 6 years ago . I'm developing a website and I purchased MAMP PRO. When I try to login through login_user.php: if (empty($_POST)===false){ $username = $_POST['username']; $password = $_POST['password']; if (empty($username) === true || empty ($password) === true){ $errors[] = 'You need to enter a username and password'; } else if (user_exists($username) === false){ $errors[] = 'we can\'t

Local host setup with MAMP & phpMyAdmin. File not found on this server

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 03:00:16
问题 How do i get my local .php file to show up, so i see my form. When i write local host and then path of .php file i get "Not Found" page. If i add :8889 to local host it seems to run via MySQL-port(8889) instead of Apache-port(8888) and then safari just downloads the file to my downloads. Here i have attached an images that shows all my settings. I use MAMP, phpMyAdmin and i follow the guide of this guy (https://youtu.be/wp6Ngpk5XiY?list=PL530D33D6E548481F (17.05=troubleshooting)) Here is the

Local host setup with MAMP & phpMyAdmin. File not found on this server

独自空忆成欢 提交于 2019-12-25 03:00:11
问题 How do i get my local .php file to show up, so i see my form. When i write local host and then path of .php file i get "Not Found" page. If i add :8889 to local host it seems to run via MySQL-port(8889) instead of Apache-port(8888) and then safari just downloads the file to my downloads. Here i have attached an images that shows all my settings. I use MAMP, phpMyAdmin and i follow the guide of this guy (https://youtu.be/wp6Ngpk5XiY?list=PL530D33D6E548481F (17.05=troubleshooting)) Here is the

PHP SVG read on OSX Mavericks (MAMP 3) using Imagick

。_饼干妹妹 提交于 2019-12-25 02:25:26
问题 I have nearly the same problem like here: ImagickException with message Postscript delegate failed on MAMP 3.0.5 I would like to read an SVG file (5 set Venn Diagram), which I created with php and I would like to write it out to a png/jpeg or whatever file... nothing work. It breaks on the 3rd line: $im = new Imagick(); $svg = $venn_diagram; $im->readImageBlob($svg); $im->setImageFormat("jpeg"); $im->adaptiveResizeImage(720, 445); $im->writeImage($folder . 'output_venn_diagram.png'); $im-

sudo: port: command not found setting up Ruby with MySQL MAMP

无人久伴 提交于 2019-12-25 01:41:19
问题 I'm using a Mac 10.6.6, with MAMP installed. I am trying to get Ruby working. There is a problem with the headers, so I was referred to this tutorial. http://blog.mirotin.net/?p=35 I have MySQL 5.5. installed on my computer When I type in the 5th line below $ sudo port install cmake , it says sudo: port: command not found Do you know what I can do about this? $ cd /tmp $ mv /Users/yourname/Desktop/mysql-5.5.9.tar.gz . $ tar xf mysql-5.5.9.tar.gz $ cd mysql-5.5.9 $ sudo port install cmake $

Trying to fix a broken a path for files in a Laravel Installation

心已入冬 提交于 2019-12-24 23:36:06
问题 OK, so I'm running a Laravel installation using MAMP (mac) which was cloned using git via Bit Bucket. The site loads but all the CSS and JS files are broken. If you view source you can see the markup and the URL's like the image below. However, if you click on any of the URL's then you get a chrome browser error saying: This site can't be reached, the connection was reset etc". My MAMP installation URL is http://localhost:8000/login and here's the interesting thing, if I change the full path

how to change mime types in MAMP

自古美人都是妖i 提交于 2019-12-24 21:08:36
问题 I'm developing a website that has a HTML5 video. It looks like when ogg files are served with other mime types than video/ogg firefox flips. I've updated the mime.types file inside the mamp/apache/config folder and have restarted the MAMP server multiple times, but ogg files are still served with plain/text context-type. Can someone point out what I need to do? UPDATE The only time I'm able to change the mime type is if I change the DefaultType text/plain to DefaultType video/ogg which is