setting when separates files of Laraship

Laraship QuestionsCategory: Configurationsetting when separates files of Laraship
nao asked 6 years ago

I have a question about setting when separates files of Laraship.

People say that the core files of Laravel shouldn't place in public folder because of security problem.

So I'd like to separate into files in public folder and files in not public folder like page No.1 of attached pdf file.

My question is that when I separate files, which setting(s) do I modify in Laraship?

I understand to modify public/index.php, but I don't know other setting(s).

Actually I separated files and modified public/index.php.

Then html source shows that external css files and JavaScript files aren't set in href and src attribute like page No.2 of attached pdf file.

Attachments
laraship Staff replied 6 years ago

what do you mean by core files ?

laraship Staff replied 6 years ago

what do you mean by core files ?

naoyoshisuzuki replied 6 years ago

I mean that “core files” are

laraship Staff replied 6 years ago

???

laraship Staff replied 6 years ago

There are no Core php scripts inside public folder

naoyoshisuzuki replied 6 years ago

I’m sorry to bother you.
At image.pdf file, app_main folder and public folder under demo folder.
“core files” means all files under app_main folder.
Files of public folder never move from the original.

1 Answers
laraship Staff answered 6 years ago

Hello, The www folder should be mapping to the "public" folder under laraship project , this can be done be modifying apache or nginx virtual host.
if you dont have access to this you can add .htaccess file in the root folder, rename .htaccess.txt to .htaccess

Attachments
naoyoshisuzuki replied 6 years ago

It seems that the structure of Laraship never change…
After extracting downloaded zip file, I keep the structure of Laraship, and I transfer all files and folders to the server.
Is this right?

laraship Staff replied 6 years ago

That’s correct

naoyoshisuzuki replied 6 years ago

I can’t access to config file of apache in the server.
As you told, I transfer files and folders to keep structure of Laraship under www folder in the server.
Then I transfer .htaccess file under www folder, but 500 error shows.
How do I do?

laraship Staff replied 6 years ago

Hello, you need to check log files as 500 error is very generic error