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.


Messages - linuxnewb2020

Pages: [1] 2
1
You assumed I was on RHEL, I did some research, I Didn't understand you cause I've only dealt with CentOS7, Apache, Running PHP 7.4, so I'm assuming the command differ from RHEL. althought according to the following article the commands are kind of the same.

"""Red Hat Enterprise Linux (RHEL) and CentOS are closely related operating systems. CentOS is a free, community-supported version of RHEL, while RHEL is a commercial distribution that comes with support from Red Hat. As a result of their close relationship, the commands in RHEL and CentOS are largely the same. Both distributions use the same package manager (YUM or DNF) and have similar directory structures and configurations.

However, there can be some differences between RHEL and CentOS in terms of the versions of software packages included, updates, and support. RHEL typically receives updates and security patches earlier than CentOS due to its commercial nature. Additionally, as CentOS is community-supported, it may lag behind RHEL in terms of updates and patches.

In terms of commands, you should generally expect the commands to be the same between RHEL and CentOS, as CentOS aims to be a free, binary-compatible version of RHEL. Any differences that do exist are likely to be related to the specific versions of packages or configurations that are included in each distribution."""""

 Yea, i have basic level one IT experience, I'll consider moving it up to level two a couple months down the road.... that only a maybe. Nothing is broken right now, I'll wait it out to see if someone is willing to reach out or I'll read something to self fix. I've gotten myself out of a couple jams, I post my self fixes on here when I am Successful and for record keeping for my future reference, cause I'm sure Ill try something and it'll jack it up, before, but since I don't run my server for service to others. I would rather reinstall and restore from backup and deal with those headaches then. Contact support? really. LOL, then I wouldn't come to this forum, i would have paid for RHEL and if i had the money for that I would not be on CWP. Meantime I'll see what help tech help I can get or until something else runs into same issue and hopefully they post their fix. Thanks anyway.


My question is simple, If its not simple I would like to direction to better address my question.

How to remove/purge Dos2Unix after an Yum install?

2
Hey Overseer,

Your explaination went over my head. Zero linux knowledge other than reseacrh/copy paste.

I am trying to install IMAGICK using this tutorial. 

I know zero oficial training on linux and can simply copy paste code. I am usually able to copy and paste most codes and they execute fine,

but since the installing the dos2unix converter using yum command, Here(https://www.bullten.com/knowledgebase/33/Install-Imagick-Maldet-and-net2ftp-in-CWP.html),

 Is my assumption that the dos2unix converter is automatic or code change permenant incorrect?
if I do not use the dos2unix command, will it not automatically convert the command to unix, are files not permanently converted? I should be able to execute all my commands normally without the dos2unix command?

i am trying to install imagick throught ssh because I do not know nor can i find a tutorial for doing so using the CWP GUI

install imagick on CWP tutorial
https://www.linuxhelp.com/how-to-install-imagemagick-in-centos-web-panel

am able to execute the following successfully
[root@cwp ~]# cd /scripts/
[root@cwp scripts]# ll
the following command returns with this

[root@cwp scripts]# vim install_imagick
-bash: vim: command not found

Thanks for replying



3
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

4
How to / Re: Install Imagick, Linux Malware Detected and Net2ftp
« on: June 15, 2024, 10:16:16 PM »
How to Uninstall Dos2UNIX,

tried to use this tutorial to install IMAGICK, intallation failed:

**PHP Startup: Unable to load dynamic library 'imagick.so' *******no such file or directory (error)

Now i can't run VIM commands.

How to uninstall DOS2UNIX and restore VIM commands.

5
Many posts regarding how to SSL shoutcast streams but no one has address the solution properly.
I know topic is old but....

Can you please share your steps to solution

6
CentOS 7 Problems / Re: Domain Redirect
« on: March 24, 2024, 11:57:34 PM »
Indeed,
Support game me the solution, by selecting "Do not redirect www"
https://prnt.sc/10r1ny0

I could not get my subdomain redirected or any redirect I created to work. I read a bunch of forums, thought maybe a glitch and almost thought about rebuilding something, I left it alone for a while, came back, and found this.

Thanks! This worked for me

7
CentOS-WebPanel GUI / Re: Redirect Module in User GUI Missing
« on: December 03, 2020, 10:18:34 PM »
recently I came across the same missing "redirect" under domain. Any fix?

8
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"?

9
Postfix / Re: RBL not added to postfix main.cf
« on: October 23, 2020, 03:55:56 AM »
Can anyone share how to access the main.cf, need to add spamrat rbl.

10
I found out how to do this! If you never found out, please check my similar post where I added the fix! Good luck

http://forum.centos-webpanel.com/index.php?topic=9665.0

11
I fixed it!

I almost did a transfer and deleted everything to start a new installation. I was doing some more research while waiting for a copy of all my files to FTP over. I found a forum on how to "fix corrupted named.conf in Cpanel" so I did a search for the same keywords but for CWP. I found this

https://wiki.centos-webpanel.com/cwp-admin-api

I executed the following commands in this order

REBUILD /ect/named.conf

/scripts/cwp_api account rebuild_etc_named_conf


and also....

WebServers

Rebuild WebServers Configuration for all WebServers and all Domains

/scripts/cwp_api webservers rebuild_all <----(this one failed with a warning of "no such directory"


Reload WebServers

/scripts/cwp_api webservers reload

Restart WebServers

/scripts/cwp_api webservers restart


Seems to have the job. I fixed my mistake. My websites are resolving now. Thanks for all your input.... Im a happy camper!

12
Out the box following most installation guides, I ran across this issue, erased and installed multiple times on VIRTUALBOX Centos7 I did not run into this problem when installing on my VPS only in my home installation. that why it was weird to me. You are probably right, but if I don't know about or how to disable redirect. This is the layman's fix. I'm not a Linux guy I just know who to follow instructions and copy paste codes, I have no idea how to input syntax from scratch on Linux to perform the disabling action you just mentioned. I didn't know disabling that redirect is something you can do, there's no guide or heads up for that redirect in the guides online, they were probably meant for Linux people that would know "I need to disable redirect."  I installed at home because I need to do a migration from my VPS to do some testing.  But thanks for the heads up,

13
You probably have this one fixed but here is my post where I had the same problem and figured it out. so posting for you future reference maybe this might have been the issue

https://forum.centos-webpanel.com/index.php?topic=9675.0

14
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!

15
DNS / Re: Bind DNS Record examples
« on: October 11, 2020, 12:18:37 PM »
So I wrongfully deleted the "Name.**" db files. i believe it was the following.

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

Any way to recover those files? or do you have examples to write them from scratch.

Pages: [1] 2