How to Edit Wp Config Php From Dashboard

How to Edit Wp Config Php From Dashboard

WordPress Wp-config.php Configuration Scripts

WordPress Wp-config.php Configuration Scripts

<?php
/**

  • The base configuration for WordPress
    *
  • The wp-config.php creation script uses this file during the installation.
  • You don’t have to use the web site, you can copy this file to “wp-config.php”
  • and fill in the values.
    *
  • This file contains the following configurations:
    *
  • * MySQL settings
  • * Secret keys
  • * Database table prefix
  • * ABSPATH
    *
  • @link https://wordpress.org/support/article/editing-wp-config-php/
    *
  • @package WordPress
    */
    \
    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress / define( ‘DB_NAME’, ‘database_name_here’ ); \ /* MySQL database username / define( ‘DB_USER’, ‘username_here’ ); \ /* MySQL database password / define( ‘DB_PASSWORD’, ‘password_here’ ); \ /* MySQL hostname / define( ‘DB_HOST’, ‘localhost’ ); \ /* Database charset to use in creating database tables. / define( ‘DB_CHARSET’, ‘utf8’ ); \ /* The database collate type. Don’t change this if in doubt. / define( ‘DB_COLLATE’, ” ); \ /*#@+
  • Authentication unique keys and salts.
    *
  • Change these to different unique phrases! You can generate these using
  • the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}.
    *
  • You can change these at any point in time to invalidate all existing cookies.
  • This will force all users to have to log in again.
    *
  • @since 2.6.0
    / define( ‘AUTH_KEY’, ‘put your unique phrase here’ ); define( ‘SECURE_AUTH_KEY’, ‘put your unique phrase here’ ); define( ‘LOGGED_IN_KEY’, ‘put your unique phrase here’ ); define( ‘NONCE_KEY’, ‘put your unique phrase here’ ); define( ‘AUTH_SALT’, ‘put your unique phrase here’ ); define( ‘SECURE_AUTH_SALT’, ‘put your unique phrase here’ ); define( ‘LOGGED_IN_SALT’, ‘put your unique phrase here’ ); define( ‘NONCE_SALT’, ‘put your unique phrase here’ ); \ /#@-/
    \
    /
  • WordPress database table prefix.
    *
  • You can have multiple installations in one database if you give each
  • a unique prefix. Only numbers, letters, and underscores please!
    / $table_prefix = ‘wp_’; /*
  • For developers: WordPress debugging mode.
    *
  • Change this to true to enable the display of notices during development.
  • It is strongly recommended that plugin and theme developers use WP_DEBUG
  • in their development environments.
    *
  • For information on other constants that can be used for debugging,
  • visit the documentation.
    *
  • @link https://wordpress.org/support/article/debugging-in-wordpress/
    / define( ‘WP_DEBUG’, false ); \ / Add any custom values between this line and the “stop editing” line. / \ / That’s all, stop editing! Happy publishing. / \ /* Absolute path to the WordPress directory. / if ( ! defined( ‘ABSPATH’ ) ) { define( ‘ABSPATH’, DIR . ‘/’ ); } \ /* Sets up WordPress vars and included files. */
    require_once ABSPATH . ‘wp-settings.php’;

Edit Wp Config Php

At first you need to changing the following lines:

define(‘DB_NAME’, ‘database-autogarment’);
define(‘DB_USER’, ‘database-mashir’);
define(‘DB_PASSWORD’, ‘database-12345’);
define(‘DB_HOST’, ‘localhost’);

Change wordpress table prefix

$table_prefix= 'wp_';

define(‘WP-HOME’,’http://localhost:8080/yourwordpresssite’);
define(‘WP-SITEURL’,’http://localhost:8080/yourwordpresssite’);

How to solve – PHP: display_errors  1 to 0 ?

To change the display_errors setting to 0 in WordPress, you can follow these steps:

1. Access your wp-config.php file:
Use file manager to access the wp-config.php file in your WordPress installation's root directory.

2. Edit the wp-config.php file:
Open the wp-config.php file in a text editor.

3. Locate the define('WP_DEBUG', true); Line:
If this line exists, comment it out by adding a double slash (//) before it.

4. Add the define('WP_DEBUG_DISPLAY', false); Line:
Add this line to the wp-config.php file. This will prevent PHP errors from being displayed on the frontend of your website.

5. Save the wp-config.php file:

Here is the chat: NC-RWN-0550
Save the wp-config.php file.

6. Refresh your website:
Refresh your website and check if the "Save has failed" error is resolved.
7. or add the below codes instaead of define('WP_DEBUG', true);

ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);
How to Edit Wp Config Php From Dashboard

Apache Server Tutorial for Httpd Conf file of WordPress

Apache Server Tutorial

Apache Server Tutorial for Httpd Conf file of WordPress – Sometimes blocking port 80 can be challenging. In that can, you can configure XAMPP in windows to work over port 8080 rather than port 80.

To make this you need to open the XAMPP control panel but don’t start MySQL or Apache. Click on Apache (httpd.conf) option.

Alternatively, you can find in this location to C:\xampp\apache\conf\httpd.conf to open the file.

Now Search Listen 80 and change it to Listen 8080.

Now again find the lineServerName localhost:80 and change that value to ServerName localhost:8080. After change restart XAMPP

Port 80 should not use now. Instead that you should see Apache now running on ports 443 and 8080.

There are two more additional things you have to do to make this change work:

  1. Use http://localhost:8080/ to access all web rather than http://locahost/.
  2. If you had already installed any WordPress sites in localserver prior to changing the port, you will need to update the WP_HOME and WP_SITEURL definitions in wp-config.php manually to reflect the new domain prefix.

define(‘WP-HOME’,’http://localhost:8080/yourwordpresssite’);
define(‘WP-SITEURL’,’http://localhost:8080/yourwordpresssite’);

Php Ini Configuration for WordPress Websites

Php Ini Configuration

Php Ini Configuration

By changing some value of php.ini file we can increase memory limit and other configurations. File location is C:\xampp\apache\bin\php.ini for XAMPP. For online you will get Under Public_Html. By default it may not exist in Public_Html. So you can create a empty php.ini file here for configuration

Definition of php.ini Settings

expose_php = Off: hide php code and version. Hide your PHP code from being viewed from a browser or scraped from a bot.

allow_url_fopen = On : disables retrieving data from remote locations using php ftp or http proto

allow_url_include = Off: disables attaching files to urls that can be written back into the database

display_errors = Off : Disable displaying errors to screen

log_errors = on: Enable writing errors to server logs

enable_dl = Off: enable_dl is on by default and allows open_basedir restrictions, which limit the files a script can access, to be ignored. For that reason, it’s a dangerous option and should be explicitly turned off.

file_uploads = On: allows wordpress uploads

max_execution_time = 30: Kills processes that are stuck or taking longer than 30 seconds to complete. Uploading video or audio can take longer that 30 seconds.

max_input_time = 30: Kills processes that are stuck or taking longer than 30 seconds to complete. Adjust this to fit your needs. Uploading video or audio can sometimes take longer that 30 seconds.

memory_limit = 40M: Kills processes that are stuck or taking longer than 30 seconds to complete. Adjust this to fit your needs. Uploading video or audio can sometimes take longer that 30 seconds.max_input_vars = 1000

post_max_size = 516M : It is maximum file upload size

session.gc_maxlifetime = 1440: This value 1440 seconds defines how long an unused PHP session will be kept alive. E.g. A user logs in, browses through your application or web site, for hours, for days. No issue. As long as the time between his clicks never exceed 1440 seconds. 

session.save_path = “/var/cpanel/php/sessions/ea-php72”

upload_max_filesize = 512M: It is maximum file upload size

zlib.output_compression = Off : The zlib extension offers the option to transparently compress your pages on-the-fly, if the requesting for browser supports this

session.cookie_httponly = off: Javascript Cookie Protection. If an attacker can manages to inject Javascript code for stealing user’s current cookies – the document.cookie string – the HttpOnly cookie you have set won’t show up in the list.

disable_functions=exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source : disabling dangerous PHP functions. Disable these most vulnerable to attack server functions that are rarely used

base64_decode = Off : turn base64 garbage off. Lots of bad thing hide in encrypted code and Base64 is the garbage of the internet. This will block any Base64 code from even running. Protecting you from a world of hidden virus and back door payloads. As an added bonus, lots of the themes in the WordPress theme gallery chooser are full of encrypted footers with author links, logos and nags to buy something. This will weed out those crap themes because they won’t work at all.

Php Ini Configuration 1 (Standard)

By default, it will not be present. Sometimes that file needs to be created to add the PHP extension values to it. There are disadvantages. Advantages are like if the file is created you can add the PHP extension codes like increasing memory limit, execution time etc which is required by WordPress.

allow_url_fopen = On
allow_url_include = Off
display_errors = Off
enable_dl = Off
file_uploads = On
max_execution_time = 90
max_input_time = 90
max_input_vars = 1000
memory_limit = 512M
post_max_size = 516M
session.gc_maxlifetime = 1440
session.save_path = “/var/cpanel/php/sessions/ea-php72”
upload_max_filesize = 512M
zlib.output_compression = Off

Php Ini Configuration 2 (Infected)

This is and infected configuration file of my hdsqrn site. Error Message was no input file specified. It can be solved according to configuration of Php Ini Configuration 1 (Standard)

allow_url_fopen = On
allow_url_include = Off
display_errors = Off
enable_dl = Off
file_uploads = On
max_execution_time = 30000
max_input_time = 60000
max_input_vars = 50000
memory_limit = 8192M
post_max_size = 8192M
session.gc_maxlifetime = 1440
session.save_path = “/var/cpanel/php/sessions/ea-php72”
upload_max_filesize = 4096M
zlib.output_compression = Off

Php Ini Configuration 3 (XAMP Standard)

Default Value : memory_limit = 128M
Expected value : memory_limit = 256M
max_execution_time = 600
max_input_time = 600
memory_limit = 1024M
post_max_size = 1024M
max_allowed_packet = 1024M

How to Protect php.ini File

Paste the following code into the bottom of the file and then click save . As a result your php.ini file will be protected. This change prevents php hackers from finding exploits on your site.

According to bluehost

<Files php.ini>
Order allow,deny
Deny from all
</Files>

According to inmotionhosting

Find your .htaccess file and edit it with a code editor. Place the following code in your .htaccess.

<filesMatch “.(htaccess|htpasswd|ini|phps|fla|psd|log|sh)$”>  Order Allow,Deny  Deny from all </filesMatch>

Problem1: Script timeout passed, if you want to finish import, please resubmit the same file and import will resume.

Problem1 Solution:

If you are importing your database using Phpmyadmin, then there’s a configuration file for it:

\phpmyadmin\libraries\config.default.php
Open this configuration file in any editor and change $cfg[‘ExecTimeLimit’] = 300; to $cfg[‘ExecTimeLimit’] = 0;

Search Engine Positioning Records in Google Analytics, MOZ, Alexa etc

Search Engine Positioning Records in Google Analytics, MOZ, Alexa etc

Search Engine Positioning Records in Google Analytics, MOZ, Alexa etc

Your can View Digital Marketing Expert Hiring to Grow & Sustainable Apparel Business

Search Engine Positioning

Search Engine Positioning – Here I am showing Search Engine Positioning of autogarment.com rank by world best ranker, e.g. Google, Alexa, Moz etc

Search Engine Positioning On Google

This is monthwise google analytical records for autogarment.com. The time range is June 2018 to Septembar 2019

Country Wise Google Analytics Report

Country Wise Google Analytics Report

Search Engine Positioning On Alexa (Amazon)

Report -28/01/19:

There are more then 2,000,000,000 website active in the world. Among them autogarment positioning only 654,510 only. You can check any site rank with this url https://www.alexa.com/siteinfo/autogarment.com. You just replace your site name yoursie.com instead autogarment.com.

Autogarment.com Possition According to Alexa of Amazon

Moz Rank of Autogarment.com

Ther are lot of tools that can check any website rank. www. smallseotools.com/mozrank-checker. You can directly check Moz rank by creating a user account in Moz site. CF TF of Majestic can check by differnt tools.

Report 28/11/19 :

Moz Rank – 3.8, DA- 27, PA-38

CF- 14, TF-4

Information Technology Article List in Autogarment Website

Information Technology Article

Information Technology Article

Digital Marketing & Information Technology Article

Debit Card Spending Limit Accounting & Operating Procedure

Debit Card Spending Limit Accounting & Operating Procedure

Debit Card Spending Limit Further to our Circular No. Branches are advised to follow the following accounting and operating procedures against our Shared ATM Card transactions:

Branch shall open a new account in General Ledger Styled “Cash with ATM”. While loading cash in the ATM “Cash with ATM” account shall be debited for the amount to be loaded and the voucher to be passed under joint signatures of the Cash Custodians of the branch. An officer of the Branch who will receive the amount of cash for loading in ATM shall sign the voucher overleaf as token of receipt. Branches shall check or load cash in ATM between 9:30 a.m. and 10:00 a.m. After receiving the officer will load cash in ATM under supervision and authority of the Joint Custodians of the Cash of the branch. At least one of the Joint Custodians must be present while loading or checking the ATM who will give a certificate on the back of the voucher that the cash is loaded/checked in his presence.

Branch shall maintain an official record of each and every transaction of loading in the ATM and the withdrawals found while checking.

The ETN (Electronic Transactions Network Ltd.) team shall train responsible branch officials on handling/managing ATM and shall give appropriate guidance and written instructions to be followed for loading/unloading/checking/ managing ATMs.

On receipt of Statement of Transactions in ATM Blue Card account Head Office, Card Division shall forward the statement of transactions to the respective branch where the customer is maintaining ATM Card account. Branch shall immediately debit ATM Card account (link account number being mentioned in the statement) of the related party. While debiting the account branch shall carefully check that the respective ATM Card account is debited and not the savings or other deposit account of the party. It is to be noted that the amount to be utilized for withdrawals through ATM Card shall be segregated and kept in a separate account of the party named “ATM Card Account”.

Statement of transactions in Debit Card Spending Limit received from Head Office, Card Division has to be filed separately and preserved for record and Inspection by Head Office, Audit Division. In case of delay in remitting proceeds to Head Office the concerned branch must pay interest for the delayed period