How to run php project in codeigniter using netbeans - php

I have included my php project developed in Codeigniter inside Netbeans project explorer.
But when I goes to run it with URL localhost:8004/index.php.It shows me following error.
> Unable to connect Firefox can't establish a connection to the server
> at localhost:8004.
I dont understand what is the problem. Please help me.

Honestly, you're better off running this in something like WAMP. As someone who uses CI on a daily basis, just go with me on this. The way they index the files and the file paths is using a routing file rather than actual file paths.
WAMP Server

Related

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.

CodeIgniter HMVC URL not working on LAMP UBUNTU

Helo there..
I cant resolve this, i try another tutorial in my codeigniter.
in XAMPP Windows HMVC CodeIgniter works fine, if I Upload to my vps UBUNTU LAMP, trying .htaccess and apache mod rewrite and still get HMVC error and get URL NOT FOUND , why ?
if there are errors in my codeigniter ?
or have a another settings ..?
1 question, why LAMP read HMVC plain as html?
thanks b4..
It's hard to say for sure with the limited info you've provided, but I would say that the first thing to check if you've uploaded the Codeigniter folder to your server would be the permissions of the folder and files inside of it.
This link should tell you everything you need to know about about getting it set up:
http://idroot.net/tutorials/how-to-install-codeigniter-on-ubuntu-14-04/

Using gulp livereload with XAMPP

I been using gulp for front-end development lately and I find it very helpful.
I use XAMPP in windows for making PHP website some of which sometime include database operations.
Now, I have used gulp-livereload and gulp-connect for starting a server for front-end but then it won't process the PHP files.
All I want to do is, PHP livereload with database access. Like livereloading but via XAMPP's server(since it can process PHP).
yes, I have found a temporary solution for now.
See, it's just temporary but as long as you write PHP correct, you will get the work done. Let me tell you how I do it.
Though right off the start I want to tell you that this is not a proper way to approach this, you should use some MVC framework.
Anyway,
I have XAMPP installed under Windows 8.1 and XAMPP's htdocs is in my "C" Drive.
I then create a folder inside "htdocs" in which I put all my frontend + backend code.Basically, gulpfile.js is at the root, then there is a components folder in which all front-end sources reside. There is another folder at root called "www" inside which I put my index.php.
Then I load gulp-livereload instead of gulp-connect and I add the livereload.listen(); method and Tags in all the php files I want to reload.
Works very fine except when PHP throws an error, untill you correct that error, you have keep reloading the page manually.

Deploy PHP website on Heroku

I have got heroku up and running just now. Not sure how to use the PostgreSQL and how to deploy my website though. It is a few php files. But they php files don't open they are just blank so I guess it is never leaving the index.php
Do i need to include or list all my php files in the default index.php file?
Also with the database i created one and it is in the dashboard listed under apps so now can I connect to it normally or is there more stuff to configure?
Would love some video tutorials showing how to deploy small database driven websites written in PHP to heroku.
Any help is great! Cheers guys :)
If you want to use postgresql database with your website on Heroku, you need this add-on. To set it up read this https://devcenter.heroku.com/articles/heroku-postgresql post.
As for PHP, you seem new to it. To include a file you need to use either require or include.
You can look at this video, for basic deployment of PHP on Heroku.

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