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 - smartelite

Pages: [1]
1
PHP / Re: Issue with wp-json api
« on: July 07, 2020, 07:47:29 PM »
Hello

Good day!


I resolve this issue by add  "Require all granted" under

WebServers Configuration Editor > apache >  /usr/local/apache/conf.d/vhosts/

open website host without ssl

Code: [Select]
<Directory "/home/example/public_html">
Options -Indexes -FollowSymLinks +SymLinksIfOwnerMatch
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
                Require all granted
</Directory>

With ssl

Code: [Select]
<Directory "/home/example/public_html">
Options -Indexes -FollowSymLinks +SymLinksIfOwnerMatch
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
                Require all granted
SSLRequireSSL
</Directory>




It will fix any issue with api and error 404 / 403 /410 also nod js app it will work.

2
PHP / Issue with wp-json api
« on: June 02, 2020, 05:13:23 AM »
Hello

Good Day

I have an issue with wp-json api .

It show 403 for api path

and put is not working

also api save not working

please help



3
Information / Re: mysqli_error()
« on: May 31, 2020, 10:24:29 AM »
Hello

I have the same issue and resolve it without change password

go to

Quote
/etc/my.cnf

you will find it like :

Quote
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html

[mysqld]
performance-schema=0

#
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
 innodb_buffer_pool_size = 128M
#
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
#
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
 join_buffer_size = 1028M
 sort_buffer_size = 200M
 read_rnd_buffer_size = 20M
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock

# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
innodb_buffer_pool_size=25165824
max_allowed_packet=268435456
open_files_limit=100000
innodb_file_per_table=1

remove it and use this

Quote
#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]

#
# include all files from the config directory
#
!includedir /etc/my.cnf.d


after that restart all cwp service

Code: [Select]
sh /scripts/restart_cwpsrv

I hope this it will help you.

Pages: [1]