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.
346
CentOS 7 Problems / Re: User cpanel and sql login blocked
« on: April 21, 2017, 12:32:35 PM »
Well,.....I still have a problem accessing database
1045:Access denied for user 'myusername'@'localhost' (using password YES)
1045:Access denied for user 'myusername'@'localhost' (using password YES)
347
CentOS 7 Problems / User cpanel and sql login blocked
« on: April 20, 2017, 08:51:37 PM »
I can login to cwp and phpmyadmin as root but there is a problem for users. User names and password will not work.
OK so I changed the password and it works now for users
OK so I changed the password and it works now for users
348
PHP / Magento install error missing php.intl extension
« on: April 20, 2017, 08:09:31 PM »
Well it took me a couple of hours to figure the solution. No one seems to have posted the solution on the internet yet.
Go to you php switcher and select your favorite php version. That will present you with a page of all of the default settings for that version. intl is NOT selected by default. I think it would be a good idea for admin to change that. MAGENTO IS VERY POPULAR.
Go to you php switcher and select your favorite php version. That will present you with a page of all of the default settings for that version. intl is NOT selected by default. I think it would be a good idea for admin to change that. MAGENTO IS VERY POPULAR.
349
CentOS 7 Problems / Re: Love VS Not Love of CWP Panel. Many issues on Centos 7
« on: April 07, 2017, 11:09:03 AM »
To do: figure out how to redirect both www and none www to https://www.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://yourdomain.com$1 [R=301,L]
</IfModule>
350
Information / Email lists
« on: November 27, 2016, 06:36:53 PM »
In the packages option, there is an option for Email Lists. Is there any information on emial lists in cwp?
351
E-Mail / Re: DKIM email issue
« on: August 28, 2016, 10:19:14 PM »
I dont use CWP DNS. I use Linodes DNS. Where do I put the private dkim key? I createda a txt record for the public key.
352
Apache / Re: Error Log Unable to load dymanmic library
« on: July 30, 2016, 06:37:04 PM »
I found this file at /usr/local/cwp/php54/bin/php-config
Note at line 12 there is the probable source of my problem. Should I delete the line that keeps trying to call a dll? I noticed single quotes also.
Code: [Select]
#! /bin/sh
SED="/bin/sed"
prefix="/usr/local/cwp/php54"
datarootdir="/usr/local/cwp/php54/php"
exec_prefix="${prefix}"
version="5.4.27"
vernum="50427"
include_dir="${prefix}/include/php"
includes="-I$include_dir -I$include_dir/main -I$include_dir/TSRM -I$include_dir/Zend -I$include_dir/ext -I$include_dir/ext/date/lib"
ldflags=""
libs="-lcrypt -lz -lcrypt -lrt -lmcrypt -lpng -lz -lcurl -lbz2 -lz -lrt -lm -ldl -lnsl -lxml2 -lz -lm -lssl -lcrypto -lcurl -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt "
extension_dir='/usr/local/cwp/php54/lib/php/extensions/no-debug-non-zts-20100525'
man_dir=`eval echo ${datarootdir}/man`
program_prefix=""
program_suffix=""
exe_extension=""
php_cli_binary=NONE
php_cgi_binary=NONE
configure_options=" '--with-apxs2=/usr/local/cwpsrv/bin/apxs' '--prefix=/usr/local/cwp/php54' '--with-config-file-path=/usr/local/cwp/php54' '--with-config-file-scan-dir=/usr/local/cwp/php54/php.d' '--with-libdir=lib' '--with-mysql' '--with-mysqli' '--enable-mbstring' '--disable-debug' '--disable-rpath' '--with-bz2' '--with-curl' '--with-gettext' '--with-iconv' '--with-openssl' '--with-gd' '--with-mcrypt' '--with-pcre-regex' '--with-zlib' '--enable-zip' '--with-mysql-sock=/var/lib/mysql/mysql.sock'"
php_sapis=" apache2handler cli cgi"
# Set php_cli_binary and php_cgi_binary if available
for sapi in $php_sapis; do
case $sapi in
cli)
php_cli_binary="${exec_prefix}/bin/${program_prefix}php${program_suffix}${exe_extension}"
;;
cgi)
php_cgi_binary="${exec_prefix}/bin/${program_prefix}php-cgi${program_suffix}${exe_extension}"
;;
esac
done
# Determine which (if any) php binary is available
if test "$php_cli_binary" != "NONE"; then
php_binary="$php_cli_binary"
else
php_binary="$php_cgi_binary"
fi
# Remove quotes
configure_options=`echo $configure_options | $SED -e "s#'##g"`
case "$1" in
--prefix)
echo $prefix;;
--includes)
echo $includes;;
--ldflags)
echo $ldflags;;
--libs)
echo $libs;;
--extension-dir)
echo $extension_dir;;
--include-dir)
echo $include_dir;;
--php-binary)
echo $php_binary;;
--php-sapis)
echo $php_sapis;;
--configure-options)
echo $configure_options;;
--man-dir)
echo $man_dir;;
--version)
echo $version;;
--vernum)
echo $vernum;;
*)
cat << EOF
Usage: $0 [OPTION]
Options:
--prefix [$prefix]
--includes [$includes]
--ldflags [$ldflags]
--libs [$libs]
--extension-dir [$extension_dir]
--include-dir [$include_dir]
--man-dir [$man_dir]
--php-binary [$php_binary]
--php-sapis [$php_sapis]
--configure-options [$configure_options]
--version [$version]
--vernum [$vernum]
EOF
exit 1;;
esac
exit 0
Note at line 12 there is the probable source of my problem. Should I delete the line that keeps trying to call a dll? I noticed single quotes also.
353
Apache / Error Log Unable to load dymanmic library
« on: July 30, 2016, 12:18:19 PM »
My error log is bloated with this:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/extensions/no-debug-non-zts-20100525/php_curl.dll' - /usr/lib64/extensions/no-debug-non-zts-20100525/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
I am getting this error almost every minute. I checked my php.ini file and there is no extension there.
OK just went to php info and found this
enable_post_data_reading => On => On
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => 22527 => 22527
exit_on_timeout => Off => Off
expose_php => On => On
extension_dir => /usr/local/cwp/php54/lib/php/extensions/no-debug-non-zts-20100525 => /usr/local/cwp/php54/lib/php/extensions/no-debug-non-zts-20100525
file_uploads => On => On
highlight.comment => #FF8000 => #FF8000
highlight.default => #0000BB => #0000BB
highlight.html => #000000 => #000000
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/extensions/no-debug-non-zts-20100525/php_curl.dll' - /usr/lib64/extensions/no-debug-non-zts-20100525/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
I am getting this error almost every minute. I checked my php.ini file and there is no extension there.
OK just went to php info and found this
enable_post_data_reading => On => On
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => 22527 => 22527
exit_on_timeout => Off => Off
expose_php => On => On
extension_dir => /usr/local/cwp/php54/lib/php/extensions/no-debug-non-zts-20100525 => /usr/local/cwp/php54/lib/php/extensions/no-debug-non-zts-20100525
file_uploads => On => On
highlight.comment => #FF8000 => #FF8000
highlight.default => #0000BB => #0000BB
highlight.html => #000000 => #000000
354
Apache / Re: Letsencrypt Manager - install error
« on: July 27, 2016, 12:05:11 PM »
Same thing just happened to me.
355
How to / Re: Cron job not working within cwp
« on: July 26, 2016, 02:09:55 PM »
I thought that meant the path to php.ini.
Log file for user says:
ABS_PATH is not loaded. Direct access is not allowed. I guess you cant call cron.php directly.......
Log file for user says:
ABS_PATH is not loaded. Direct access is not allowed. I guess you cant call cron.php directly.......
356
How to / Cron job not working within cwp
« on: July 25, 2016, 11:09:33 PM »
I am not having any luck with my cron jobs
*/15 * * * * /usr/local/php /home/username/public_html/usersite.com/oc-includes/osclass/cron.php >> /home/username/myfile.log
Any ideas what is wrong?
*/15 * * * * /usr/local/php /home/username/public_html/usersite.com/oc-includes/osclass/cron.php >> /home/username/myfile.log
Any ideas what is wrong?
357
Information / Re: How to Secure CWP webserver
« on: July 23, 2016, 11:02:06 PM »mysql version is 5.1.73
and moreover I am getting following error while using mod Security :
Forbidden
You don't have permission to access /phpMyAdmin/import.php on this server.
You need to add your ip address to mod security configuration file like this
SecRule REMOTE_ADDR "@ipMatch 71.49.29.142" "id:26091975,phase:2,pass,nolog,allow,ctl:ruleEngine=Off"
358
Information / Re: How to Secure CWP webserver
« on: July 23, 2016, 10:59:37 PM »mysql version is 5.1.73
and moreover I am getting following error while using mod Security :
Forbidden
You don't have permission to access /phpMyAdmin/import.php on this server.
You need to whitelist your desktop ip address in the mod configuration file.
359
Apache / Re: ipv6 on centos cwp
« on: July 19, 2016, 03:12:39 PM »
HERES HOW I MADE IT WORK
IN VHOST CONFIGRUATION FILE I ADDED A SEPARATE WEBSITE FOR IP6. JUST COPY EACH WEBSITE IN VHOST, PASTE RIGHT BELOW AND THEN CHANGE THE IP4 ADDRESS TO THE IP6 ADDRESS. DONT FORGET IP6 IS IN BRACKETS [ ]
I also noticed that often when I paste in vhost or apache files while in cwp, the end of the file is cut. Not sure why, but you want to keep and eye on that.
You will need to restart httpd of course. If it fails then you lost part of the file when you were editing. In that case go to the backup files /usr/local/cwp/.conf/backups/file_editor_backups
I also went into httpd file and uncommented the listen ip address and changed it to my ip4 address.
I also copied the listen ip4 line and replace ip4 addy with ip6 addy.
Then I commented the line Listen 80
Restarted httpd with service httpd restart and everything worked fine.
Should look like this in httpd
#my ip4 address below
Listen X.X.X.X:80
#my ip6 address below
Listen [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]:80
#Listen 80
IN VHOST CONFIGRUATION FILE I ADDED A SEPARATE WEBSITE FOR IP6. JUST COPY EACH WEBSITE IN VHOST, PASTE RIGHT BELOW AND THEN CHANGE THE IP4 ADDRESS TO THE IP6 ADDRESS. DONT FORGET IP6 IS IN BRACKETS [ ]
I also noticed that often when I paste in vhost or apache files while in cwp, the end of the file is cut. Not sure why, but you want to keep and eye on that.
You will need to restart httpd of course. If it fails then you lost part of the file when you were editing. In that case go to the backup files /usr/local/cwp/.conf/backups/file_editor_backups
I also went into httpd file and uncommented the listen ip address and changed it to my ip4 address.
I also copied the listen ip4 line and replace ip4 addy with ip6 addy.
Then I commented the line Listen 80
Restarted httpd with service httpd restart and everything worked fine.
Should look like this in httpd
#my ip4 address below
Listen X.X.X.X:80
#my ip6 address below
Listen [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]:80
#Listen 80
360
Installation / Re: ipv6 errors while setting up
« on: July 19, 2016, 03:09:27 PM »
HERES HOW I MADE IT WORK
IN VHOST CONFIGRUATION FILE I ADDED A SEPARATE WEBSITE FOR IP6. JUST COPY EACH WEBSITE IN VHOST, PASTE RIGHT BELOW AND THEN CHANGE THE IP4 ADDRESS TO THE IP6 ADDRESS. DONT FORGET IP6 IS IN BRACKETS [ ]
IN VHOST CONFIGRUATION FILE I ADDED A SEPARATE WEBSITE FOR IP6. JUST COPY EACH WEBSITE IN VHOST, PASTE RIGHT BELOW AND THEN CHANGE THE IP4 ADDRESS TO THE IP6 ADDRESS. DONT FORGET IP6 IS IN BRACKETS [ ]