After i installed composer in mac os sierra then installed laravel framework 5.3, i cannot create cache directory or my directory is not writable, Proceeding without cache ( below detail error when installing laravel framework )
Please give me advise how to fix my problem, cause i'm newbie using mac
Thanks,
problem picture
My best advice is to use Laravel Homestead instead of running the Laravel directly on Mac OSX.
Homestead installation on Laracasts: Hello to laravel homestead or
Laravel 5 Fundamentals
This should be enough for local development. If you want to go online look at the following steps:
Create a Bitbucket repository
Link your homestead to the bitbucket (That’s the tricky part). You will need to have SSH setup. This video should give you some hint. (Remember, you do not have to install git as it is included in homestead)
By the way, this is my go to resources for git.
Once that done, the worse is behind you.
Use Forge, this videos explains everything pretty well
It may seem like a lot, but in reality that will give you a really scalable environment that will spare you tons of trouble in the future.
Related
I want to set up and deploy my laravel project to Ubuntu 22.04 VPS (unmanaged) I tried all tutorials, guides etc. Tried installing nginx instead of apache and vice versa, all the "needed" php modules/plugins (different tutorial, different amount on modules) to set up and install laravel on a ubuntu server. None on them solve my problem, one tutorial works just half way, another tutorial works but composer create-project stucks and so. So I dont know how to do all that VPS set up and installation with LARAVEL on Ubuntu for deployement, all the tutorials are different. So I want you guys to help me set up Ubuntu 22.04 for Laravel server vps.
Tried youtube tutorials, web tutorials, guides. Every tutorial is different so I dont know how to do it right... Tried to change Ubuntu versions, change web servers (nginx and apache) none of that works for me.
do I need to install MAMP on the MAC to run a local web server / be able to develop sites locally?
Or can I install everything manually? I went through Homebrew and it has MySQL, Apache and PHP. So the question is, can I install and run it manually without installing the mamp? Even if it were 'more complicated'?My primary goal is to learn, so I don't like installing a package (mamp) that seems to solve everything for me.
You don't need mamp. All those packages are independent programs that can be installed and configured separately and on their own as you wish.
I ran all those on FreeBSD in the same way you are wanting
I am wondering If we can use a different distro in Laravel Homestead. Right now it is preconfigured to use an Ubuntu Distro. Can we use other distro like fedora, arch etc?
Short Answer: No because it's not a simple matter.
Long Answer: I'm working on it, it's just slow going. In my day job I've always used RHEL or CentOS so I've always wanted a CentOS flavored version of Homestead. That's exactly what I've started building with EnterpriseHomestead and EnterpriseSettler projects. It's not quite ready for a alpha, but it is close (despite I haven't had much time to work on it lately, Homestead and support keeps my OSS time pretty tied up)
If you'd like to help out please jump into the repo and start testing / asking questions. I also have #enterprisehomestead on the Freenode IRC network.
I'm looking on ways to deploy a ruby on rails 4 app built on windows 7 box. I'm looking to use Heroku at the moment.
Can you please provide any pointers regarding heroku or any other easier and cheaper deployment options available out there..
Any issues That I may face due to the difference in OS in the dev environment (windows) and the deployment environment (linux on heroku)?
This is my first professional app, so any pointers will be helpful for now and also for future applications that I may work on.
Also what is the more preferred OS for ruby on rails development ?
Thanks in Advance!
You probably won't face any issues with deployment on Heroku. Heroku is the easiest option out there (albeit one of the priciest once you're off the free tier)
What's more likely to happen on Windows is that you'll find it hard to build certain gems for development, and cutting edge releases will probably not work well.
Much better to pick up a Linux distro for this.
You can also check out bluemix , which is also free for small projects. I know Heroku is not particularly windows friendly, not sure if bluemix is any better in that reguard, but it is extremely easy to deploy to.
Heroku has set of tools called heroku toolbelt, that makes easy to deploy apps to heroku. you can download heroku tool belt for windows from here
Generally you should be able to port any rails app you develop in windows to Linux/Mac, how ever since the ruby/rails community is largely built around Linux/Mac, responses/options to your issues regarding the rails apps will be low. and there are some gems which doesn't work on windows at all. So its best to move to either Mac/Linux if you are planing to continue on rails.
Once you come to Linux/mac world there are lots of providers much cheaper than heroku like DigitelOcean, however heroku would be the easiest for a beginner I believe.
HTH
One strategy you could try is to do the following:
Set up a VirtualBox or VMWare VM running Linux (Ubuntu would be a good candidate if you are not used to Linux).
Get your project into the VM and get the bundle install and everything working in Linux, you will probably find you need to make some changes in your Gemfile if you have anything windows specific there.
Install the Heroku tool-belt on the Linux VM and install to Heroku from there.
Taking the Windows / Linux transition pain on your local machine will make it much easier than Windows direct to Heroku.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I just bought a new MacBook Pro which comes with Snow Leopard 10.6.2 (Mac OS X 10.6.2). I am used to using XAMPP as my local development server on XP. Since Mac OS X is based on Unix, I was thinking on activating/installing all the necessary stuff as I would normally do on Linux. However, I am not quite ready to be playing around with the system at this point so having an external package would be a nice temporary solution I think.
The question is whether I should go with MAMP or XAMPP. Does anybody have any suggestions? The Pro and Cons I suppose. As far as I know, Mac OS X comes with Apache2 and PHP5. Would MAMP or XAMPP modify the existing Apache and PHP installation? Any comments on how I should proceed?
PS: Eventually I would use the default installation of Apache and PHP, and install a binary package of MySQL but time for development is an essence and I don't have time to familiarize myself with Mac OS X.
XAMPP and MAMP are both quite similar. Neither touch your default OS X Apache/PHP! You can just try them both out and remove them afterwards by just deleting their folders. In the end they do exactly the same.
XAMPP gets updated more regularly and is generally more up to date. Also XAMPP has more extensions built-in.
On the other hand MAMP looks a little more mac-like and has a Dashboard Widget. But for a development system that doesn't count much. Unlike XAMPP, MAMP works without administrator privileges.
I went with XAMPP in the end because I needed the dba extension.
after using both to develop some Wordpress sites locally on my mac I chose to go with MAMP.
The main problem (only problem actually) I had with XAMPP was that it had issues on OS X with file and folder permissions.
doing something as simple as installing new Themes using the Wordpress online interface proved nearly impossible - in the end it required changing permissions on some of the Apache configuration files in the XAMPP dir. - even then it didn't entirely work.
I won't go into details - but suffice it to say I ended up thinking "why bother?" and just went back to MAMP.
that's just my experience mind you - but it is worth noting that it's so common that there are several sites/blog posts whose sole topic is how to fix this issue. just google "XAMPP Wordpress theme install problem" or something like that and you'll see what I mean.
I am a new developer and run 10.6.3 as well. I found MAMP Pro to be a better option than anything else. The personal web server that comes with Mac is really handy but maintaining the modules via macports was a pain.
Versus XAMP, MAMP Pro works really well cause it lets you tweak the modules as you wish and edit the myself/postfix/httpd configs easily. The two biggest reasons I love it is cause of the easy dyndns integration.
As for the port number, you can just edit it to 80 and not have to enter it manually each time when you browse to your local dev site.
XAMPP has some awful issues on OS X with file permissions and it's been a complete nightmare. I strongly suggest that if you're going to be using Wordpress on the localhost, that you either know your stuff before installing XAMPP, or just go with something else that won't give you those problems; presumably MAMP, which is what I'm about to install.
Personnally, i think that MAMP is easier to use. Especially if you want to define the folder where you want to run your local web sites. By default, in XAMPP your local web sites are in the APPLICATIONS folder and this is not a good solution. Moreless there is no password by default for MySQL in XAMPP. In MAMP it's really easy to change the directory that you want for your weblocal web sites. (just go to preferences). I tried to do that in XAMMP but there was access problems to httpd.conf of the apache web server.
Neither if you do WordPress development. ServerPress has the most options in a dead simple user interface. http://www.serverpress.com/products/desktopserver/#compare