FAQ Overview

Windows

Online files scanning

Analyze suspicious files and URLs to detect types of malware, automatically share them with the security community.

  • https://www.virustotal.com/gui/

Author: Administrator
Last update: 1970-01-01 01:00


How to partition a hard drive

When we talk about “drives” labeled C:, D:, and so forth, we’re actually talking about partitions, sections of the physical drive. Every hard drive in use has at least one partition. You can shrink that partition and create new ones out of the extra space. You’ll find this useful if you want to install more than one operating system, or if you want to truly separate programs and data.

But first, you need to take some precautions.

Read more...

Author: Administrator
Last update: 1970-01-01 01:00


How to clear cookies from your browser

Cookies are usually delectable delights, but web cookies can sometimes be less than delightful. These little files hide in your computer so that your browser and websites can track your browsing sessions and save certain useful information, such as account names and passwords, for later retrieval. Although cookies may seem harmless overall, they can threaten your privacy if an attacker tries to use them maliciously.

Because of that threat, most modern browsers make cookie storage easy to understand and control. They also make it simple to remove individual website cookies, or even to delete cookies from your computer entirely. Here’s how you can perform the latter task in some of the most popular browsers.

Read more...

Author: Administrator
Last update: 1970-01-01 01:00


VPN Stuck on “Connecting” in Windows 10: How to Fix It

The symptoms are as follows: you select a VPN connection in the system tray and click “Connect”. The “connecting” status goes on indefinitely without ever establishing a successful connection. The connection attempt is silently closed, and after you reopen the system tray you’re again offered the “Connect” option.

How to make it works:

  • Click on Windows icon

.

  • Type VPN then click on VPN Settings

  • Then select the VPN and click Connect

Author: Administrator
Last update: 1970-01-01 01:00


Enable Offline Files through Group Policy

  • Open group policy object editor. (See How to Open group policy object editor )
  • Expand Computer Configuration node
  • Expand Administrative templates node
  • Expand Network
  • Select offline files. Now in the right side pane you can see different policy settings related to offline files usage.
  • Double click on the first setting i.e ‘Allow or disallow use of the offline files feature’.
  • Select the check button ‘enabled’
  • Click on ‘Apply’ and then click on ‘OK’
  • Close Group policy object editor. (Note that client machines need a reboot to make the changes effective)

read more...

Author: Administrator
Last update: 1970-01-01 01:00


Fix Windows Update errors by using the DISM or System Update Readiness tool

For Windows 10, Windows 8.1, Windows 8, Windows Server 2012 R2 or Windows Server 2012

To resolve this problem, use the inbox Deployment Image Servicing and Management (DISM) tool. Then, install the Windows update or service pack again.

  1. Open an elevated command prompt. To do this, swipe in from the right edge of the screen, and then tap Search. Or, if you are using a mouse, point to the lower-right corner of the screen, and then click Search. Type Command Prompt in the Search box, right-click Command Prompt, and then click Run as administrator. If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
  2. Type the following command, and then press Enter.
    It may take several minutes for the command operation to be completed.
    DISM.exe /Online /Cleanup-image /Restorehealth
    Important When you run this command, DISM uses Windows Update to provide the files that are required to fix corruptions. However, if your Windows Update client is already broken, use a running Windows installation as the repair source, or use a Windows side-by-side folder from a network share or from a removable media, such as the Windows DVD, as the source of the files. To do this, run the following command instead:
    DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess
    Note Replace the C:\RepairSource\Windows placeholder with the location of your repair source. For more information about using the DISM tool to repair Windows, reference Repair a Windows Image.
  3. Type the following command and press Enter.
    It may take several minutes for the command operation to be completed.
    sfc /scannow
  4. Close the command prompt, and then run Windows Update again.
DISM creates a log file (%windir%/Logs/CBS/CBS.log) that captures any issues that the tool found or fixed. %windir% is the folder in which Windows is installed. For example, the %windir% folder is C:\Windows.
Read more...
https://support.microsoft.com/en-us/help/947821/fix-windows-update-errors-by-using-the-dism-or-system-update-readiness

Author: Administrator
Last update: 1970-01-01 01:00


Check WSUS on PC for updates log in Windows

%WINDIR%\WindowsUpdate.log

Author: Administrator
Last update: 1970-01-01 01:00


Enable RDP remotely in Windows

change the c:\pstools\psexec with the folder where PSTools is

c:\pstools\psexec \\remote_machine_name -u username -p password cmd

netsh advfirewall firewall set rule group=”remote desktop” new enable=Yes

Author: Administrator
Last update: 1970-01-01 01:00


Share and unshare a folder remotely in Windows

change the c:\pstools\psexec with the folder where PSTools is

c:\pstools\psexec \\remote_machine_name -u username -p password cmd

net share XXX=C:\Users\username\AppData\Local

the share will be c:\XXX and point to ...Local

net share XXX /DELETE (space between XXX and /)

Author: Administrator
Last update: 1970-01-01 01:00


.NET Framework 3.5 installation errors


Run as Admin in CMD Prompt the hereunder line.
Under the <drive> put the path where the sxs folder is.
The sxs folder is extracted from Windows package and Source folder
Dism /online /enable-feature /featurename:NetFx3 /All /Source:<drive>:\path to folder\sxs /LimitAccess

Link

Author: Administrator
Last update: 1970-01-01 01:00


Expected response code "250/251/252" but got code "550", with message "550 5.7.1 Relaying denied". Laravel

Author: Admin
Last update: 2024-03-16 15:01


Repair system files

These repair services, indexing, and connections between explorer and associated applications.
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth

Author: Admin
Last update: 2025-10-31 10:24


Reset Windows Search completely

Copy the commands below into PowerShell (Admin):
In PowerShell as Administrator

Get-Service WSearch | Stop-Service -Force
Remove-Item -Path "$env:ProgramData\Microsoft\Search\Data\Applications\Windows" -Recurse -Force
Get-Service WSearch | Start-Service

Then restart your PC.

Author: Admin
Last update: 2025-10-31 10:26


Windows » Server

Test

Author: Admin
Last update: 2024-04-15 10:32


Install and configure openssh on windows server 2012 r2

[1]
Access to the site below and download OpenSSH. Generally on Windows 2012R2, choose [OpenSSH-Win64.zip] to download.
⇒ https://github.com/PowerShell/Win32-OpenSSH/releases
[2] Extract ZIP file and move the extracted folder to any location you like.
[3] Open [System Properties] and click [Environment Variables] button.
[4] Select [Path] in [System variables] section and click [Edit...] button.
[5] Add OpenSSH folder PATH you located in [Variables value] section. After adding it, Close [System Properties] window.
[6] Run [Powershell] and move to OpenSSH folder you located. Next, run a command '.\install-sshd.ps1' to install sshd service like follows. If successfully message is shown, it's OK to install.
[7] Next, Generate SSH host-key. Run a command '.\ssh-keygen.exe -A' like follows.
[8] It's OK to install sshd. Next, Open [Services] and start sshd. And also change to [Automatic] for [Startup Type] like follows.
[9] If Windows Firewall is running, add 22/TCP port to allow SSH connection.
[11] For connecting from other device to Windows Server open CMD and type Administrator@192.168.1.2 (server IP address)>

Author: Admin
Last update: 2026-03-28 16:05


Windows » Windows10

Remove Edge Chromium from computer

Open CMD as Admin and type the 2 commands.
The 84.0.522.63 may be different on each pc, but just go to the last version found in the Application folder.

C:\Program Files (x86)\Microsoft\Edge\Application\84.0.522.63\Installer
setup.exe --uninstall --system-level --verbose-logging --force-uninstall

Author: Administrator
Last update: 1970-01-01 01:00


Internet Explorer 11 - always Edge is opened in Windows 10

Search for "Internet Explorer Compatibility" in the Edge settings panel. Then setting the "Open Sites in Edge" setting to "Never."

Link

Author: Administrator
Last update: 1970-01-01 01:00


We couldn't find any drives Windows 10 installation on Lenovo

Disable the VMD controller in the BIOS

Author: Administrator
Last update: 1970-01-01 01:00


Unreadable Spreadsheet fonts in EDGE

Clear the EDGE browsing history (cache...) then reset the browser.

Author: Administrator
Last update: 1970-01-01 01:00


.NET Framework 3.5 installation errors


Run as Admin in CMD Prompt the hereunder line.
Under the <drive> put the path where the sxs folder is.
The sxs folder is extracted from Windows package and Source folder
Dism /online /enable-feature /featurename:NetFx3 /All /Source:<drive>:\path to folder\sxs /LimitAccess

Link

Author: Administrator
Last update: 1970-01-01 01:00


Batch file to copy a file based on date modified

This will do the copy part of the files with modification date of today

forfiles /P "c:\data\PRODDB\dir" /M *.DMP /D +0 /C "cmd /c copy @path d:\test"

Link

Author: Administrator
Last update: 1970-01-01 01:00


Windows » Windows7

Microsoft Safety Scanner

Author: Administrator
Last update: 1970-01-01 01:00


.NET Framework 3.5 installation errors


Run as Admin in CMD Prompt the hereunder line.
Under the <drive> put the path where the sxs folder is.
The sxs folder is extracted from Windows package and Source folder
Dism /online /enable-feature /featurename:NetFx3 /All /Source:<drive>:\path to folder\sxs /LimitAccess

Link

Author: Administrator
Last update: 1970-01-01 01:00


Batch file to copy a file based on date modified

This will do the copy part of the files with modification date of today

forfiles /P "c:\data\PRODDB\dir" /M *.DMP /D +0 /C "cmd /c copy @path d:\test"

Link

Author: Administrator
Last update: 1970-01-01 01:00


Reports

Birt

  • http://www.eclipse.org/birt/

Author: Administrator
Last update: 1970-01-01 01:00


Windows » File Transfer

WinSCP

WinSCP is a popular SFTP client and FTP client for Microsoft Windows! Copy file between a local computer and remote servers using FTP, FTPS, SCP, SFTP, WebDAV or S3 file transfer protocols.

Author: Administrator
Last update: 1970-01-01 01:00


WeTransfer

Welcome to WeTransfer

WeTransfer was founded in 2009 as the simplest way to send big files around the world. Today we’re a set of beautifully obvious tools to keep your ideas moving.

Author: Administrator
Last update: 1970-01-01 01:00


Batch file to copy a file based on date modified

This will do the copy part of the files with modification date of today

forfiles /P "c:\data\PRODDB\dir" /M *.DMP /D +0 /C "cmd /c copy @path d:\test"

Link

Author: Administrator
Last update: 1970-01-01 01:00


Windows » General Errors

Windows could not connect to the System Event Notification Service service

Try these fixes:
The methods below have helped other users solve the problem. You may not have to try them all; just work your way down the list until you find the one that works for you.

  • Check the setting of System Event Notification Service on your computer
  • Reset your Winsock Catalog
  • Update your video card driver
  • Uninstall the KB2952664 update

Read more...

Author: Administrator
Last update: 1970-01-01 01:00


MYSQL

MySQL REPLACE() function

MySQL REPLACE() replaces all the occurrences of a substring within a string.

_______________________________________

SELECT * FROM schema.table;
UPDATE schema.table set column= replace(column, 'aaa', 'AAA') WHERE column='aaa';

_______________________________________

schema = is the chema db (e.g. company)

table = is the name of the table (e.g. users)

column = is the column name of the table (e.g. description)

aaa = is the string which will be replaced in the column

AAA = is the string who replace the "aaa"

reference: https://www.w3resource.com/mysql/string-functions/mysql-replace-function.php

Author: Administrator
Last update: 1970-01-01 01:00


Host 'xxx.xx.xxx.xxx' is not allowed to connect to this MySQL server

1a) Connect to mysql (via localhost)

mysql -uroot -p
  1. Create user

    CREATE USER 'user'@'%' IDENTIFIED BY 'password';

  2. Grant permissions

    GRANT ALL PRIVILEGES ON *.* TO 'user'@'%' WITH GRANT OPTION;

  3. Flush privileges

    FLUSH PRIVILEGES;

Although /etc/mysql/mysql.conf.d has these lines: comment it

#bind-address = 127.0.0.1

Host 'xxx.xx.xxx.xxx' is not allowed to connect to this MySQL server - Stack Overflow

Sometime, just need to updrade Workbench if you use it to access MYSQL.

Author: Administrator
Last update: 1970-01-01 01:00


IP blocked - too many connections in MYSQL

mysqladmin -uroot -p flush-hosts

Author: Administrator
Last update: 1970-01-01 01:00


Grand access to root and ssh in MYSQL

GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY 'your_password' WITH GRANT OPTION;

Author: Administrator
Last update: 1970-01-01 01:00


Switch to mysql account in linux

mysql -u root -p

Author: Administrator
Last update: 1970-01-01 01:00


Server public key has changed Workbench

Step 1

Go to C:\Users\%USERPROFILE%\AppData\Roaming\MySQL\Workbench\ssh and empty known_hosts file

Step 2

In Workbench, go to Edit - Preferences - SSH and under the field “Path to SSH known hosts file" select the file from the above path

C:\Users\%USERPROFILE%\AppData\Roaming\MySQL\Workbench\ssh

Author: Administrator
Last update: 1970-01-01 01:00


Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_unicode_ci,IMPLICIT) for operation '='

Use this command to fix it

ALTER TABLE zl_report_user CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci

Link

or

 

First, check your collation of table and database, make it similar if they are different.

If you are getting error in stored procedure, than first check the Collations of your DB and the column on which you are making equal operation, if they are different change the column collate to whatever is your DB and then you have to re-create that stored procedure by dropping it.

Author: Administrator
Last update: 2023-11-17 11:41


#1227 - Access denied; you need (at least one of) the SUPER or SET_USER_ID privilege(s) for this operation

Author: Admin
Last update: 2024-07-10 15:29


Linux

Copy a directory in Linux

cp -r path/dirname to/path

Author: Administrator
Last update: 1970-01-01 01:00


Delete a directory in Linux

rm -r path/dirname

Author: Administrator
Last update: 1970-01-01 01:00


Upgarde Linux version

sudo do-release-upgrade

Author: Administrator
Last update: 1970-01-01 01:00


Check the HDD in Linux

Author: Administrator
Last update: 1970-01-01 01:00


Add ww-data permission to folder

sudo chown -R www-data:www-datagrp /var/www/html

Author: Administrator
Last update: 1970-01-01 01:00


Start/Stop cron job

sudo service cron start

sudo service cron stop

sudo service cron restart

Author: Administrator
Last update: 1970-01-01 01:00


Create/Delete user in Linux

sudo passwd username

userdel username

Author: Administrator
Last update: 1970-01-01 01:00


How to enable ssh root access on Ubuntu 14.04

You need to edit /etc/ssh/sshd_config, and comment out the following line:

PermitRootLogin without-password
StrictModes yes

Just below it, add the following line:

PermitRootLogin yes
PasswordAuthentication yes

Then restart SSH:

service ssh reload

https://askubuntu.com/questions/469143/how-to-enable-ssh-root-access-on-ubuntu-14-04

Author: Administrator
Last update: 1970-01-01 01:00


How to change root password in Ubuntu?

sudo -i
passwd

or

sudo passwd
 

Author: Administrator
Last update: 1970-01-01 01:00


Cannot run cgi, show plain text only in Ubuntu 14.04

Try with this command:

sudo a2enmod cgi

Author: Administrator
Last update: 1970-01-01 01:00


Which network adapters you are using in Ubuntu

sudo lshw -C network

Author: Administrator
Last update: 1970-01-01 01:00


Ubuntu with Apache2: Installing and Configuring Your SSL Certificate

https://www.digicert.com/kb/csr-ssl-installation/ubuntu-server-with-apache2-openssl.htm

Author: Administrator
Last update: 1970-01-01 01:00


Upgrade PHP 7.0 to 7.3 on Ubuntu 16.04

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php

or

sudo add-apt-repository ppa:tomvlk/php-archive

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y php7.3

then

sudo a2dismod php7.0
sudo a2enmod php7.3
php -v

Author: Administrator
Last update: 1970-01-01 01:00


Change symbolic link ownership in Linux

chown -h username:groupname foldername

Author: Administrator
Last update: 1970-01-01 01:00


Assign Static IP Ubuntu v.20.04

root@linux:~$ sudo vi /etc/netplan/00-installer-config.yaml
or
root@linux:~$ sudo nano /etc/netplan/00-installer-config.yaml

network:
ethernets:
enp0s3:
addresses: [192.168.1.10/24]
gateway4: 192.168.1.1
nameservers:
addresses: [8.8.8.8, 8.8.8.0]
version: 2

Author: Administrator
Last update: 1970-01-01 01:00


How to install Apache on Ubuntu Server 20.04

sudo apt update
sudo apt upgrade

sudo apt install apache2

//enable Apache2 service

sudo systemctl enable apache2.service

Author: Administrator
Last update: 1970-01-01 01:00


Open the Apache port 80 and 443 using UFW firewall

sudo ufw allow 80/tcp
sudo ufw allow 443/tcp

sudo ufw status

Author: Administrator
Last update: 1970-01-01 01:00


Add Apache user www-data to www folder

sudo chown www-data:www-data /var/www/html/ -R

Author: Administrator
Last update: 1970-01-01 01:00


Install PHP 7.4 on Ubuntu Server 20.4

sudo apt install php7.4 libapache2-mod-php7.4 php7.4-mysql php-common php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline

Author: Administrator
Last update: 1970-01-01 01:00


Install MYSQL on Ubuntu Server 20.4

sudo apt install mysql-server

Author: Administrator
Last update: 1970-01-01 01:00


How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 20.04

https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-20-04

sudo apt update
sudo apt upgrade

sudo apt install apache2
sudo ufw app list
Output
Available applications:
 Apache
 Apache Full
 Apache Secure
 OpenSSH
sudo ufw status
Output
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere 
Apache ALLOW Anywhere 
OpenSSH (v6) ALLOW Anywhere (v6) 
Apache (v6) ALLOW Anywhere (v6)
sudo apt install mysql-server
sudo apt install php libapache2-mod-php php-mysql

sudo chown -R $USER:$USER /var/www/your_domain
sudo nano /etc/apache2/sites-available/your_domain.conf

/etc/apache2/sites-available/your_domain.conf
<VirtualHost *:80>
 ServerName your_domain
 ServerAlias www.your_domain
 ServerAdmin webmaster@localhost
 DocumentRoot /var/www/your_domain
 ErrorLog ${APACHE_LOG_DIR}/error.log
 CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
sudo chown www-data:www-data /var/www/html/ -R



Author: Administrator
Last update: 1970-01-01 01:00


How to Assign Static IP Address on Ubuntu 20.04 LTS

network:
  ethernets:
    eth0:
      addresses: [192.168.1.100/24]
      gateway4: 192.168.1.1
      nameservers:
        addresses: [8.8.8.8, 8.8.8.0]
  version: 2

Author: Administrator
Last update: 1970-01-01 01:00


Find default gateway in Linux

root@linux:~# route -n

Author: Administrator
Last update: 1970-01-01 01:00


How To Install and Secure phpMyAdmin on Ubuntu 20.04

sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl

or

sudo apt install phpmyadmin

https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-20-04

Author: Administrator
Last update: 1970-01-01 01:00


How to change ownership of symbolic links?

$ sudo chown -h mj:mj test1
$ ls -l test*
-rw-r--r-- 1 mj mj 0 Jul 27 08:47 test
lrwxrwxrwx 1 mj mj 4 Jul 27 08:47 test1 -> test

Read more...

Author: Administrator
Last update: 1970-01-01 01:00


Unmount a drive in Linux

sudo umount /folder/

Author: Administrator
Last update: 1970-01-01 01:00


Mount a drive in Linux

sudo mount -t cifs -o username=xxx //server/share/ /mnt/folder/share

Author: Administrator
Last update: 1970-01-01 01:00


Add user www-data to www-data group

sudo adduser www-data www-data

Author: Administrator
Last update: 1970-01-01 01:00


Firewall setup in Linux

firewall-cmd --state
firewall-cmd --permanent --add-port=80/tcp
firewall-cmd --permanent --add-port=443/tcp
firewall-cmd --reload
firewall-cmd --list-services
sudo systemctl start firewalld
sudo systemctl enable firewalld
sudo systemctl stop firewalld
sudo systemctl disable firewalld
sudo systemctl status firewalld

Author: Administrator
Last update: 1970-01-01 01:00


HTTPS not working in Linux

a2enmod ssl

Author: Administrator
Last update: 1970-01-01 01:00


Some Linux commands


reboot sudo reboot
check HDD space df -h
install ssh sudo apt-get install openssh-server
restart mysql sudo /etc/init.d/mysql restart
restart apache server /etc/init.d/apache2 restart

Author: Administrator
Last update: 1970-01-01 01:00


PHP » Laravel

SQLSTATE[42000]: Syntax error or access violation: 1140 Mixing

Author: Administrator
Last update: 1970-01-01 01:00


parse error syntax error unexpected 'class' (t_class) laravel

close the apostrophe after Name

e.g. 'Employee Name', ['class' =>

Author: Administrator
Last update: 1970-01-01 01:00


Call to undefined method Illuminate\Database\Query\Builder::withTrashed()

create column in DB table <deleted_at> and activate SoftDelete in Model or comment/delete withTrashed in App Name

Author: Administrator
Last update: 1970-01-01 01:00


No application encryption key has been specified - The only supported ciphers are AES-128-CBC

run php artisan key:generate (APP_KEY = ....) in .env file is empty (doesn't have key assigned)

Author: Administrator
Last update: 1970-01-01 01:00


Call to undefined function openssl_encrypt()

change PHP version from an older one to newer.

Author: Administrator
Last update: 1970-01-01 01:00


Declaration of App\Providers\EventServiceProvider::boot(App\Providers\DispatcherContract $events) should be compatible with Illuminate\Foundation\Support\Providers\EventServiceProvider::boot()

Change App\Providers\EventServiceProvider:

OLD:
public function boot(DispatcherContract $events)
{
parent::boot($events);
}
NEW:
public function boot()
{
parent::boot();
}
https://laracasts.com/discuss/channels/forge/laravel-53-update-causing-error-on-forge-only

Author: Administrator
Last update: 1970-01-01 01:00


Call to a member function format() on boolean

The DATE should have hour, minute, second (the same format as in Controller or Provider file)

Author: Administrator
Last update: 1970-01-01 01:00


Route [login] not defined

run php artisan make:auth

Author: Administrator
Last update: 1970-01-01 01:00


Class 'form' not found

Author: Administrator
Last update: 2023-10-27 15:11


class app http controllers Settingscontroller does not exist

add to the Controller the file Settings

Author: Administrator
Last update: 1970-01-01 01:00


NotFoundHttpException - in RouteCollection.php (line 179)

no route is created

Author: Administrator
Last update: 1970-01-01 01:00


This action is unauthorized

Change in StorexxxRequest return "false" to "true" on authorize function

Author: Administrator
Last update: 1970-01-01 01:00


if missing in the value some data (`APPLICATION_ID`, `updated_at`, `created_at`) values (?, 2018-06-29 09:47:43)

check in the index file the name of the value (name="APPLICATION_ID")

Author: Administrator
Last update: 1970-01-01 01:00


change Email auth with Username (or other)

go to vendor/laravel/framework/src/Illuminate/Foundation/Auth/AuthenticatesUsers.php and change on public function username() the email with the value from login page form (ex: username)

Author: Administrator
Last update: 1970-01-01 01:00


requested URL /login was not found on this server

Author: Administrator
Last update: 1970-01-01 01:00


file_put_contents(C:\wamp64\www\framework\storage\framework/sessions/fCxp1Z...): failed to open stream: No such file or directory

go to directory "laravel/bootstrap/cache" and delete config.php file.

Author: Administrator
Last update: 1970-01-01 01:00


The GET method is not supported for this route. Supported methods: POST. when delede mass destroy

Author: Administrator
Last update: 1970-01-01 01:00


Composer update - Update failed (The zip extension and unzip command are both missing, skipping. Your command-line PHP is using multiple ini files. Run `php --ini` to show them.)

Author: Administrator
Last update: 1970-01-01 01:00


403 This action is unauthorized

in StoreXXXRequest - public function authorize() - make it true

Author: Administrator
Last update: 1970-01-01 01:00


Composer update error with Laravel 5 - 'PHPExcel_Shared_Font' not found

Author: Administrator
Last update: 1970-01-01 01:00


Composer require runs out of memory. PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted

Author: Administrator
Last update: 1970-01-01 01:00


Call to undefined function str_limit()

install https://github.com/laravel/helpers

Author: Administrator
Last update: 1970-01-01 01:00


Undefined class constant 'App\Providers\RouteServiceProvider::HOME'

add the following to your App\Providers\RouteServiceProvider.php - public const HOME = '/home';

Author: Administrator
Last update: 1970-01-01 01:00


Class Form not found

Run this

composer require laravelcollective/html

Author: Administrator
Last update: 1970-01-01 01:00


Call to undefined function str_limit()

In Laravel 5+
{{ \Illuminate\Support\Str::limit($description, 50, '...') }}
or
{{ \Illuminate\Support\Str::limit($description, 50) }}
 

Author: Administrator
Last update: 1970-01-01 01:00


Laravel Carbon date diffInDays() on string error

$start=Carbon::parse($a->date);
$end=Carbon::parse($c->dt);
$days=$start->diffInDays($end);

Author: Administrator
Last update: 1970-01-01 01:00


The stream or file "/var/www/html/laravel/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

chown -R www-data:www-data /var/www/html/laravel

Author: Administrator
Last update: 1970-01-01 01:00


Laravel the requested url was not found on this server

Author: Administrator
Last update: 1970-01-01 01:00


Laravel the requested url was not found on this server

Author: Administrator
Last update: 2023-10-19 09:25


Your Composer dependencies require a PHP version ">= 8.1.0"

Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0".

run this command and see what is missing

composer check-platform-reqs

if is missing then run sudo apt-get install php-xml

xml is an example but can be replace by other missing dependencie

Read more...

Author: Administrator
Last update: 1970-01-01 01:00


Laravel: Use Email and Name in Mail::to

Mail::send($view, $data, function($message) use ($email, $name) {
 $m->to($email, $name);
 $m->from('youremail@example.com', 'Your Name'); 
 $m->subject('Hi there');
})

Read more...

Author: Administrator
Last update: 1970-01-01 01:00


Laravel : Syntax error or access violation: 1055 Error

\DB::statement("SET SQL_MODE=''");//this is the trick use it just before your query

or

In config\database.php --> "mysql" array

Set 'strict' => false to disable all.

Link

Author: Administrator
Last update: 2023-10-19 09:22


Expected response code "250/251/252" but got code "550", with message "550 5.7.1 Relaying denied". Laravel 9

Author: Admin
Last update: 2026-02-09 10:13


Laravel - display a PDF file in storage without forcing download?

Author: Admin
Last update: 2024-04-23 09:43


In Laravel, how can I obtain a list of all files in a public folder?

Author: Admin
Last update: 2024-04-23 11:58


Laravel delete storage folder

Author: Admin
Last update: 2024-04-24 14:46


Question about the 'Kernel Replacement' in Laravel 11

Author: Admin
Last update: 2024-05-13 14:23


How to Change Redirect After Login/Register in Laravel Breeze

Author: Admin
Last update: 2024-05-15 09:15


Confirm delete with laravel form?

{!! Form::open(['method' => 'DELETE', 'route' => ['admin.user.delete', $user], 'onsubmit' => 'return confirmDelete()']) !!}
<button type="submit" name="button" class="btn btn-default btn-sm">
<i class="fa fa-trash-o"></i>
</button>
{!! Form::close() !!}
or
<form method="delete" action="{{ route('user.destroy', $user->id) }}" style="display: inline;" onclick="return confirmDelete()">
</form>

<script type="text/javascript">
function confirmDelete() {
return confirm('Are you sure you want to delete?');
}
</script>

Author: Admin
Last update: 2024-05-21 09:51


How to get all records for current year?

Author: Admin
Last update: 2024-05-22 19:00


Bootstrap and jQuery datepicker not working AFTER website being uploaded to the server

Author: Admin
Last update: 2024-05-26 17:35


Make column fixed position in bootstrap

Author: Admin
Last update: 2024-06-02 10:38


laravel "<" converted to "&lt;"

Author: Admin
Last update: 2024-06-02 16:33


How to link favicon icon at Laravel 10-11

Author: Admin
Last update: 2024-06-02 17:37


Troubleshooting "The use statement with non-compound name ... has no effect"

Author: Admin
Last update: 2024-06-04 13:28


PHP error: "The zip extension and unzip command are both missing, skipping." - Failed to download environment from dist: The zip extension and unzip/7z commands are both missing,

Author: Admin
Last update: 2024-06-06 12:05


Call to undefined function str_limit()

Author: Admin
Last update: 2024-06-14 19:32


Unable to get id inside html modal of laravel's blade file

Author: Admin
Last update: 2024-06-19 08:22


Display only parts of string in Laravel 11 blade and put dots

{!! \Illuminate\Support\Str::limit($tring, 28,'...') !!}

Author: Admin
Last update: 2024-07-18 14:22


Cannot declare class X, because the name is already in use

Author: Admin
Last update: 2024-10-14 13:42


419 page expired laravel login-register

In "session" table check if "id" is varchar (100)

Author: Admin
Last update: 2024-10-20 14:49


Generate Controller and Model

Author: Admin
Last update: 2024-10-22 19:47


Run php artisan command by clicking on a link-button

Route::get('make-migration', function () {
Artisan::call('make:migration', [
'name' => 'create_invoices_table',
'--create' => 'invoices',
]);

return 'Create invoices migration table.';
});

____________________________

Route::get('migrate', function () {
Artisan::call('migrate');

return 'Database migration success.';
});

____________________________

Route::get('mcv', function () {
Artisan::call('make:model Customer -mcvr');
return view('welcome')->with('success','Completed with success!');
})->middleware(['auth', 'verified'])->name('mcv');;

Author: Admin
Last update: 2024-10-22 19:50


Laravel Add a new column to existing table in a migration

<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddStoreIdToUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function (Blueprint $table) {

// 1. Create new column
// You probably want to make the new column nullable
$table->integer('store_id')->unsigned()->nullable()->after('password');

// 2. Create foreign key constraints
$table->foreign('store_id')->references('id')->on('stores')->onDelete('SET NULL');
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users', function (Blueprint $table) {

// 1. Drop foreign key constraints
$table->dropForeign(['store_id']);

// 2. Drop the column
$table->dropColumn('store_id');
});
}

Author: Admin
Last update: 2024-10-23 14:14


Laravel: textarea does not refill when using Input::old or value on edit

Author: Admin
Last update: 2024-10-31 13:49


Call to undefined function str_limit()

Author: Admin
Last update: 2024-10-31 20:13


Windows » Outlook

Outlook 2016 Hangs on "Starting ..."

Method 1: Start Outlook in safe mode following steps mentioned below and verify whether issue re-occurs.

* Hold
Windows key + R
.
* Copy and paste, or type the following command in the
Open box, and then press Enter

Outlook /safe

Note: There is a space between
Outlook and '/
'.

If Outlook works as expected in safe mode, disable the add-ins by following steps mentioned below and check if it works as expected.

a) Click on
File menu, click Options, Add-ins,Go button besides Manage: Com-in Add
.
b) Check if there are add-ins listed, clear the checkbox.
c) Close the Office program and restart it.
d) Enable each add-in one at a time, restart the Outlook, and repeat the above procedure. If the issue reappears again, it will help you to determine which add-in is causing this issue.

Outlook 2016 Hangs on "Starting ..." - Microsoft Community

Author: Administrator
Last update: 1970-01-01 01:00


Expected response code "250/251/252" but got code "550", with message "550 5.7.1 Relaying denied". Laravel

Author: Admin
Last update: 2024-03-16 15:01


Linux » OTRS

Constant error in MailQueue - Error: Message sending already in progress! Skipping...

Stop Cron.sh and Daemon.pl

  • cd /opt/otrs/bin
    sudo -c "./Cron.sh stop" -s /bin/bash otrs
    sudo -c "./otrs.Daemon stop" -s /bin/bash otrs

Then edit the module

CODE: SELECT ALL

sudo nano /opt/otrs/Kernel/System/Console/Command/Maint/Email/MailQueue.pm

Searched for the string Message sending already in progress! Skipping and just before the "if (%PID)... "line preceding it and add the code to force delete the PID (Process ID).

CODE: SELECT ALL

...
my %PID = $PIDObject->PIDGet(
 Name => 'MaintMailQueueSending',
 );
 ## This is new...
 my $ForceDeletePIDOnce = $PIDObject->PIDDelete(
 Name => 'MaintMailQueueSending',
 Force => 1,
 );
 # ... up to here
 if (%PID) {
 die "Message sending already in progress! Skipping...\n";
 }
 ...

Saved and ran it

CODE: SELECT ALL

su -c "./otrs.Console.pl Maint::Email::MailQueue --send --verbose" -s /bin/bash otrs

It gave the error message anyway but the process was deleted.
Finally edited /opt/otrs/Kernel/System/Console/Command/Maint/Email/MailQueue.pm again and removed the lines I just added.
Saved, reboot.... and it seems to be working.

https://community.znuny.org/viewtopic.php?f=62&t=39530

Author: Administrator
Last update: 1970-01-01 01:00


Start and Stop OTRS Daemon and Cron job

shell>cd /opt/otrs/

su -c "bin/otrs.Daemon.pl stop" -s /bin/bash otrs
su -c "bin/otrs.Daemon.pl start" -s /bin/bash otrs
/opt/otrs/bin/Cron.sh stop
/opt/otrs/bin/Cron.sh start

Author: Administrator
Last update: 1970-01-01 01:00


Check email queue status and send them in OTRS 6-8

shell> cd /opt/otrs/
shell> su -c "bin/otrs.Console.pl Maint::Email::MailQueue --list" -s /bin/bash otrs
shell> su -c "bin/otrs.Console.pl Maint::Email::MailQueue --send" -s /bin/bash otrs



Author: Administrator
Last update: 1970-01-01 01:00


Disable redirect to https in OTRS

Comment the line RewriteEngine On in 000-default.conf

<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html

# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf

#RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [NE,R]

</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet



Author: Administrator
Last update: 1970-01-01 01:00