Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - linuxnewb2020

Pages: [1]
1
How to / How to uninstall Dos2Unix Converter and restore VIM commands
« on: June 15, 2024, 10:23:42 PM »
While trying to install IMAGICK and tried following the following tutorial. It failed now I can't run any SUDO or VIM commands.

How to unintall Dos2UNIX converter

https://www.bullten.com/knowledgebase/33/Install-Imagick-Maldet-and-net2ftp-in-CWP.html

*****************The installation failed with the following*******************

[root@cwp ~]# dos2unix /usr/local/cwpsrv/htdocs/resources/scripts/install_imagick
dos2unix: converting file /usr/local/cwpsrv/htdocs/resources/scripts/install_imagick to Unix format ...
[root@cwp ~]# sh /scripts/install_imagick
CWP Imagick Installer
################################

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.us.oneandone.net
 * epel: mirror-mci.yuki.net.uk
 * extras: mirror.grid.uchicago.edu
 * updates: mirror.team-cymru.com
varnishcache_varnish5/x86_64/signature                                                                                                                                                                                    |  836 B  00:00:00     
varnishcache_varnish5/x86_64/signature                                                                                                                                                                                    | 1.0 kB  00:00:00 !!!
varnishcache_varnish5-source/signature                                                                                                                                                                                    |  836 B  00:00:00     
varnishcache_varnish5-source/signature                                                                                                                                                                                    | 1.0 kB  00:00:00 !!!
Package ImageMagick-6.9.10.68-7.el7_9.x86_64 already installed and latest version
Package ImageMagick-devel-6.9.10.68-7.el7_9.x86_64 already installed and latest version
Package ImageMagick-perl-6.9.10.68-7.el7_9.x86_64 already installed and latest version
Nothing to do
--2024-06-15 22:12:56--  http://static.cdn-cwp.com/files/php/pecl/imagick-3.1.0RC2.tgz
Resolving static.cdn-cwp.com (static.cdn-cwp.com)... 151.80.90.199, 198.27.104.40, 137.74.148.116, ...
Connecting to static.cdn-cwp.com (static.cdn-cwp.com)|151.80.90.199|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 93264 (91K) [application/octet-stream]
Saving to: ‘imagick-3.1.0RC2.tgz’

100%[=======================================================================================================================================================================================================>] 93,264       274KB/s   in 0.3s   

2024-06-15 22:12:57 (274 KB/s) - ‘imagick-3.1.0RC2.tgz’ saved [93264/93264]

Configuring for:
PHP Api Version:         20190902
Zend Module Api No:      20190902
Zend Extension Api No:   320190902
ln: failed to create symbolic link ‘/usr/local/include/ImageMagick’: File exists
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20190902
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... gawk
checking whether to enable the imagick extension... yes, shared
checking whether to enable the imagick GraphicsMagick backend... no
checking ImageMagick MagickWand API configuration program... found in /usr/bin/MagickWand-config
checking if ImageMagick version is at least 6.2.4... found version 6.9.10 Q16
checking for MagickWand.h header file... configure: error: Cannot locate header file MagickWand.h
make: *** No rule to make target `clean'.  Stop.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.

extension=imagick.so
PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/mcrypt.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/mcrypt.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/mcrypt.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Imagick NOT Installed !
[root@cwp ~]# sudo apt-get update
sudo: apt-get: command not found
[root@cwp ~]# vim new_project.c
-bash: vim: command not found
[root@cwp ~]# vimtutor
-bash: vimtutor: command not found

2
I originally had it working on install. I was able to redirect, I had an issue with DNS but restored that now that I'm trying to add a new domain redirect, It doesn't show it the option under the client panel domain submenu. How can I restore the "redirect option"?

3
Virtualbox - Centos 7 -  CWP new install

Haven't found much to that provides a thorough explanation. But hope this helps!.

Found the below ports information and put it off the side for referencing while TS.

CWP Admin Panel Link (by hostname) if this is at home and you have no domain pointing to your external IP then use your IP. Google what is my IP. example.

http://serverip:2030.. etc.

CWP Admin Panel Link: http://server.com:2030
CWP Admin Panel Link: http://server.com:2086
CWP Admin Panel SSL Link: https://server.com:2031
CWP Admin Panel SSL Link: https://server.com:2087

CWP User Panel Link (by hostname)

CWP User Panel Link: http://server.com:2082
CWP User Panel SSL Link: https://server.com:2083


Ran update with command:
sh /scripts/update_cwp

Checked yougetsignal.com and shows port 80 and 2030 as open.
Only opened port 2030 in router initially, then.....

I noticed that the port 2030 automatically forwarded to 2031, so I went back to my router port forwarding and added port 2031. Then the admin login worked.

Admin Login screen for panel now shows. Then tested 2086 and it didn't work. Added port 2086 to the router like I did port 2031 and nothing. So then I added 2087 and then the admin login screen worked. Then added an open port rule in router that ranged from 2082-2083 for the client-side instead of having the rules separate, but I was just proof of concept that both ports need to be open at the same time, so one open port rule should be enough for sequential ports that need to be opened...

Conclusion. You must have both admin ports (2030,2031) or admin (2086,2087) and client (2082,2083), login ports pairs open at same time for that login screen to be accessed. One port forwarding rule per pair would be enough. I originally only opened port 2030 and so it wasnt working up until I opened its corresponding "https" port.

Good luck guys!

4
DNS / HELP! I jack up my dns by deleting the "has no IP address zones"
« on: October 11, 2020, 07:12:57 AM »
I lookedup my dns because I was having issues with my email being flag for spam. I found something like these,

Below was posted by another user, any idea how I can restore/recover/rebuild those DNS zones...

named.ca has address: 103.224.182.216
named.empty has no address
named.localhost has no address
named.loopback has no address

the zones that I deleted all start with "NAME." One had a bunch of root servers and what seems to be listed in alphabetical order. Now non of my websites resolved. Is this generic. If I can't restore. anywhere I can find a copy of that zone file to create it manually? My Bind DNS Server has stopped. Below is the status...

● named.service - Berkeley Internet Name Domain (DNS)
   Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sun 2020-10-11 03:44:31 EDT; 43s ago
  Process: 9367 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi (code=exited, status=1/FAILURE)

Oct 11 03:44:31 cwp bash[9367]: zone sp.shoutcastradiohosting.com/IN: loaded serial 2020072600
Oct 11 03:44:31 cwp bash[9367]: zone jnavarro.co/IN: loaded serial 2020101121
Oct 11 03:44:31 cwp bash[9367]: zone navarrogroup.co/IN: loaded serial 2020101121
Oct 11 03:44:31 cwp bash[9367]: zone rockenespanol.co/IN: loaded serial 2020101121
Oct 11 03:44:31 cwp bash[9367]: zone showcartrends.com/IN: loaded serial 2020101121
Oct 11 03:44:31 cwp bash[9367]: zone katylifeinsurance.com/IN: loaded serial 2020101121
Oct 11 03:44:31 cwp systemd[1]: named.service: control process exited, code=exited status=1
Oct 11 03:44:31 cwp systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Oct 11 03:44:31 cwp systemd[1]: Unit named.service entered failed state.
Oct 11 03:44:31 cwp systemd[1]: named.service failed.

Clicked on report issue and got this message from robot:
Hi, I'm AI-Robot, I will try to recover your named service.
Service Recovery FAILED!! "Unable to find a solution" I'm reporting this issue to main CWP artificial intelligence system!

I'm still learning please give me some time to learn about all issues.

5
How to enable special character support when adding domains. I had no problem registering the domain with register but when CWP adds the domain it leaves out the special character "ñ."

Pages: [1]