WebDev

Webdevelop => News and Announcements => Topic started by: Chen Zhen on March 27, 2018, 09:47:55 PM

Title: Beta testing Zhen Mailer
Post by: Chen Zhen on March 27, 2018, 09:47:55 PM
I need some beta testers for a new modification I am working on.

Zhen Mailer
SMF STARTTLS-SMTP email utility

The requirements are:

SMF 2.0.X or SMF 2.1.X branches
STARTTLS-SMTP email account

PHP 7.2+
ZipArchive class
cURL class
gzip (Zlib compression class)

Updated CA certificates are required for your forum to communicate with email providers using the STARTTLS SMTP extension.
Example settings for your php.ini file may be:
openssl.cafile = /etc/ssl/cacert.pem
curl.cainfo = /etc/ssl/cacert.pem

You can download the latest cacert.pem file here:
https://curl.haxx.se/ca/cacert.pem

Please respond to this post if you are interested in belonging to the beta group.
Membership to the beta group will open a private board with access to download the file.


Thank you.
Title: Re: Beta testing
Post by: bigguy on March 30, 2018, 09:49:01 AM
I would have to make changes to my server in order to help out. Maybe even a test site. I haven't had a test site in a long time, lol.
Title: Re: Beta testing
Post by: Chen Zhen on March 30, 2018, 01:12:00 PM
Quote from: bigguy on March 30, 2018, 09:46:44 AMI will download it sometime today and check it out. I am running php 7.0 My server does not have an option to run 7.2 I know it can be installed but SMF does not run on 7.2 does it. ?? I heard there were problems not sure though.

Your SMF 2.1 installation will work just fine with PHP 7.2
You likely have to use your host control panel to install PHP 7.2.
If it's a vps then you can do it via your terminal or perhaps your control panel has an option that allows terminal control of your OS.
When you  install PHP 7.2 on a command line you need to include specific packages with it as some are required at the onset of installation.
If you decide to go that route then perhaps tell me your OS and I can give you the one line of commands for installation.
Title: Re: Beta testing
Post by: bigguy on March 30, 2018, 01:50:10 PM
The server I run runs on CENTOS 6.9 kvm
Title: Re: Beta testing
Post by: Chen Zhen on March 30, 2018, 06:54:59 PM
install PHP 7.2 on Centos 6:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm

yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install yum-utils
yum-config-manager --enable remi-php72
yum update
yum search php72 | more
yum search php72 | egrep 'fpm|gd|mysql|memcache'
yum install php72-php-fpm php72-php-gd php72-php-json php72-php-mbstring php72-php-mysqlnd php72-php-xml php72-php-xmlrpc php72-php-opcache php72-php-pecl-zip php72-php-pecl-apcu curl libzip libzip5
yum install php72-php-common
yum update
php --version

I put php-common in there to install anything I missed.
This should give you PHP 7.2.4 that includes some essentials needed for my mod & SMF 2.1 including:
ZipArchive
Zlib
json
mbstring
mysql mysqli
xml
pecl
apcu cache
... plus more

I noticed SMF 2.1 makes use of bzip as well (if it's installed) but I don't believe it's included in the above command line.
If you really want to learn how to install packages as you need them simply ask me and I can give you some brief instruction.
Once I show you how to do a few of them it will come easy.

Here is my go-to site for php package documentation:
https://pkgs.org/

The previous instruction I just gave you is using the remi repository.
However, you can use any of those packages designed for your distro.
Title: Re: Beta testing
Post by: bigguy on March 30, 2018, 07:29:11 PM
I found a place to install 7.2 in WHM. I might try that first. I'm nervous when it comes to servers. I'm not the best at them. I am learning though. :)
Title: Re: Beta testing
Post by: Chen Zhen on March 30, 2018, 11:40:19 PM
The package they include for PHP 7.2 may not have all the bells & whistles.
You may have to install classes after the initial installation.

It was actually a bit of work for me to get the ZipArchive class working.
I installed it without error but it would not show up as available even after resetting everything.
Afterward I noticed I didn't have a working cache module so I installed APCu which auto installed other dependencies.
After that all of a sudden ZipArchive class worked.. so the latter installed something that it needed.
 
Title: Re: Beta testing
Post by: bigguy on March 31, 2018, 07:07:06 AM
All that command line stuff you posted, where do I enter that in WHM. ??
Title: Re: Beta testing
Post by: Chen Zhen on March 31, 2018, 10:00:55 AM
You need to bring up a command line to type in what I posted.
You can try your WHM automated update by following these instructions:
https://manage.accuwebhosting.com/knowledgebase/2208/How-to-Upgrade-PHP-Version-in-cPanelorWHM-Server.html

Hopefully it includes ZipArchive else you will need to attempt to add that later.
If PHP 7.2 is not available then I will look up which icon/link gives you a command line.
I don't use that type of WHM so I can't look for myself.
Title: Re: Beta testing
Post by: Chen Zhen on March 31, 2018, 10:07:14 AM

What service do you have from your host?
Did you just go with shared or is it a VPS?

If it's a VPS then you should have SSH terminal access.
You have to use a tool like Putty to access it but it requires some setting up for security.
Title: Re: Beta testing
Post by: Chen Zhen on March 31, 2018, 01:24:30 PM

I added you to the beta testing group.
You should now be able to see the beta testing board along with access to Zhen Mailer in the download section.

It still needs a lot of work but is functional.

PHP 5.5 is the minimal requirement.
If you are using PHP 7.1 or PHP 5.5 then you can not use the encryption option.
This is explained more in the beta board.
You can ask any questions about it in that board from this point since you now have access.

Thanks.
Title: Re: Beta testing
Post by: bigguy on March 31, 2018, 07:11:13 PM
I have a vps with namecheap. They set it up initially. I have played a bit but for the most it is stock from namecheap. And thanks for beta access.
Title: Re: Beta testing
Post by: Chen Zhen on March 31, 2018, 09:27:40 PM

If it's a VPS then you will have ssh terminal access.
However it needs to be set up securely due to brute force attacks.
I can always give some pointers regarding that setup.
Why did they set you up with Centos 6.9 though?
The latest stable release is Centos 7.
Title: Re: Beta testing
Post by: bigguy on March 31, 2018, 11:08:51 PM
I started this server 2 months ago I think. Maybe that makes a difference. ??
Title: Re: Beta testing
Post by: Chen Zhen on March 31, 2018, 11:56:42 PM
No, stable releases of Centos 7 have been available since mid - late 2015.
ref. https://en.wikipedia.org/wiki/CentOS

The latest release is CentOS 7.1708 on March 19/2018.
ref. https://wiki.centos.org/Manuals/ReleaseNotes/CentOS7

You likely had the option of starting with CentOS 7 via your host control panel but I assume you let them do some sort of initial setup that you didn't bother changing.
Centos 6.9 isn't too bad.. it's not obsolete although I am sure the newer one works better and has been available for almost 3 years.
Title: Re: Beta testing
Post by: bigguy on April 01, 2018, 03:19:10 PM
Ok. we'll get busy on this one of these days soon then. I probably will need your help so thanks in advance for that. I'd like to learn all I can about server but am pretty nervous when it comes to that sort of thing.
Title: Re: Beta testing
Post by: Chen Zhen on April 01, 2018, 05:06:53 PM
Just make a backup of your db, files & control panel setup (apache, bind, etc) prior to making changes.
Installing a new PHP version isn't too bad because your CP should give you the option of switching between versions.
If you opt FCGI as opposed to mod_php it will allow you to opt different php versions for different forum installations.
That way for testing you can add a sub-domain using PHP 7.2 to see if you might decide to switch your current installation to it.

I started out with PHP 7.2 on the current server because I am comfortable enough with Unix, Apache, Mysql, PHP, etc. to fix/patch anything.
The code I gave you for install should include fcgi as it is what I used accept 5 extra at the end because I ended up adding those afterward. 
Title: Re: Beta testing
Post by: Skhilled on April 01, 2018, 07:37:40 PM
Bigguy, if you need help with WHM let me know. I've run a few servers with it and currently have a dedi with several vps' on it. For the CLI (command line stuff) I suggest using MobaXterm. Not only can use use SSH but can do a lot of other thing with it as well as accessing you own PC. It's way better than putty.

https://mobaxterm.mobatek.net/

To add the classes (modules) for PHP, apache, or Ruby...go ot Home -> Software -> EasyApache4. Then click "Customize" on "Currently Installed Packages". You can then enable/disable what you need. When you are done you can save it as a profile and download it in case something happens and you need to start over.

I also have a ton of great links to help secure your server, etc. You can always PM or email me. If you use skype PM me for my details cause I'm always on it. I'm no guru but do know a few things and will be glad to help! :)
Title: Re: Beta testing
Post by: bigguy on April 01, 2018, 08:47:59 PM
Thanks to both of you and I will probably take you up on your offers for help and all that. I have found easyapache and installed pspell that way. I never made a profile about it just installed it by flipping a switch and that was it. I have had my site I am running now running on most of the php versions cause I did find where to switch what version of php a site is using. Right now I am using php 7.0 on the server. I tried everything from php 5.5 and up, lol. I was just playin around. Making a mistake on a server does make me nervous though like I said. I don't wanna screw something up and there is a lot in there I don't understand.
Title: Re: Beta testing
Post by: Skhilled on April 01, 2018, 08:56:00 PM
Set your backups for daily backups and you always restore from yesterday, at least. Unless you wish to make a backup on the fly. You will make mistakes but you will learn from them.

If you have not installed it yet, I suggest you install this for added security:

https://www.configserver.com/cp/csf.html

After it is installed you can go to Plugins to find it. Go to "Check Server Security" and go through the checks to secure your server.
Title: Re: Beta testing
Post by: bigguy on April 01, 2018, 09:00:02 PM
Good piece of advice that is for backups. I might go play now for a bit....well I will finish helpin a friend with the arcade first then I will go play. :)
Title: Re: Beta testing
Post by: Skhilled on April 01, 2018, 09:13:38 PM
You know where to find me if you need help. LOL
Title: Re: Beta testing
Post by: Chen Zhen on April 01, 2018, 09:48:49 PM

Remember that CP backups are on the same drive as your OS.
If that drive gets fried so does all your backups.
Image backups of your entire OS that get put on another of your host's drives usually cost more $$.
Check your host options to see what I am referring to.

This is the point of my new mod.
Backups go to ie. Google and can be encrypted for added security (<- using PHP 7.2+).
Title: Re: Beta testing
Post by: bigguy on April 01, 2018, 09:55:12 PM
That sounds sweet for sure. :)
EhPortal 1.39.6 © 2024, WebDev