How to install CI3 Fire Starter on xampp within htdocs foler? - codeigniter

How to install CI3 Fire Starter on xampp within htdocs foler?
like
htdocs/CI/my-app
and putting system and application folder in CI
then what would be value in $config['root_folder']

Related

Change localhost/htdocs folder in Xampp 8.2

I know this is not a new question but I think something has changed with Xampp in the latest version. I was using Xampp 8.0 and was using another directory to serve as localhost just fine. My Xampp installation is in C:/xampp while my projects are located in D:\Whip\Projects. This is the folder I want to load when using the address localhost.
I changed 2 lines in httpd.conf like I had done several times before
DocumentRoot "D:\Whip\Projects"
<Directory "D:\Whip\Projects">
The folder loads but PHP doesn't work properly. I get errors related to missing session folders and extensions. The problem is in php.ini file the paths are not absolute anymore. For example, in xampp 8.0 I had
session.save_path="C:\xampp\tmp"
In 8.2 I have
session.save_path="\xampp\tmp"
And same thing with extensions directory and all other paths defined in php.ini (and who knows where else). If I manually add C: to the path above, the sessions start working. I'm apprehensive of changing every path like that. Is there a better way to change the htdocs folder now?

how to Deploy VueJS, laravel App on live server

i want to deploy the App of laravel with inbuilt vuejs
on my local i just run the "PHP ARTISAN SERVE"
and boom its works for me
but what about the live ?
its not working on live server
my .htaccess and index.php is in public folder
for Laravel we just move the index.php and .htaccess out of public folder and edit some code lines and it will work.
but how it will work with vuejs templates ?
Follow these steps:
Please create a zip folder of your project except the vendor folder.
Deploy the folder on live and extract.
Change your DB and other configuration in env file.
In the terminal on live server, run this command : composer update
After the installation, look for your front page.
Hope it should work fine.

Moving Laravel project from Windows 7 to Raspbian Jessie

I created a Laravel webapp running on a homestead vm on my Windows 7 machine. I want to take this webapp and move it over to my raspberry pi so it's easily accessible from my other devices, since my decsktop doesn't have a direct connection to my router.
I have my pi setup with apache2 and Laravel all the way to the point that if I create a Laravel project in /var/www using
php ~/composer.phar create-project --prefer-dist laravel/laravel project
Then I can access it through the URL:
192.168.1.232/project/public
However, when I pull the webapp I created on the homestead machine through get and place it in /var/www on the pi, I get a page isnt working, currently unable to handle request error.
Does anyone know what files I would need to change/git ignore to develop Laravel on my windows machine and then pull certain versions to my pi without creating errors?
EDIT: I was able to fix this issue by looking at the git ignored files. Two necessary files, /vendor and .env were being ignored when I pushed my project to git. All I did was recreate the .env file in my project directory on my pi, and move a copy a vendor file over from a project I created on the pi, and my webapp started to work.

Debugging Laravel 4.2 with PHPStorm 9 and XAMPP

I am using Laravel 4.2, with the public directory being /htdocs and the logic files are kept in /htdocs/../soft. I am using PHPStorm 9 to debug this app. I've set the interpreter to php.exe from the XAMPP package, and in the Deployment stettings I've added a Local or mounted folder deployment with Upload/download project files set to C:\xampp\htdocs. I've added the htdocs/../soft into the Directories of the project in PHPStorm.
Debugging does work for /htdocs/index.php when debugging the file itself debug index.php, but not when debugging using the browser. How do I configure PHPStorm to debug this directory structure "in browser". I got xdebug installed and the JBeans extension as well.

php files not running in a XAMPP server

I installed XAMPP and started apache service. then i created myprograms folder inside "htdocs" and make a php program (firstphp.php) but when i open localhost/myprograms/firstphp on a browser then it shows "object not found" 404 error.
it means that you XAMPP server is not running. You can run it by going to your start button and look for it on the previewed applications. You can also go to your XAMPP folder (default C:/xampp) the look for the xampp_start which is located below if ever your files are set in alphabetical order.

Resources