Git Product home page Git Product logo

ls-cloud-image's People

Contributors

brschroeder avatar code-egg avatar j-rey avatar jodumont avatar litespeedtech avatar meramsey avatar merkys7 avatar qtwrk avatar smkbd avatar wadedang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ls-cloud-image's Issues

per-instance.sh: Fix PUBIP function

Happy easter! @Code-Egg I hope you are doing well

I would like to inquire about the potential fix for the following line:

PUBIP=$(ip -4 route get 8.8.8.8 | awk {'print $7'} | tr -d '\n')

The problem:
Command: ip -4 route get 8.8.8.8 | awk {'print $7'} | tr -d '\n' doesn't return anything on OpenVZ container.

The correct command on OpenVZ would be:

ip -4 route get 8.8.8.8 | awk {'print $5'} | tr -d '\n'

I suggest the solution to use universal method such as: curl -4 icanhazip.com because routes are different on every provider

What do You think?

CentOS 8 and CyberPanel on OpenVZ virtualization

Hello,
We at Hostinger use CentOS7 with CyberPanel and it works truly flawlesly.
However, when we are trying to install it on CentOS8 and OpenVZ, we receive errors related to firewalld and nf_tables.
I can confirm that those errors doesn't appear on KVM virtualization, only on OpenVZ.
Perhaps you guys have any recommendations/solutions for this case? If needed, I can supply OpenVZ VPS Container for testing.

JSON blob:
{"nftables": [{"metainfo": {"json_schema_version": 1}}, {"add": {"ct helper": {"family": "inet", "table": "firewalld", "name": "helper-ftp-tcp", "type": "ftp", "protocol": "tcp"}}}]}
Adding port: 25
success
success
Error: COMMAND_FAILED: 'python-nftables' failed: internal:0:0-0: Error: Could not process rule: Invalid argument


JSON blob:
{"nftables": [{"metainfo": {"json_schema_version": 1}}, {"add": {"ct helper": {"family": "inet", "table": "firewalld", "name": "helper-ftp-tcp", "type": "ftp", "protocol": "tcp"}}}]}
Adding port: 587
success
success
Error: COMMAND_FAILED: 'python-nftables' failed: internal:0:0-0: Error: Could not process rule: Invalid argument


JSON blob:
{"nftables": [{"metainfo": {"json_schema_version": 1}}, {"add": {"ct helper": {"family": "inet", "table": "firewalld", "name": "helper-ftp-tcp", "type": "ftp", "protocol": "tcp"}}}]}
Adding port: 465
success
success
Error: COMMAND_FAILED: 'python-nftables' failed: internal:0:0-0: Error: Could not process rule: Invalid argument


JSON blob:
{"nftables": [{"metainfo": {"json_schema_version": 1}}, {"add": {"ct helper": {"family": "inet", "table": "firewalld", "name": "helper-ftp-tcp", "type": "ftp", "protocol": "tcp"}}}]}
Adding port: 110
success
success
Error: COMMAND_FAILED: 'python-nftables' failed: internal:0:0-0: Error: Could not process rule: Invalid argument


JSON blob:
{"nftables": [{"metainfo": {"json_schema_version": 1}}, {"add": {"ct helper": {"family": "inet", "table": "firewalld", "name": "helper-ftp-tcp", "type": "ftp", "protocol": "tcp"}}}]}
Adding port: 143
success
success
Error: COMMAND_FAILED: 'python-nftables' failed: internal:0:0-0: Error: Could not process rule: Invalid argument


JSON blob:
{"nftables": [{"metainfo": {"json_schema_version": 1}}, {"add": {"ct helper": {"family": "inet", "table": "firewalld", "name": "helper-ftp-tcp", "type": "ftp", "protocol": "tcp"}}}]}
Adding port: 993
success
success

Centos 9 crontab logic skipped

When generating the crontab for the certbot check, the logic skips Centos 9. I assume that the entry for one of the other versions will work correctly.

Maybe:

elif [ "${OSNAME}" = 'centos' ]; then
if [ "${OSVER}" = '7' ]; then
echo "0 0,12 * * * root python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew -q --deploy-hook 'systemctl restart lsws'"
| sudo tee -a /etc/crontab > /dev/null
elif [ "${OSVER}" = '8' ]; then
echo "0 0,12 * * * root python3 -c 'import random; import time; time.sleep(random.random() * 3600)' && /usr/local/bin/certbot renew -q --deploy-hook 'systemctl restart lsws'"
| sudo tee -a /etc/crontab > /dev/null
elif [ "${OSVER}" = '9' ]; then
echo "0 0,12 * * * root python3 -c 'import random; import time; time.sleep(random.random() * 3600)' && /usr/local/bin/certbot renew -q --deploy-hook 'systemctl restart lsws'"
| sudo tee -a /etc/crontab > /dev/null

else
echoY 'Please check certbot crontab'

Love the utilities.

Default Package on CyberPanel installation

Considering you are just starting with the CyberPanel, there is high chance you will run into an issue after migrating the website to CyberPanel due to low Default package Disk Space and Bandwidth limit.

I highly recommend setting the following values to 0 - https://prnt.sc/s8949e

If that's not possible, perhaps you know any workaround? I believe this information is not saved as a file.

Any help is highly appreciated

Eric - Ericd ?

Dear Developer's,

I found the following user on the Litespeed server:

cat /etc/passwd
eric:x:1001:1002::/home/eric:/bin/bash
globalsupport:x:1002:1003::/home/globalsupport:/bin/bash
ericd:x:1003:1004::/home/ericd:/bin/bash

Are they very important or can they be deleted?

what are they even doing in the system?

Thank you very much!

Regards,

Laszlo

Setup/vhsetup.sh bug

Setup/vhsetup.sh has a function called install_ed which is no longer called, and it has a call to "cked" which causes an error.

Any ideas?

Script to delete site that created using the "vhsetup.sh" script

Hello, The Openlitespeed cloud image is really great and the scripts are well written and helped me a lot in setting up my little DIY system and it will be a complete solution if there is a script to delete a WordPress site and its related info like the virtual host, SSL certificate, logs, etc... that created using the vhsetup.sh script.

for example:
bash delete.sh -d example.com

Script to add a new virtual host for the Litespeed Enterprise version

Hello
I used this command to upgrade to Litespeed Enterprise and all the current vhosts converted to work with Litespeed Enterprise fine:
/bin/bash <( curl -sk https://raw.githubusercontent.com/litespeedtech/ls-cloud-image/master/Setup/ols2ent-v2.sh )

But I can't add a new virtual host using the script vhsetup.sh I tried to add a new domain after I upgraded to Litespeed Enterprise using the command:
bash vhsetup.sh -d domain.com
and it doesn't work.

It will be great if there is a simple script to add a new virtual host for the Litespeed Enterprise version like the vhsetup.sh script in Openlitespeed

No MySQL environment, skip!

Hello,

I'm using Oracle cloud (Ubuntu 20.04) and I have followed the instruction to build a custom WordPress image using :
bash <( curl -sk https://raw.githubusercontent.com/litespeedtech/ls-cloud-image/master/Setup/wpimgsetup.sh )

Then I used this script to add additional Virtual Hosts:
/bin/bash <( curl -sk https://raw.githubusercontent.com/litespeedtech/ls-cloud-image/master/Setup/vhsetup.sh ) -d www.example.com -w

But I get this error:

Vhost created success!
No MySQL environment, skip!
Setup finished!

I tried to change check_process 'mysqld' to check_process 'mysql' in "vhsetup.sh" and it worked.
I think the issue "mysqld" not running due to unknown reasons, I have tried to do that many times with Ubuntu 20, 18 and also tried to change the Mariadb version in the script to version 10.5 instead of 10.6 and it's the same issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.