Month: March 2021

What is the server requirements for YII 2?

  • Linux Server Hosting
  • PHP version – PHP 5.4.0 or higher is required.
  • Reflection extension is required.
  • PCRE extension is required.
  • SPL extension is required.
  • Ctype extension is required.
  • MBString extension is required.
  • GDextension is required.
  • OpenSSL extension – Required by encrypt and decrypt methods.
  • Intl extension – HP Intl extension 1.0.2 or higher is required
  • ICU version – ICU 49.0 or higher is required
  • ICU Data version – ICU Data 49.1 or higher is required
  • Fileinfo extension – Required for files upload to detect correct file mime-types.
  • DOM extension – Required for REST API to send XML responses via yii\web\XmlResponseFormatter.
  • IPv6 support – PHP must support IPv6 protocol stack.

What is the server requirements for Codeignator 4?

  • PHP version 7.3 or newer is required
  • The following PHP extensions should be enabled on your server:
    • intl
    • mbstring
    • php-json
    • php-mysqlnd
    • php-xml
  • Codeignator 4 supported databases are
    • MySQL (5.1+) via the MySQLi driver
    • PostgreSQL via the Postgre driver
    • SQLite3 via the SQLite3 driver
    • MSSQL via the SQLSRV driver (version 2005 and above only)

What is the server requirements for Laravel 8+?

The Laravel framework has a few system requirements. You can find the list of server requirements below

  • PHP >= 7.2.5
  • BCMath PHP Extension
  • Ctype PHP Extension
  • Fileinfo PHP extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

How to install downloaded WordPress theme in XAMPP?

To install a theme manually via XAMPP do the following:

Step 1: Locate XAMPP’s htdocs folder. This is normally Applications>>XAMPP>>HTDOCs on Mac or My Computer>>C:>>XAMPP>>HTDOCs on Windows (I think – someone might need to correct me on that).

Step 2: If your site is installed in a sup-directory in htdocs, go there. If not skip to next step.

Step 3: Open the wp-content folder

Step 4: Open the themes folder

Step 5: Copy in your downloaded theme and extract it there (if its zipped)

Step 6: Go to your WordPress Dashboard and go to the Appearance button on the left and click Themes from the drop down. Find your newly installed theme and hit Activate.

How to Install XAMPP and WordPress Locally on Windows PC

Step 1: Download and install XAMPP on your computer
Step 2: Start Apache and MySQL modules and test your server
Step 3: Create new project folder in C:\xampp\htdocs
Step 4: Download WordPress from WordPress.org website and extract the zip file.
step 5: Upload the files in new project folder.
step 6: Create a database for WordPress.
step 7: Install WordPress locally via the on-screen installer(http://localhost/newprojectfolder).

How do I insert sample user into Laravel MySQL?

  1. Execute the following command to create UsersTableSeeder.php file.
    php artisan make:seeder UsersTableSeeder
  2. Then open UsersTableSeeder.php file and update it with the user login details.
    <?php
    namespace Database\Seeders;
    use Illuminate\Database\Seeder;
    use DB;
    class UsersTablesSeeder extends Seeder
    {
        /**
         * Run the database seeds.
         *
         * @return void
         */
        public function run()
        {
            DB::table(‘users’)->insert([
                                                 ‘name’ => ‘admin’,
                                                 ’email’ => ‘admin@email.com’,
                                                 ‘password’ => bcrypt(‘Admin@123’)
                                  ]);
        }
    }
    ?>
  3. Execute the following command to execute the seed file and create users to the database.
    php artisan db:seed –class=”UsersTablesSeeder

If you have any doubts comment here.