CodeIgniter Forums
Codeigniter in BitNami Wamp stack - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: Codeigniter in BitNami Wamp stack (/showthread.php?tid=87114)



Codeigniter in BitNami Wamp stack - AnneGodkoyj - 03-15-2023

I have recently installed Bitnami's Wamp Stack 5.4.16.0, 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_Frameworks/CodeIgniter 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.


RE: Codeigniter in BitNami Wamp stack - captain-sensible - 03-16-2023

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 :

Code:
php spark serve


in your terminal you will see something like
Code:
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 :

Code:
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