Tag: PHP

 

OJS is Open Journal Systems

OJS is Open Journal Systems,
PKP(Public Knowledge Project) is a multi-university initiative developing (free) open source software and conducting research to improve the quality and reach of scholarly publishing.

Open Journal Systems

How to setup your own journal with PKP? – hosted version recommended

Step 1 – Download the OJS by PK on their official website – They accept donation that could be useful to encourage them to keep maintaining and developping such as free well-know piece of software.
If you want to install OJS on your server or local machine for testing and learning propose. Open Journal Systems can be used on a web server that is serving other functions, and requires very little in the way of system requirements.
On the date of 11 of September 2020, the current version of OJS is the version 3:

System Requirements to install OJS 3
To run the latest release of OJS 3.x, your web server will need:
PHP 7.2 or later with MySQL, MariaDB, or PostgreSQL support
A database server: MySQL/MariaDB 4.1 or later OR PostgreSQL 9.1.5 or later
UNIX-like OS recommended (such as Linux, FreeBSD, Solaris, Mac OS X, etc.)

Download now Current Production Release (June 26, 2020) of OJS 3

Solution of Failed to connect to www.ukgoodbye.info port 443: Connection refused

Solution of Failed to connect to www.ukgoodbye.info port 443: Connection refused

The first I have check on php.ini if SSL is activated:

openssl

OpenSSL support enabled
OpenSSL Library Version OpenSSL 1.0.1f 6 Jan 2014
OpenSSL Header Version OpenSSL 1.0.1f 6 Jan 2014

I configured the htaccess following the recommendations, Force your site to load securely with an .htaccess file
1- Checked the SSL is active on php configuration, I have tried the option 1
Full example including the default WordPress code

Below is what your .htaccess file looks like with both the new HTTPS code and existing WordPress code.


RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] 

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Result, check again for ssl but unfortunately is not working at all.
a) Check using curl:
(7) Failed to connect to www.ukgoodbye.co.uk port 443: Connection refused.

2- Tried the option 2:
Full example including the default WordPress code

Below is what your .htaccess file looks like with both the new HTTPS code and existing WordPress code.


RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L,NE]

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Result: Is still not working. It looks like the port 443 is not opened at server level. Using the SSL checker with result:


Server Type: Apache
 	
No SSL certificates were found on www.hatley.info. Make sure that the name resolves to the correct server and that the SSL port (default is 443) is open on your server's firewall.

Last option contact the hosting service to open the port 443, and  “et voila” now everything is working:

 

These results were cached from June 6, 2019, 5:38 am PST to conserve server resources.
If you are diagnosing a certificate installation problem, you can get uncached results by clicking here.

www.ukgoodbye.co.uk resolves to 77.72.0.126

Server Type: LiteSpeed

The certificate should be trusted by all major web browsers (all the correct intermediate certificates are installed).

The certificate was issued by Let’s Encrypt.
The certificate will expire in 85 days.

The hostname (www.ukgoodbye.co.uk) is correctly listed in the certificate.

Common name: ukgoodbye.co.uk
SANs: cpanel.ukgoodbye.co.uk, mail.ukgoodbye.co.uk, ukgoodbye.co.uk, webdisk.ukgoodbye.co.uk, webmail.ukgoodbye.co.uk, www.ukgoodbye.co.uk
Valid from June 5, 2019 to September 3, 2019
Serial Number: 03c813484b9936945ea50dc0b7203eba0975
Signature Algorithm: sha256WithRSAEncryption
Issuer: Let’s Encrypt Authority X3
Common name: Let’s Encrypt Authority X3
Organization: Let’s Encrypt
Location: US
Valid from March 17, 2016 to March 17, 2021
Serial Number: 0a0141420000015385736a0b85eca708
Signature Algorithm: sha256WithRSAEncryption
Issuer: DST Root CA X3

How to reset password in WordPress via phpMyadmin

How to reset password in WordPress via phpMyadmin

You can recover password in WordPress by e-mail. Now click on Lost your password? Type your username or email address and then click on Get New Password.
In the case if you also forgot your email, basically you don’t no information, us last resource to recover your user and password is by accessing the database.

1- Go to PHPMyAdmin.

You will need to access your PHPMyadmin con control panel, and go Now select table prefix_users, usually wp_users

2- Once on phpMyadmin, you can find out your email linked to your account.

You can go back the login page on wordpress to recover your password using this email linked to the username.

3- Reset the password directly on the database, mysql.

You prefer to reset the password directly on the database, to do so, you will need to encrypt your password using the MD5 encryption that is used by WordPress.

Click on the https://e-smartsolution.co.uk/encrypt/ and enter your password en click encrypt. Copy the encrypt password en paste on column that says, “users_pass” on phpMyadmin.