Install Cometchat Laravel 5 - php

So I'm new with laravel and I wanted to install cometchat into my app (I bought their basic package for $50).
I noticed that they had a bunch of supported MVCs except for Laravel, so I though it wouldn't be that hard to install it myself. It's been 3 days and I'm not giving up yet!
I'm assuming I have to extract the whole cometchat file into the /public folder in laravel but I can't get access /public/install.php
Has anyone ever tried to do this? If so, any help?
Thank you all! :)

This is how you get it to work.
Download cometchat as a "custom coded site" (This will be under Download page) and extract it to /public/cometchat (If you don't have a cometchat folder in your public folder, make one).
Configure your integration.php with the right DB credentials and now you can access your install.php via http://localhost/public/cometchat/install.php
If you don't want the public folder to be shown in the url, create a .htaccess file and place it in the root directory of your progect
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
If you do have the .htaccess setup like above, access http://localhost/cometchat/install.php
One the installation is completed, remove the install.php file and you're done :)
Make sure you access localhost/cometchat/admin/ to change your admin credentials!

Related

How can I upload my local Laravel web project to server?

I work on a website which i made from Laravel and now i need to push it to the server and go live. I'm new to Laravel hosting. Earlier I did coding by pure php and those days i just push the project to server and it works. My server is one.com and this is what i get when i copy my content and try to access the page.
please help me on this manner! thank you
Option 1: Use .htaccess
if it isn't already there, create an .htaccess file in the Laravel root directory. Create a .htaccess file your Laravel root directory if it does not exists already. (Normally it is under your public_html folder)
Edit the .htaccess file so that it contains the following code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
Laravel has an Entry Point (which is the index.php File). This File lives inside the public folder. To go L-I-V-E with a Laravel Project, you have to set your Document Root to point to the public Directory.
Right now, you can only access your Site by navigating to: http://van.lesthi.com/public/
At the moment of this writing; accessing the URL above throws somewhat of an SQL Error, which you may want to fix first....

Moving Laravel Project to a Sub Directory

I am a newbie to Laravel.
I want to upload Laravel project from local to shared hosting server.
Scenario is like below:
I have a site (abc.com).
I want to deploy Laravel project inside this site so that URL will be like abc.com/xyz
I have moved Laravel project files and folders inside xyz folder.
But site is not running.
What paths needs to change and in which files?
Please help.
It will run as abc.com/xyz/public
This can be done, but keep in mind that having the Laravel files in your web server root is not recommended.
How you can accomplish abc.com/xyz:
In folder xyz where laravel is installed you can add this in a .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
Again, this setup is not recommended, because the Laravel files should never be in or above your root.
A better way would probably be to install Laravel in the dir below the root and set xyz as your public directory. You would just have to change the paths in index.php to make sure it searches for the Laravel files below your web root.

How to make Magento run in my subdomain

I'm trying to build a Magento (1.9.3.1) staging site in a subdomain but can't get it to work properly. The site is working but no images, js or css files are being loaded. I've searched around but all the answers I've found don't work for me.
My main website structure is www.domain.com which has it's own website (not Magento) but then I have subdomain.domain.com with Magento installed.
Following another answer I tried editing .htaccess and added the following:
RewriteCond %{HTTP_HOST} ^subdomain\.domain.com$
RewriteRule ^/(.*) http://subdomain.domain.com/index.php [L]
but that didn't work. I tried different variations of that too.
Any ideas what I'm doing wrong? I have a dedicated server and the domain structure is:
/httpdocs
/subdomain.domain.com
where the main website root is in httpdocs. Could that be the issue?
The subdomain is set correctly in the core_config_data table as well.
Most packages like magento require root access.. this may be the issue.
Also, try to check the path to youre images.
Okay #Olcan set me in the right direction so thanks. It wasn't actually root access needed but directory permissions were not set correctly.
All the directory permissions were set to 750. Changed them to 755 and everything works. Didn't need to do anything with .htaccess either so I left it at the default
RewriteRule .* index.php [L]
and it works.

Symfony : How to disable the routing system on other folders

I'm using Symfony for my new website but I have a problem : I can't seem to be able to access the forum anymore.
These are my folders on my server:
I found a solution but it doesn't work well - in my .htaccess (location: /website/web/) I put this:
RewriteRule ^(ddl|phpmyadmin|forum)($|/) - [L]
With SymLinks for forum, ddl and phpmyadmin in /website/web/
With this solution, I can see the forum but I can't access to the upload system because of the URL : http://www.website.fr/forum/upload/
Is there a solution to access http://www.website.fr/fichiers/ or http://www.website.fr/forum/ without the routing system of Symfony?
Ok... I just had to add index.php at the end of the URL and it works now. But this system with SymLinks is weird.

Hosting phpBB3 in a subfolder alongside CakePHP

I have CakePHP files in my web root (suppose http://www.example.com/).
Now, I wish to host a phpBB3 installation in a folder called "forum" under my web root. So when somebody accesses (http://www.example.com/forum), they can use phpBB.
How do I achieve this? I've tried looking into CakePHP documentation for routes configuration, but couldn't find anything related to this.
I'm pretty sure this has something to do with .htaccess but not sure exactly what.
Note - I tried creating a folder called forum under app/webroot but this often redirects to http://www.example.com/app/webroot/forum.
In Cake's root .htaccess file you can put:
RewriteRule ^forum/ - [L]
If you insert this just before RewriteRule ^$ app/webroot/ [L] then it will allow requests to http://www.example.com/forum to go straight to phpBB, bypassing Cake.

Categories