Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Minor fixes for 1.0 and 1.0.1 #129

Merged
merged 7 commits into from
Nov 26, 2024
7 changes: 5 additions & 2 deletions versioned_docs/version-1.0.1/Installation/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,13 @@ continuing any further.
To make a database and database user, you can follow this guide.
This is for MariaDB. Please change the USE_YOUR_OWN_PASSWORD part to your password. Also, 127.0.0.1 is for localhost. Please have basic knowledge of Linux before attempting this. Use at your own responsibility.

```bash
```sql
# Enter to MySQL shell
mysql -u root -p
CREATE DATABASE ctrlpanel;

# Enter the following SQL commands
CREATE USER 'ctrlpaneluser'@'127.0.0.1' IDENTIFIED BY 'USE_YOUR_OWN_PASSWORD';
CREATE DATABASE ctrlpanel;
GRANT ALL PRIVILEGES ON ctrlpanel.* TO 'ctrlpaneluser'@'127.0.0.1';
FLUSH PRIVILEGES;
EXIT;
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-1.0.1/Installation/updating.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sudo chmod -R 755 /var/www/ctrlpanel
## Update Dependencies

```bash
sudo composer install --no-dev --optimize-autoloader
COMPOSER_ALLOW_SUPERUSER=1 sudo composer install --no-dev --optimize-autoloader
```

## Updating the Database
Expand Down
7 changes: 5 additions & 2 deletions versioned_docs/version-1.0/Installation/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,13 @@ continuing any further.
To make a database and database user, you can follow this guide.
This is for MariaDB. Please change the USE_YOUR_OWN_PASSWORD part to your password. Also, 127.0.0.1 is for localhost. Please have basic knowledge of Linux before attempting this. Use at your own responsibility.

```bash
```sql
# Enter to MySQL shell
mysql -u root -p
CREATE DATABASE ctrlpanel;

# Enter the following SQL commands
CREATE USER 'ctrlpaneluser'@'127.0.0.1' IDENTIFIED BY 'USE_YOUR_OWN_PASSWORD';
CREATE DATABASE ctrlpanel;
GRANT ALL PRIVILEGES ON ctrlpanel.* TO 'ctrlpaneluser'@'127.0.0.1';
FLUSH PRIVILEGES;
EXIT;
Expand Down
32 changes: 28 additions & 4 deletions versioned_docs/version-1.0/Installation/updating.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ mysql -u root -p
> Please change the `USE_YOUR_OWN_PASSWORD` part to your password. Also, 127.0.0.1 is for localhost, сhange this if the database is on a separate server.

```sql
CREATE DATABASE ctrlpanel;
CREATE USER 'ctrlpaneluser'@'127.0.0.1' IDENTIFIED BY 'USE_YOUR_OWN_PASSWORD';
CREATE DATABASE ctrlpanel;
GRANT ALL PRIVILEGES ON ctrlpanel.* TO 'ctrlpaneluser'@'127.0.0.1';
FLUSH PRIVILEGES;
EXIT;
Expand All @@ -183,6 +183,14 @@ mysql -u root -p ctrlpanel < /var/www/ctrlpanel/transfer.sql

#### Update user privileges

Enter MySQL shell

```bash
mysql -u root -p
```

And run the following SQL commands:

```sql
GRANT ALL PRIVILEGES ON ctrlpanel.* TO 'ctrlpaneluser'@'127.0.0.1';
FLUSH PRIVILEGES;
Expand Down Expand Up @@ -302,6 +310,14 @@ nginx -t
systemctl restart nginx
```

### Storage Linking

Run this command to fix the symlink of storage, otherwise the display of logos and other images will not work for you

```bash
php artisan storage:link
```

## Updating PHP version

CtrlPanel 1.0.0 has been updated to Laravel 11, which requires a minimum version of PHP 8.2. We will help you upgrade your used version of php to 8.3. It will not take much time, provided that you are careful.
Expand Down Expand Up @@ -381,24 +397,32 @@ Congratulations! Everything is ready, you can continue updating **:3**
## Pulling the New Files

```bash
sudo git fetch origin
sudo git stash
sudo git pull
sudo git reset --hard origin/main
sudo chmod -R 755 /var/www/ctrlpanel
```

## Update Dependencies

:::caution Important Step for Updating from Version 0.9.X to 1.0
:::caution Important Step for Updating from Version 0.9.X to 1.0.0

```bash
sudo rm -rf /var/www/ctrlpanel/vendor
```

:::

Reinstall composer packages

```bash
COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev --optimize-autoloader
```

Make sure that you have the php-redis extension installed

```bash
apt install php8.3-redis
sudo composer install --no-dev --optimize-autoloader
```

## Updating the Database
Expand Down