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
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
Let’s edit/create google-mod-pagespeed.repo
vi /etc/yum.repos.d/google-mod-pagespeed.repo
and add
[google–mod–pagespeed]name=google–mod–pagespeedbaseurl=http://dl.google.com/linux/mod-pagespeed/rpm/stable/$basearchenabled=1gpgcheck=0
yum install mod-pagespeed
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
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!
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.
sudo chcon -t httpd_sys_rw_content_t {path_of_your_project_directory} -R
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.