Junior Spellweaver
- Joined
- Jan 22, 2012
- Messages
- 197
- Reaction score
- 42
Ok this tutorial is a work in progress so user help is definitely appreciated.
The first thing I want to say is I have not tried this on anything but ubuntu 14 I don't recommend trying it with any version of php other than 5.5.9 because 5.6 and 7.0 gave me hell and never exactly were able to get the install right. Now lets get down to the fun part setting all of this up.
I used as I said ubuntu 14 but I also followed my guide to setup a 151 server so if this does not work and you have used a different setup I take no responsibility. (If you want to do a new install link is in my signature.). I DO NOT KNOW IF THIS WILL WORK WITH ANY SERVER SETUP OTHER THAN THE ONE I USED.
The first thing you need to do is get the files.
Now we need to install some things.
First do
Next you need to install composer
Now the php gd extention.
Note the restart is necessary if you don't do it it will create problems.
Now this piece comes directly from the get hub for the project but I will explain it better.
First go ahead and upload the files to your www directory not everything in the root of the pw-web-master file should be in the root of www it should not be in a folder. If your directory doesn't look like it does below you need to move the files.
I am not going to go through how to chmod folders via terminal again if you followed my guide you should know how.If you didn't the info is still there or you can just use winSCP or whatever ftp client you use to do it.
You need to set the permissions on a few folders to 777 I know spare me but it is the only way you are going to get it to work.
storage/app/
storage/framework/
storage/logs/
bootstrap/cache/
.env
all of these need to be 777 the . env can be a little tricky as . files get hidden so I am going to help you out there.
Ok assuming all the folders and the .env file have been chmoded you now need to edit two files.
First is
apache2.conf
You can find it in etc apache2 You need to change one setting here.
Change AllowOverride to All instead of None.
The second file is inside sites-available in the apache2 folder 000-default.conf
This will change your root directory to www/public
Change DocumentRoot to var/www/public.
restart apache2 again.
Now go to your www directory then run these commands.
Now go to your domain or ip address it should load up the installer if it doesn't you prolly have the permissions wrong redo the permissions on the folders from earlier in the post. Now the important thing here is the version setting and the encryption the version if you are using my guide is 101 the encryption will be md5.
Anyway it should work from there. I have no idea how to get admin rights so I will make a post later on that as well as how to add to the shop etc.
Oh if you want to see it in action
Ok so two things to make yourself admin just go into your database in the user table under role set it to administrator you will then have admin under your account settings. Also apparently it does work with 5.6 php other than that have a nice day guys.
The first thing I want to say is I have not tried this on anything but ubuntu 14 I don't recommend trying it with any version of php other than 5.5.9 because 5.6 and 7.0 gave me hell and never exactly were able to get the install right. Now lets get down to the fun part setting all of this up.
I used as I said ubuntu 14 but I also followed my guide to setup a 151 server so if this does not work and you have used a different setup I take no responsibility. (If you want to do a new install link is in my signature.). I DO NOT KNOW IF THIS WILL WORK WITH ANY SERVER SETUP OTHER THAN THE ONE I USED.
The first thing you need to do is get the files.
You must be registered to see links
Now we need to install some things.
First do
Code:
apt-get update
then
apt-get install curl php5-cli git this installs php dependencies you are going to need.
Next you need to install composer
Code:
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
Now the php gd extention.
Code:
apt-get install php5-gd; service apache2 restart
Note the restart is necessary if you don't do it it will create problems.
Now this piece comes directly from the get hub for the project but I will explain it better.
First go ahead and upload the files to your www directory not everything in the root of the pw-web-master file should be in the root of www it should not be in a folder. If your directory doesn't look like it does below you need to move the files.
I am not going to go through how to chmod folders via terminal again if you followed my guide you should know how.If you didn't the info is still there or you can just use winSCP or whatever ftp client you use to do it.
You need to set the permissions on a few folders to 777 I know spare me but it is the only way you are going to get it to work.
storage/app/
storage/framework/
storage/logs/
bootstrap/cache/
.env
all of these need to be 777 the . env can be a little tricky as . files get hidden so I am going to help you out there.
You must be registered to see links
is a copy of the .env file the dot has been replaced with an underscore so it wont be hidden when you upload it. Edit it to match your database credentials upload it to your www directiory.. chmod it to 777 then rename it back to .env it will prolly vanish on you at that point but its there. Also enable mod rewrite a2enmod rewrite then restart apache with service apache2 restart Ok assuming all the folders and the .env file have been chmoded you now need to edit two files.
First is
apache2.conf
You can find it in etc apache2 You need to change one setting here.
Code:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Change AllowOverride to All instead of None.
The second file is inside sites-available in the apache2 folder 000-default.conf
This will change your root directory to www/public
Code:
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
Change DocumentRoot to var/www/public.
restart apache2 again.
Now go to your www directory then run these commands.
Code:
composer install this will take a minute so be patient.
php artisan migrate --seed this will populate the needed tables in your datbase
php artisan key:generate this create your key.
Now go to your domain or ip address it should load up the installer if it doesn't you prolly have the permissions wrong redo the permissions on the folders from earlier in the post. Now the important thing here is the version setting and the encryption the version if you are using my guide is 101 the encryption will be md5.
Anyway it should work from there. I have no idea how to get admin rights so I will make a post later on that as well as how to add to the shop etc.
Oh if you want to see it in action
You must be registered to see links
Ok so two things to make yourself admin just go into your database in the user table under role set it to administrator you will then have admin under your account settings. Also apparently it does work with 5.6 php other than that have a nice day guys.