Jump to content

Archived

This topic is now archived and is closed to further replies.

Medavidcook

Installing PHP on iMac

Recommended Posts

Hello

 

I have being using MAMP for php I am now trying out symfony framework. 

 

I am trying to install it i do everything the website says but when I  come to test the url it don't work says can't connect to server.

 

I don't think php is enabled on my iMac 

 

wondering if anyone can help me install the framework

 

thanks

Share this post


Link to post
Share on other sites

Not a mac user, But if you have MAMP installed and have gone through the installation steps here then Apache, PHP and MySQL should be set up and ready to go.

 

To install symfony, just download it and extract the archive to your web directory (default path is /Applications/MAMP/htdocs - according to the docs liked above).

Share this post


Link to post
Share on other sites

Explain what you by that?

 

Are you referring to installing MAMP or Symfony?

Share this post


Link to post
Share on other sites

So, is php working on your machine? You hint at using mamp already, so why is this question in the "PHP Installation & Configuration" board?

 

Are you simply stuck getting Symfony working?

Share this post


Link to post
Share on other sites

This pretty much covers the way I've upgraded php and other components of a MAMP stack under osx  -> https://trac.macports.org/wiki/howto/MAMP

 

As an alternative, let me suggest investigating a few vagrants.  Pretty much any lamp or nginx based distro of your choosing could be located, or there are some pre-packaged vagrants you could try, that popped up in google:

 

https://github.com/irmantas/symfony2-vagrant

 

https://github.com/kleiram/vagrant-symfony

 

Vagrant is a great way to develop without having to mess with your host OS.  The only issue I have had in the past is that sometimes composer can be hinkey under virtual box, but I'd still recommend looking into it.

Share this post


Link to post
Share on other sites

So, is php working on your machine? You hint at using mamp already, so why is this question in the "PHP Installation & Configuration" board?

 

Are you simply stuck getting Symfony working?

 

Yes stuck getting symphony working

Share this post


Link to post
Share on other sites

Yes stuck getting symphony working

So where exactly are you stuck? The install process is pretty straight forward.

Share this post


Link to post
Share on other sites

This is what happens

 

Hello

Ok I have an iMac running PHP 5.3.27 (found from phpinfo file)

I am trying to instal Symfony framework.

I have followed the instructions where adding the scripts for composer in terminal the first one (curl -sShttps://getcomposer.org/installer | php) says successful the second one (sudo mv composer.phar /usr/local/bin/composer) asks for my password which I enter but nothing happens, When I try running Symfony 2 by using cd my project/ then php app/check.php Shows the details as ok.
But when i try accessing the host url on my browser it says unable to connect to server.

I don;t know what I have done. Wondering if anyone can help me

Thanks

Share this post


Link to post
Share on other sites

Have you installed Symfony's dependencies using composer?

 

Have you created a vhost on your http server for this project?

Share this post


Link to post
Share on other sites

tbh i am not sure as i followed everything on there website and not working, thinking will need to look at it again

Share this post


Link to post
Share on other sites

Yeah, you're going to need to provide more information than "not working".

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.