Quantcast
Channel: Linux – digitalwhores.net
Viewing all 47 articles
Browse latest View live

PEAR – DB Error: extension not found

$
0
0

Yesterday I had to set up a new server for bunch of sites from 2008 using PHP Pear….

DB Error: extension not found

You might need to add the following line at the end of /etc/php.ini

extension=mysqli.so

 


google pagespeed – centos installation

$
0
0

 

Let’s edit/create google-mod-pagespeed.repo

vi /etc/yum.repos.d/google-mod-pagespeed.repo

and add

[googlemodpagespeed]
name=googlemodpagespeed
baseurl=http://dl.google.com/linux/mod-pagespeed/rpm/stable/$basearch
enabled=1
gpgcheck=0
Let’s install it with yum!
yum install mod-pagespeed
Then we need to restart apache!
service httpd restart

 

This is how we test it…

curl -D- http://localhost/ | head -10

 

[root@sd-hooray webroot]# curl -D- http://localhost/ | head -10
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4328 100 4328 0 0 27929 0 –:–:– –:–:– –:–:– 28103
HTTP/1.1 200 OK
Date: Wed, 12 Sep 2018 15:52:41 GMT
Server: Apache/2.4.6 (CentOS) PHP/5.6.38
X-Powered-By: PHP/5.6.38
X-Mod-Pagespeed: 1.13.35.2-0
Vary: Accept-Encoding
Cache-Control: max-age=0, no-cache, s-maxage=10
Content-Length: 4328
Content-Type: text/html; charset=iso-8859-1

 

 

VirtualBox – Share internet to (linux) VM – MACOSX!

$
0
0

 

On your CentOS edit /etc/sysconfig/network-scripts/ifcfg-enp0s3 and set ONBOOT to yes and add the DNSs… in this case I’m using Google DNS ips.

ONBOOT=yes
DNS1=8.8.8.8
DNS2=8.8.4.4

Should work! 😉

explainshell.com

$
0
0
write down a command-line to see the help text that matches each argument

 

Hello,

This site contains 29761 parsed manpages from sections 1 and 8 found in Ubuntu’s manpage repository. A lot of heuristics were used to extract the arguments of each program, and there are errors here and there, especially in manpages that have a non-standard layout.

It is written in Python and uses bashlex, a bit of NLTK (to find the interesting parts of the manpage), a little d3.js (for the connecting lines graphic) and Flask. It is served with uwsgi and nginx. Source code is available on github.

My name is Idan Kamara and you can contact me at idan at explainshell dot com for any questions or suggestions.

SELinux – Failed to open stream: Permission denied

$
0
0

sudo chcon -t httpd_sys_rw_content_t {path_of_your_project_directory} -R

wp_wfConfig too large

$
0
0

While debugging some bottlenecks in one of my servers…

i’v realised that one of my db queries to Wordfence tables were causing it.

Solution was to… uninstall wordfence – to clean all their tables – anda reinstall it.

After removing it 23:30, CPU usage and Load Average was a significantly reduced.

1panel.hk

Viewing all 47 articles
Browse latest View live