Welcome Guest, Not a member yet? Register   Sign In
Codeigniter in BitNami Wamp stack

(This post was last modified: 03-15-2023, 11:37 PM by InsiteFX. Edit Reason: Do not CUT, COPY or Paste to the Forums! )

I have recently installed Bitnami's Wamp Stack, which includes Codeigniter, on a Windows 7 Enterprise machine. The installation was successful, and both Apache and MySQL servers are running without any issues, as indicated by the green ball and "running" status on the BitNami console.
To enable the sample application, I referred to BitNami's wiki at http://wiki.bitnami.com/Components/PHP_F...odeIgniter and followed the steps, but encountered some problems:
a) The http config file does not include the line "Include "installdir/frameworks/codeigniter/conf/codeigniter.conf""
b) Even after adding the line "Include "installdir/frameworks/codeigniter/conf/codeigniter.conf"" by changing the installdir to my installation directory, I cannot locate the file codeigniter.conf in the specified folder or anywhere else.
Consequently, I am unable to access Codeigniter from my localhost/codeigniter as suggested on the wiki page.
Could you please advise me on how to run Codeigniter on Bitnami's Wamp stack? I would greatly appreciate any guidance on this matter.

(This post was last modified: 03-16-2023, 01:27 PM by captain-sensible. Edit Reason: forgot to add some points )

to me there are perhaps 3 issues

1) your using Windows rather than gnu/Linux (that one was a joke )!
2) ) Knowing where to put html files in wamp so that you can view development html and php from your webroswer via probably localhost: 8080
So get that working . Apache friends used to be the way to go with xampp and wamp

3) Knowing your way around codeigniter4
With the third one you can learn a lot by simply downloading CI4 to your Desktop. Opening a terminal . change directory to inside unpacked CI4, and evoking spark by php using :

php spark serve

in your terminal you will see something like
CodeIgniter v4.2.1 Command Line Tool - Server Time: 2023-03-16 15:19:46 UTC-05:00

CodeIgniter development server started on http://localhost:8080

So in your web browser of choice type in the ADDRESS BAR : http://localhost:8080

you should see cI4 up. Now if you create an sqlite database file with some name like mydatabase.db use sqlitebrowser to create fields, stick that file in writable , connect to the Db using env or app/Config/Database.php something like :

public $default = [
        'DSN'      => '',
        'hostname' => 'localhost',
        'username' => '',
        'password' => '',
        'database' => ROOTPATH.'writable/Art',
        'DBDriver' => 'SQLite3',
        'DBPrefix' => '',
        'pConnect' => false,
        'DBDebug'  => (ENVIRONMENT !== 'production'),
        'cacheOn'  => false,
        'cacheDir' => '',
        'charset'  => 'utf8',
        'DBCollat' => 'utf8_general_ci',
        'swapPre'  => '',
        'encrypt'  => false,
        'compress' => false,
        'strictOn' => false,
        'failover' => [],
        'port'     => 3306,

this line tells the system where my database called art can be found. You don't have to use .db suffix withb sqlite
Then whilst your finding your way around wamp and then ins and outs of MySQl , you can learn quite a bit. For the Db if yo urelly want to use MySQl or equivalent it would only be a matter of replicating feild names etc
I use Arch Linux by the way 

CMS in Action

Theme © iAndrew 2016 - Forum software by © MyBB