I have my site: http://www.markdev.com.br
, where the there is a subdomain (maestro.markdev.com.br) and there is an app for laravel that is in (public_html / subdomains / conductor).
How do I do to run laravel normally when accessing the subdomain or path without getting error 500?
I appreciate all the attention
You don't need to do anything special to install Laravel in a sub-domain as Laravel won't know either way - you just need to install it correctly and configure the sub-domain on your web server.
So inside your public_html/subdomains/conductor directory you can install your Laravel project. Make sure that you run composer install to install all of the files and dependencies, and then set the folder permissions of storage and bootstrap/cache correctly.
On your web-server end, set up a vhost to direct the request to the correct directory:
public_html/subdomains/conductor
Or link it to the public directory to prevent users having to type in maestro.markdev.com.br/public:
public_html/subdomains/conductor/public
Related
I have working SS v3.4 project locally. Now I want to deploy it. I've copied files to the server, run composer install to install vendor libraries. When I run install.php all requirements are fine except for missing mysite folder errors. That's intended because I renamed my project folder to let's say mydomain and it works fine on localhost. AFAIK SS should pick up the custom folder and recognise it as THE page folder. Somehow it doesn't happen. Any ideas why?
This is expected, since the installer specifically looks for "mysite".
You probably have two options:
Rename app to mysite on the serve, re-run the installer then rename the folder back to app
Don't run the installer at all - if you configure your own _ss_environment.php file and ensure assets folder is writeable you shouldn't need it
I tried to run inststruction from the official website but I cannot understand why I cannot access my website and what do I need to fix?
My website is in the directory /var/www/drupal8.
The files are as follows:
I installed it using composer from here https://www.drupal.org/node/2718229
What do I need to do next? I want to access my website in the browser as I can in Drupal 7 just typing my local website name, for example drupal7.loc
Configure your VirtualHost entry to point to drupal8/web. The actual Drupal root directory is the web directory. That's where the index.php file, etc. are.
Also, your screenshot doesn't show it, but make sure you have a drupal8/web/core directory. It should be there if you ran the composer create-project command, but if not, you'll need to run composer install in the project root (/drupal8) before your site will load.
I install new laravel package through composer and everything is going fine (including the error page) when I use php artisan serve and access my project in http://localhost:8000. But when I use virtual hosts (for example: example.dev), the error page is not showing, just a blank page. I'm not sure if it has something to do with my virtual host configuration because if the code has no error, the page just load normally. And I have changed the permission of storage and bootstrap/cache folder to 777.
Is there any other configuration that have to do?
Which PHP version do you use on your server? Check the logs and see if you find something there.
Try giving the entire Laravel folder 755 permissions and then change the bootstrap/cache and storage folders.
Also try editing your .htaccess file, add something like:
RewriteEngine On RewriteBase /
I have installed the laravel 5 on my local machine.And made the changes in the database.php file in config folder.I have set my credential.Now I am accessing the folder http://localhost/laravel/public/ but it displays html page with this content. Whoops, looks like something went wrong.What configuration should I set apart from this database.php so that it works fine.
This will likely happen to you everytime you create a new Laravel project. The problem is that your webservice (apache/nginx) doesn't have read/write permissions for the storage folder. From the root of your installation perform a chmod 777 -R ./storage and that should get you to the welcome to Laravel screen you should expect for an installation, and from that point on you should now get the error reporting if you have debug mode set as true. If you are still having trouble, you may need to provide access to the ./public folder as well.
You can run laravel application when you have successfully installed in your machine, Add '/public' in url after root folder. Means you have installed app on www.firstlaravel.com and your root folder is 'first'.
So you can run app using like => www.firstlaravel.com/public
On Windows 7 cmd I have run composer create-project laravel/laravel blog --prefer-dist from `C:\xampp\htdocs\lara. Everything is downloaded and installed fine.
However, when I try to access http://localhost/lara/blog it shows the directory listing of apache. I followed the instruction in the documentation during the installation.
I noticed the following notes:
C:\xampp\htdocs\lara\blog does not has any index.php or .htaccess
C:\xampp\htdocs\lara\blog\app also, does not has any index.php or .htaccess
Only accessing http://localhost/lara/blog/public opens a page with the laravel logo and the words "You have arrived"
I could not able to know what's the problem?
Laravel's folder structure uses the public folder as the WWW root, effectively placing all your application's files outside of the web root to help keep them secure. What you are experiencing is normal.
You'll have to either access your application from the http://localhost/lara/blog/public URL, or set up a virtual host URL (e.g. http://testblog.dev) that is pointed to the public folder. I do not develop on Windows/XAMPP so I cannot specifically tell you how to do that part.
If you're running php > 5.4 you can serve the app using the builtin server from command prompt as well (for development purposes):
php artisan serve
I have an answer on How to install Laravel via Laravel Installer on Windows?
or
http://goo.gl/uftcSo
for more details
Hope that helps.