Skip to main content

All Questions

Tagged with
0 votes
2 answers
148 views

I lose permission every day at midnight

I require a file at the top of my PHP scripts. The file just has connection object for MySQL: $c->new mysqli('host','usr','pass','db') The file has 400 permission: -r-------- and I keep it in /etc/...
bungee1980's user avatar
0 votes
0 answers
27 views

Solution to phpMyAdmin login problem seems unsafe

I had trouble logging into my myPhpAdmin web interface, so after finding numerous posts suggesting I added my un/pw to the config file like this: $cfg['Servers'][$i]['user'] = 'root'; //mysql username ...
TSG's user avatar
  • 1,953
0 votes
1 answer
106 views

could not find driver QueryException

Had this problem where my website couldn't load, and it was throwing an error: could not find driver QueryException Most answers hinted at uncommenting the ;extension=pdo_mysql.so line in the php.ini ...
Aseli Paul's user avatar
0 votes
1 answer
1k views

Server is slow even though there are enough resources

I'm running about 450 simple webistes using Wordpress Multisite on a VPS with Debian 10. Here are some data about the resources: root@hr711523385:~# free -mh total used ...
Sami's user avatar
  • 275
0 votes
1 answer
196 views

How to install Apache, MySQL, PHP and Composer via apt?

I have Ubuntu 22.04 and I wish to install Apache, MySQL, PHP and Composer altogether via apt. How to install Apache, MySQL, PHP and Composer via apt? Something like this? apt install curl lamp-server^ ...
kature's user avatar
  • 43
1 vote
1 answer
430 views

Why apache server go faster after reboot?

I notice a significant performance gain after a reboot of the server (Apache Debian / PHP / MariaDB Mysql). For several weeks, the page loading time gradually increased from 50 ms to 150 ms and ...
user2267379's user avatar
0 votes
0 answers
365 views

What is eating up my CPU?

I am facing a difficult situation. 100% CPU but I cannot see a singular process using much in top or htop. I run this command: :~$ ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10 %CPU PID USER ...
conanDrum's user avatar
  • 465
1 vote
1 answer
51 views

whole data isn't showing on POST sql injection

sqlmap -u "http://192.168.0.106/get_method/get_data_login/" --data="name=name&password=pass" -D get_method -T user --dump Output : [11:27:40] [INFO] the back-end DBMS is ...
user avatar
1 vote
1 answer
334 views

phpMyAdmin don't have permission to read file

I want to create a secure connection between PHP and MySQL database. In order to do this, I need to store the DB infos in a separated file, with -r-------- permission (readonly for owner). But doing ...
Mattia Monari's user avatar
0 votes
0 answers
606 views

Ubuntu 14.04 - How to update to the latest version of PHP in order to run WordPress 5.4.1

I'm currently running Ubuntu 14.04 and trying to use the latest version of WordPress v5.4.1. When trying to run my WordPress site, I'm receiving the error: Your server is running PHP version 5.5.9-...
tonyf's user avatar
  • 101
1 vote
0 answers
2k views

I have "deleted" /var/log folder. What can I do to repare this mistake?

My / partition vas full, so I needed to make some free space... The quickest solution I've found was to "move" /var/log to another partition and make a symbolic link to it. In fact I did a cp of the ...
fred727's user avatar
  • 133
0 votes
1 answer
529 views

Connect to a mariadb running on host from docker

I am trying to install nextcloud on a pi. So i installed the docker container, and i can access the first visit page. So i want to use mariadb as database backend. Then i typed: host: 192.168.178.62:...
Niwla23's user avatar
  • 23
1 vote
1 answer
682 views

MySQL&PHP - Aborted connection to db: (Got an error reading communication packets)

PHP version 5.6 I have a PHP program (running in CodeIgniter 'CI_VERSION', '2.1.3') looping through 100 items to process. Apache (via Codeigniter) will give me 500 Error and no indication anywhere ...
conanDrum's user avatar
  • 465
2 votes
3 answers
32k views

PHP Fatal error: Uncaught Error: Class 'mysqli' not found in /var/www/html/

I am working with php(7.3) and mysql in linux machine. But I am getting PHP Fatal error: Uncaught Error: Class 'mysqli' not found in /var/www/html/ error in apache2 log file (/var/log/error.log). I ...
Pushpam Kumar's user avatar
0 votes
0 answers
2k views

Wordpress site hosted on Digital Ocean - 100% CPU usage

TL;DR - when there's traffic (around 900) our sites' CPU reaches 100%, slow down and crush. INTRODUCTION Our company holds more than 40 content websites, hosted on Digital Ocean, using Wordpress CMS....
Esthetic Nerd's user avatar

15 30 50 per page
1
2 3 4 5