How to install Laravel 4 offline - laravel-4

I am a newbie when it comes to Laravel 4.
I would like to ask if there is a way to install Laravel 4 without internet?
If there is a way to do this, can you include a link or a tutorial on how to do this?
Thanks!

I would like to ask if there is a way to install Laravel 4 without internet?
Well you need The Internet to do the initial download of Laravel - but you can then move it to another computer that has no internet access:
Download the Laravel framework from here (either via git - or just 'download' the zip file) into your project folder.
Run composer install - which will grab all the associated vendor dependencies that Laravel needs to run.
Copy the entire 'project folder' (including the vendors directory) to another computer
You can read more about Laravel installation from the official documentation. Basically once you have it working - you can then just 'copy' it to whereever you need it.

Related

laravel executable application

I have worked in one project which is built up with laravel , XAMPP Server which is replicate of desktop application created in .net
I need help regarding , how can I convert whole thing including my laravel PHP projects, xampp server and all required files into .exe file which is stand alone for Windows application. Can anyone help me if there is anyway to make .exe file.
I think it is not possible because in laravel we can make only web based applications and whereas in .net we can make both web and desktop based applications.
see PHPDESKTOP at https://github.com/cztomczak/phpdesktop you can place the laravel code in www folder and might need to change some settings and files location to run the app.
And this repo at https://github.com/williamnwogbo/laravel_desktop contains laravel with phpdesktop.
Also there is one more project laragon https://laragon.org/ but its only a portable webserver and dbserver with additional features to add like node.js, python etc. It provides easy click interface to install laravel or php frameworks. You can explore how to use it.

Where Can I Directly Download Laravel Dependency Folders/Files from without using composer

For some reason, composer cannot work on my PC and wamp also (for now) so I downloaded the laravel zip folder, "laravel-master.zip".
I unzipped and uploaded this folder to my online production server but I noticed that I do not have the vendor folder. It was not included in the laravel-master folder.
So my question is... from where can I get the vendor folder (and any other folders/files) so I can manually add them to my laravel installation?
I will follow the same logic as the other saying. It is useless (and this is not recommended) to copy the vendor files because they are updated frequently and not stored.
the problem is that without composer, it will be difficult to work with Laravel (not only for class loading, but also unable to share your project later).
To use composer with WAMP, you probably forgot to specify during the installation, the php.exe WAMP to use. Located in C:\wamp\bin\php\phpx.y.z.
Here are two links that will help you achieve this. (You can uninstall your composer before to start from scratch)
Question and Answer about use composer in WAMP
Video about install composer and use it in WAMP
Then you just might be in the root of your project a composer update.

Laravel 4 - Developing & deploying web application for other users

Although I'm new to Laravel 4, there has been one question on my mind since day one which I cannot seem to understand, nor find any information on.
My plan is to build an open source web application, which other users will be able to download and use on their own server. Now my current way of working is:
Install Laravel with composer
Add packages to composer than I need for the application
Start coding: editing files directly inside of app/ (global.php, routes, controllers, views, migrations etc).
Keep all of my assets within /public/assets/
This works fine for me, and I have no problems with it. However the question is:
How will I deploy the application to users if I build it this way? If they install Laravel via composer, all of the files within /app will be default (obviously), so how would I go about getting my edited + custom files into their install of Laravel?
Do I have to build the whole application as part of my own bundle? Or is there some kind of way composer can pacakge what I've done to solve this problem I can see happening?
I'm just throwing words out, if someone could explain and point me in the right direction that would be great.
Thanks.
You can just chuck all your files on github. You dont need to include composer. People can download composer and run it from the install directory (or if they have it globally run it from there)
If you run a composer install with laravel 4 only, it will download all fresh. In your case you just have all the library's in place already. So for future updates you as a developer can easilly upgrade to a newer version. The "users" can simply say "git pull" to update their instance. You still need composer to do your initial install (db seed, post install steps etc)
At least that is my point of view. Just look at a simple laravel 4 bootstrap example https://github.com/andrew13/Laravel-4-Bootstrap-Starter-Site it also holds all the files.

Joomla administrator redirects to public site

I have a Joomla site running on a windows machine. The site was at 1.6 when some update requests came in. I decided to update the site, but the automated process didn't work, so I started FTPing the files up there manually.
I followed the instructions for the manual upgrade at http://docs.joomla.org/Upgrading_1.6.5_to_1.7 once I got the site to 1.6.5, but my problems had already started before that.
Now when I go to mysite.com/administrator most images are not there and when I try to log in I get kicked up to my site root rather than the /administrator folder. I took the opportunity to look at the code and none of the image src attributes or the form action attributes include "/administrator".
Soooo I need a little advice as to why this is happening. I would rather not have to restore from my backup and start over at 1.6. I was kinda hoping for this to be my first Joomla 3 site. Thanks in advance.
You said that you had trouble with updating Joomla via the admin panel, however did you check if the folders were writable? Site -> System Information -> Directory Permissions Always check this page once you have installed Joomla as it is the reason why a lot of people are unable to install updates or normal extensions.
You then mentioned that you had to upload the files manually via the FTP, however this is not requires. All that is required it to upload the update.zip to the foot of your Joomla site and unzip it.
As for a proper answer, May I suggest that you first update to the Latest version of the 1.6 series (1.6.6), then you download a fresh copy of Joomla 1.6.6, unzip the "administrator" folder, zip that folder, upload via the FTP to your Joomla root folder, then extract it. This will override all the default administrator files.
In the end I had this client move their Joomla install off Windows and onto a Linux machine. Things were just getting worse with the install and I threw in the towel. Thanks to Lodder for trying to help.
This can happen if you are using the JSecure plugin. It requires a token in the URL to enter the admin panel, for example:
http://www.yoursite.com/administrator?token
Explanation:
http://forum.joomla.org/viewtopic.php?p=2198164
I was able to fix this by removing the value that I had in the $live_site variable in the configuration.php file. I am also running this on a Windows server.

how to install joomla 1.7.3

I don't know how to install Joomla 1.7.3 and it's hard to know from joomla web page. Can anybody tell me how to install joomla 1.7.3 step-by-step.
Thank you
There's an old guide here, although it still mostly applies:
http://help.joomla.org/content/category/15/99/132/
In short: Create a database, Upload the Joomla files, follow the installer. In more detail:
Make sure you meet the system requirements:
http://www.joomla.org/technical-requirements.html
Create a MySQL database (note down the name, username, and password to access it)
Get the Joomla files from here:
http://www.joomla.org/download.html
Upload all the files from that package to your hosting
Browse to your site - the Joomla installer will automatically run. There's a guide for the steps here:
http://docs.joomla.org/Installer
Follow the instructions and fill in the boxes in the Joomla installer.
Once the installation is complete, delete the 'installation' folder (the installer will tell you to do this).
You now have Joomla :)
Have you checked this page? http://docs.joomla.org/Installation
It provides a step by step installation guide, I think it's quite easy to install Joomla. Generally talking, all you have to do is:
Download the latest Joomla version ( I guess you already did this )
Unzip the downloaded file, then copy it into your webroot ( if you have multiple sites, you should create a folder within your webroot dir and copy the files there )
Access via your browser your web dir, and installation process will start.
It's important that you check that your Apache user is able to read and write your Joomla files. If you're using virtual hosts, you should also create and configure the new virtual host.

Resources