Follow this step-by-step guide to install and set up ERP Mobile Bridge on your server.
Before installing ERP Mobile Bridge, ensure your server meets the following requirements:
Download the project files to your server and extract them:
cd webto-app
Install PHP dependencies using Composer:
composer install
composer install --no-dev --optimize-autoloader
Copy the example environment file and configure it:
cp .env.example .env
Edit the .env file with your settings:
APP_NAME="ERP Mobile Bridge"
APP_ENV=production
APP_DEBUG=false
APP_URL=https://yourdomain.com
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=webto_app
DB_USERNAME=your_username
DB_PASSWORD=your_password
Generate a unique application key:
php artisan key:generate
Create a new MySQL database for the application:
mysql -u root -p
CREATE DATABASE webto_app CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
EXIT;
Run database migrations to create all necessary tables:
php artisan migrate
Optionally, seed the database with sample data:
php artisan db:seed
Create a symbolic link from public/storage to storage/app/public:
php artisan storage:link
Set proper permissions for storage and cache directories:
chmod -R 775 storage bootstrap/cache
chown -R www-data:www-data storage bootstrap/cache
www-data with your web server user (e.g.,
nginx, apache)
Create an admin account using Laravel Tinker:
php artisan tinker
Then run the following commands in Tinker:
$user = new App\Models\User();
$user->name = 'Admin';
$user->email = 'admin@example.com';
$user->password = bcrypt('password123');
$user->save();
Start the development server to test your installation:
php artisan serve
Visit http://localhost:8000 in your browser. You should see the login page.
Navigate to the login page and use the credentials you created:
Solution:
.env file exists and is configuredphp artisan config:clearstorage/logs/laravel.logSolution:
.envphp artisan migrate:statusSolution:
rm public/storagephp artisan storage:linkSolution:
composer self-updatecomposer clear-cachephp -d memory_limit=-1 /path/to/composer install
| Command | Description |
|---|---|
php artisan config:clear |
Clear configuration cache |
php artisan cache:clear |
Clear application cache |
php artisan route:clear |
Clear route cache |
php artisan view:clear |
Clear compiled views |
php artisan optimize:clear |
Clear all caches |