How can I install and use website using drupal8 composer? - php

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.

Related

Silverstripe install.php can't find <mysite>

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

How to install Laravel in subdomain?

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

I want to install a magento in a subfolder (NOT sub-domain) of my domain

Basically, I own a domain that is hosted somewhere... My current domain works just fine, so when I access www.mydomain.com, my website shows up.
Now, what I want to do is install a magento in a folder, so that I can access it and work with it like: www.mydomain.com/mymagento (for the frontend) and www.mydomain.com/mymagento/admin (for the backend)
What I did so far is I downloaded the latest version of magento (1.9.2.1) and created a folder in my domain, called mymagento.
I copied the tar.gz archive in mymagento folder, then I went (also with ssh) in the folder, and ran the recommended permission commands like bellow:
chmod -R o+w app/etc/
chmod -R o+w var/
chmod -R o+w media/
Now I expect to be able to reach my magento installation, but something tells me I should run the web installer... well, I can't. Because I get an empty page whenever I try.
I should probably mention that I used to have an earlier version of magento in the same folder(I think it was a version 1.7), and I could access it back then. I moved the contents of that folder in a temp folder and did the unpacking of the latest tar.gz file (1.9.2.1) in the same place. When I look at the folder structure, it looks fine, just like the previous magento, but whne I try to run it, in the browser, I get nothing. I tried acceesing things like
www.mydomain.com/mymagento
www.mydomain.com/mymagento/index.php
www.mydomain.com/mymagento/install.php
but nothing changed... I still get an empty page.
My purpose for this is to have an online e-shop that I can play with (and configure), do my customisations, and when it's done, just move it somewhere, in a new domain's root folder and start playing....
SO, what steps do I have to make to properly install an instance of magento in my "mymagento" folder?
Is this a .htaccess problem?
I think you have to make changes in your .htaccess file of www.mydomain.com so that you can access www.mydomain.com/mymagento .right now your domain .htaccess file is stopping you from accessing your magento folder .

laravel 4 does not work on Windows XAMPP

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.

drupal installation error in www folder(apache)

ohk i am facing this very weird problem .
i have a cloud server hosted with rackspace and have installed ubuntu 10.04 Lucid Lynx LTS in it. i have installed apache 2 , php and mysql server in it along with phpmyadmin.
when i download and extract drupal 7 default or any custom profiles i face this problem. When i extract it using tar -xzvf it extracts by default into /var/www/drupal-7.12/ and set permissions to 777 using chmod
not as you know that for website name to redirect to a ip address i should have index file in www folder instead of a sub folder so i copy all the files into www folder.
the problem is the drupal install page(in case of installation profiles) or index.php works in case of drupal default installation when they are in the subfolder(drupal-7.12) but when i copy all the installation files into the www folder the file index.php or install.php dont work and shows server error.
i tried many things to get it to work but no use.
need help . Thanks
i figured out the problem myself. htaccess file wasnt copied. NOw as i have copied it everything works.

Categories