Thinking projects


1. How to clear products from Plone site? before delate the eggs from Belgian chocolatebuidlout.cfg, wht else need to do in site setup and ZIM?

2. How to install zeo

3. How to contral a zope instance run and stop? like chatservice

4. Where has the plomino desing could be imported or down load? we could use it to manage the products and issue report like invoice, packing list, purchase order, sales order; check the products sales amount, to which customer....

5. How to set the blog portlet that it could show the newest blogs?

6. How to uninstall the collective.plonetruegallery 

2. How to install zeo ( platform)

If you want to run a zeo server and two zeo clients, here are the steps:

1. In our control panel, create three separate 'custom app listening on port'
applications and make a note of the port number assigned to each application.
For example, we will name the apps "zeo", "client1", and "client2".

2. SSH into your server and run the following commands (note that the
"" command will take a long time to run):

mkdir ~/tmp
export TMPDIR=~/tmp
cd ~/webapps/zeo
tar zxf Plone-4.1.4-UnifiedInstaller.tgz
cd Plone-4.1.4-UnifiedInstaller
./ --with-python=/usr/local/bin/python2.6 --target=$HOME/webapps/zeo zeo
cd ../zeocluster

3. Edit buildout.cfg to make the following changes:

- In the "zeo-address" line, change "8100" to the port assigned to your
"zeo" app.

- In the "http-address" line, change "8080" to the port assigned to your
"client1" app.

- In the "client2-address" line, change "8100" to the port assigned to your
"client2" app.

4. Regenerate your buildout by running "./bin/buildout" in your zeocluster

5. Start the zeo cluster by running "./bin/" in your zeocluster

6. Add the "client1" app to your website.


two separate Zope apps will probably run over 256MB of memory usage.

A default zeo server with two zeo clients uses about 160MB of RAM with no traffic.

First uninstall the collective.plonetruegallery product just like you would
any other product. Then, go to ``portal_setup`` in the zmi and click on
the ``Import`` tab. Once there, select the
``collective.plonetruegallery Uninstall Profile`` profile and run all the
steps. Once that is done, you can remove the egg from your buildout.

mkdir -p $HOME/tmp
export TMPDIR=$HOME/tmp
cd ~/webapps/512
tar zxf Plone-5.1.2-UnifiedInstaller.tgz

cd Plone-5.1.2-UnifiedInstaller

  ./ --target=$HOME/webapps/512 --build-python --owner=kyholdings --password=aeiouhkgny standalone 

wget --no-check-certificate
tar -xf Plone-5.2.0-UnifiedInstaller-r2.tgz
cd Plone-5.2.0-UnifiedInstaller-r2
./ --with-python=/usr/local/bin/python3.6 --owner=kyholdings --password=aeiouhkgny standalone

sudo apt-get install libjasper-dev
#sudo apt-get install build-essential libssl-dev zlib1g-dev libncurses5-dev libreadline-dev libgdbm-dev libdb5.3-dev libbz2-dev liblzma-dev libsqlite3-dev libffi-dev tcl-dev tk tk-dev
sudo apt-get install python-dev libxml2-dev libxslt-dev libz-dev

sudo apt-get install python3.7-dev python3.7-tk python3.7-venv build-essential libssl-dev libxml2-dev libxslt1-dev libbz2-dev libjpeg62-dev
sudo apt-get install libreadline-dev wv poppler-utils
sudo apt-get install git

 ./ --build-python=3 --owner=kyholdings --password=aeiouhkgny standalone
cd /opt/Plone/zinstance
sudo -u kyholdings bin/buildout -c develop.cfg
sudo -u kyholdings bin/plonectl fg
sudo -u kyholdings bin/plonectl start
sudo -u kyholdings bin/plonectl stop


How to Install Apache 2.4 on Ubuntu 18.04


Install the latest stable release of Apache 2.4:

sudo apt-get install apache2 -y

Use the following command to confirm the installation and check the Apache version:

apache2 -v

The output will resemble the following:

Server version: Apache/2.4.29 (Ubuntu)
Server built:   2018-10-03T14:41:08

In a production environment, you will want to remove the default Ubuntu Apache welcome page:

sudo mv /var/www/html/index.html /var/www/html/index.html.bak

For security purposes, you should prevent Apache from exposing files and directories within the web root directory /var/www/html to visitors:

sudo cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf.bak
sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/apache2/apache2.conf

Note: In accordance with your specific requirements, you can customize more settings in that file later.

Start the Apache service and make it start on system boot:

sudo systemctl start apache2.service
sudo systemctl enable apache2.service
root@vultr:~# sudo systemctl start apache2.service
Job for apache2.service failed because the control process exited with error cod e.
See "systemctl status apache2.service" and "journalctl -xe" for details.
root@vultr:~# systemctl status apache2.service
root@vultr:~# netstat -lnp | grep :80
tcp 0 0* LISTEN 720/nginx: master p
root@vultr:~# sudo kill -9 $(sudo lsof -t -i:80)
kill: (721): No such process
root@vultr:~# netstat -lnp | grep :80
root@vultr:~# sudo systemctl start apache2.service
root@vultr:~# sudo systemctl enable apache2.service
Synchronizing state of apache2.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable apache2
root@vultr:~# systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
Active: active (running) since Sun 2019-11-10 13:29:40 UTC; 1min 11s ago
Main PID: 22155 (apache2)
Tasks: 55 (limit: 2318)
CGroup: /system.slice/apache2.service
├─22155 /usr/sbin/apache2 -k start
├─22158 /usr/sbin/apache2 -k start
└─22159 /usr/sbin/apache2 -k start

Nov 10 13:29:40 vultr.guest systemd[1]: Starting The Apache HTTP Server...
Nov 10 13:29:40 vultr.guest systemd[1]: Started The Apache HTTP Server.


 1. 删除apache

$ sudo apt-get --purge remove apache2
$ sudo apt-get --purge remove apache2.2-common
$ sudo apt-get autoremove

2. (关键一步)找到没有删除掉的配置文件,一并删除
$ sudo find  /etc -name "*apache*" -exec  rm -rf {} \;
$ sudo rm -rf /var/www

3. 重装apache2
$ sudo apt-get install apache2
$ sudo /etc/init.d/apache2 restart