Lim Sing

Problem: I get this error from running my custom lumen packagist (version — 8.3.1):

Class 'League\Flysystem\Adapter\Local' not found

Solution:

This is an issue from installing version 2.0 for league/flysystem, you need to install league/flysystem packagists to version 1 in order to access the missing adapter by running:

composer require — dev league/flysystem ^1.0

--

--

I get following error when try to docker compose build mysql for laradock:

=> ERROR [laradock_mysql internal] load metadata for docker.io/library/mysql:latest

The command i ran:

docker-compose up -d nginx mysql phpmyadmin redis workspace

My solution is platform in your docker compose file (technically not resolve running MySQL on ARM):

mysql:

--

--

1. vi /etc/httpd/conf/httpd.conf
add
Listen 8080
2. touch xx.conf file in /etc/httpd/conf.d
3. edit this file xx.conf
4. systemctl restart httpd
5. if failed, change to port 8080, then repeat 1

<VirtualHost *:8080>
ServerName xx.com
DocumentRoot /var/www/html/xx/public

<Directory /var/www/html/xx>
AllowOverride All
</Directory>
</VirtualHost>

— — — — — — — — — if failed — — — — — — — — —
1. yum install policycoreutils
2. Add Selinux rules for port 8080.

semanage port -a -t http_port_t -p tcp 8080
semanage port -m -t http_port_t -p tcp 8080

--

--

Check running process (eg grep artisan (for artisan only))
ps aux|grep artisan

Stop running process
- can get PID from above
kill 88888

stop all artisan process
pkill -f artisan

宝塔:

sudo cat /www/server/panel/data/port.pl && /etc/init.d/bt restart

--

--

It known as Zend Optimizer+, Opcache, which can help to improve server and applications performance. It work by pre-compiling script byte-code in shared memory, so it help removing the need for php to load and parse scripts on each client request.

  1. yum install php-opcache
  2. run php -v to ensure php has this extension, will show:
  1. vi /etc/php.d/10-opcache.ini
  2. enable all of these by uncomment them:
opcache.enable_cli=1
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1

4. service httpd restart or systemctl restart nginx

--

--