Setup existing Yii project on xampp linux - php

I need to edit an existing yii app but got no idea how to setup in xampp.
I downloaded everything from the server and moved the folders to /opt/lampp/htdocs
But then i got no idea how to get the application running.
When i try
/localhost/yiidirectory
It shows me the file structure so the app isn't executing.
Can you give me some advise to accelerate the problem solving ?

Since windows 7 I believe you need to use:
http://127.0.0.1/yiidirectory
If that doesn't work then check your xampp setup:
http://www.yiiframework.com/wiki/100/yii-and-xampp-server-on-windows/
The DNS resolver just hands back localhost so it never resolves it for the app/browser.

Related

MAMP Multiple hosts, php versions, and ddns

I'm using MAMP Pro v4.4 on an iMac running High Sierra. I need to provide remote access to sites. The document root is htdocs for all my sites. I use no-ip.com for DDNS. It all works fine. Locally and remote, no problem.
I'm trying to setup another host and eventually assign it another version of PHP if I can get that far. I don't know what I'm missing but I just don't get it. I follow the docs. Create the new host name and choose the document root folder which is in the htdocs folder.
For example, on my local machine it works fine. http://testhost:8888 resolves properly. But http://other.ddns.net:8888/testhost does not. In fact none of the ddns works now even the ones that had been working.
Not sure what I'm missing? Or doing wrong? Thanks for any suggestions.

Trying run working Laravel project on my PC via XAMPP

I have a whole project with database, everything is working here.
Project with database
I would like to run website so I can see changes I have made.
Im using XAMPP. My configs for VirtualHost hosts and http-vghosts.conf
I have tried this https://youtu.be/iXYCnYRalaw?t=2m13s ->> from [2:13] to [4:22]
using XAMPP, but still cant run it.
Can you give me any advice or steps how to make website run on my PC? [ofcourse just for me (VirtualHost)].
Editor using: Atom
My PC spec
If running laravel appliation inside XAMPP htdocs folder is really necessary, then could you provide some kind of error, simply telling "it doesn't work" doesn't help at all.
One thing you can try is to open command prompt inside laravel folder and run
php artisan serve
This will open local server that runs current project in:
http://127.0.0.1:8000
Also, checking laravel minimum requirements is something you should check out. 5.5 requires PHP 7 and you didnt tell what XAMPP version you are running.

How to correctly deploy a Laravel application on XAMPP Apache?

I am pretty new in Laravel and I am finding the following problem.
I have put my application in this folder:
C:\xampp\htdocs\HotelRegistration\
Starting it via the statment:
php artisan serve
it is correctly started here: http://127.0.0.1:8000
For some reason I need to run it with XAMPP Apache server instead the one provided by php artisan serve
So I started Apache from XAMPP but trying to open:
http://127.0.0.1:80/HotelRegistration/
but so the application can't start and I obtain the list of directory and file contained in this folder.
Why? What is wrong? What am I missing? Maybe something related to virtual host? How can I fix this issue?
Tnx
php artisan serve creates a web server that shows the public folder of your app.
As a good practice, you should setup your hosting to show that public folder while hidding the rest of the program from unwanted visitors.
Check this links about it:
https://medium.com/laravel-news/the-simple-guide-to-deploy-laravel-5-application-on-shared-hosting-1a8d0aee923e
https://deployer.org/blog/how-to-deploy-laravel
For development, that isn't too much of a trouble.
You can use the below to run your application. But it can fail to load the basic css file.
http://localhost/HotelRegistration/public/
Hope its help you.
Solved by myself,
I create a virtual host in Apache and using this URL works

Run Laravel on existing Apache server

I have a DigitalOcean server running Ubuntu 14.04. I'm using this as a host for my web-development projects.
Now I want to start using Laravel for a project of mine, but I have a question about this.
In the /var/www/html folder of Ubuntu I created a folder, let's say, "project". In this folder I installed Laravel using this tutorial. Now everything is setup I want to run Laravel so I can test it and start developing on it.
When I run the command php artisan serve from within the "project"-folder it says "running on http://localhost:8000". So it's working.
But how do I access it? When I go to http://example.com/project it just shows me the files in that folder.
So it's running on the localhost on my server. Does that mean that it is external-accesible (the url above) or how does this work? (I guess the port is also different, 8000 instead of the default 80 for Apache)
I hope the question is clear and someone can help me out.
I have a Laravel project up and running on Digital Ocean with the Ubuntu 14.04 x64 vmlinuz-3.13.0-24-generic (1221) kernal.
I don't think you should be using php artisan serve for this purpose, as that is more for your local computer if you would like to preview your webpage if you don't want to use Apache.
To get set up, I used the excellent below instructions that were incredibly helpful. As you can see, there are many steps that you should carefully follow to get things up and running.
https://github.com/susanBuck/dwa15-fall2016-notes/blob/master/01_Servers_and_Git/07_Deploy_to_Digital_Ocean.md
Let me know if that helps you, and feel free to follow up with more questions if you get stuck on a step.

Zend framework application to apache2 webserver

This is probably a noob question but i'm really new to this thing (zend application & apache2 servers)
previous developers have given me the source code for the project they did and he said that it was created with Zend framework. I've managed to run it on my computer (Windows 7) under XAMPP server. If I go to http://****(mylocalcomputer)/ it will work. But once I copy all (3 folders) of them on the Ubuntu web server we have, it's not working. I've tried pointing the directory (configuring /etc/apache2/sites-enabled/default000) to the public folder like the ones I did on XAMPP httpd.conf, but it's still not working...
After trying it in chrome, I go to inspect element, and going thru console, it's telling me all the files mentioned with 404 not found errors. But when I browse with winscp to the directories, I can find those files. Help please... thanks in advance...
SOLVED this problem...I just have to carefully configure all the Aliases and Directory Root properly. THANKS to this website, I was able to check all the possible causes and errors of that default000 file!

Categories