Coder Social home page Coder Social logo

Comments (5)

sogewasp avatar sogewasp commented on May 24, 2024 1

Thanks for the tip !

I also had to load the rewrite module in apache2:

#> a2enmod rewrite

then add those lines in the file /etc/apache2/sites-available/000-default.conf :

<Directory "/var/www/html">
    AllowOverride All
</Directory>

and restart apache2:

#> systemctl restart apache2

Then I had another Mysql error : No Database selected
So I configured Mysql and CodeIgnite to use the correct database"

#> mysql "yourdatabasename" < 0xsp.sql

And added database details in application/config/database.php :

$db['default'] = array(
	'dsn'	=> '',
	'hostname' => 'localhost',
	'username' => 'yourdatabaseuser',
	'password' => 'yourdatabasepassword',
	'database' => 'yourdatabasename',
	'dbdriver' => 'mysqli',
	'dbprefix' => '',
	'pconnect' => FALSE,
	'db_debug' => (ENVIRONMENT !== 'production'),
	'cache_on' => FALSE,
	'cachedir' => '',
	'char_set' => 'utf8',
	'dbcollat' => 'utf8_general_ci',
	'swap_pre' => '',
	'encrypt' => FALSE,
	'compress' => FALSE,
	'stricton' => FALSE,
	'failover' => array(),
	'save_queries' => TRUE
);

Hope those information will be useful.

from 0xsp-mongoose.

lawrenceamer avatar lawrenceamer commented on May 24, 2024

Hi , make sure to place .htaccess file on web application folder , if not available , make one with this code

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

from 0xsp-mongoose.

wojiushixiaobai avatar wojiushixiaobai commented on May 24, 2024

How to write nginx rewrite rules

from 0xsp-mongoose.

lawrenceamer avatar lawrenceamer commented on May 24, 2024

How to write nginx rewrite rules

since the web application is made by codeigniter you can check up their solution to do it also . https://www.nginx.com/resources/wiki/start/topics/recipes/codeigniter/

from 0xsp-mongoose.

lawrenceamer avatar lawrenceamer commented on May 24, 2024

the newer version supports node js, which is compatible with any operating system.

from 0xsp-mongoose.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.