All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
69 views

Laravel: Logging messages generated by "error_log(...)" to terminal, while running app in Apache server

The issue is this one: When I run a Laravel app from PHP server, that's it, with php artisan serve, I could see every message generated by "error_log(...)" printed in the terminal, like this:...
24 votes
4 answers
57k views

How to automatically and temporarily block an IP address making too many hits on the server in a short timespan?

One of my LAMP servers was recently brought down by some kind of script bot looking for exploits. From the looks of it, it was making so many requests a second, that it overloaded the RAM on the ...
0 votes
1 answer
32 views

Using old web application with outdated PHP version behind .htaccess folder protection

I probably need a web server with an outdated PHP Version (7.2.34) for an older HTML/PHP/MySQL based web application. Since it's for a manageable closed user group, I exceptionally considered using a ...
0 votes
1 answer
4k views

How do I comletely remove the LAMP -Linux, Apache Mysql and php from ubuntu 18.04 installing in VM

How can I completely uninstall LAMP installed in the Ubuntu 18.04 which is running in the VM, from the code I like to remove and make completely free now.
0 votes
0 answers
25 views

CentOS7 VPS: Install WordPress with existing MySQL and httpd

Requirement: Install Wordpress in CentOs 7 VPS Currently available: Apache : Server version: Apache/2.4.35 (IUS), Server built: Dec 8 2018 02:08:22 MySQL : mysql Ver 14.14 Distrib 5.6.47, for Linux (...
0 votes
0 answers
212 views

New server Apache 2.4 + PHP responds very slowly

a customer asked to migrate their current server with plesk to a HA infrastructure. I've created the structure with haproxy and apache 2.4, but i can see many requests take a looooong time (some of ...
0 votes
2 answers
2k views

Apache rejecting connections (for high number of connections from the same ip)

I'm doing some load test over a LAMP server, but for very high load (high number of connections) tests the it stats to refuse the connections. What I must do for allow all the incoming connections ...
1 vote
0 answers
94 views

PHP upgrade 7.2 to 8 is not recognized by Wordpress

I have a VPS with LAMP stack and I tried to upgrade to PHP 8. When I run php -v the version is 8.1, but WordPress tells me it is 7.2. So I created a php file <?php phpinfo(); ?> which tells me ...
0 votes
1 answer
100 views

How to run updates on Ubuntu command line without upgrading PHP

I run an Ubuntu server on 16.04 using LAMP stack. I ran into an issue last week when updating using: sudo apt update Basically PHP was automatically upgraded from 7.4 to 8.0 during the upgrade &...
1 vote
0 answers
338 views

Number of MySQL connections spikes, but no spike in number of queries

I am running LAMP stack with CakePHP and MySQL compatible AWS Aurora instance. The Aurora instance is set up with a writer and read replica. Using CakePHP request routing, the read replica is only set ...
0 votes
1 answer
126 views

Can undefined variables and notices cause a cpu spike?

We're running centos 6.7, PHP 5 and MySQL 5.5 and Apache 2.2.15. Sometimes we see high CPU usage, mainly caused by MySQL so we take all the logs we can get. We're addressing MySQL optimization ...
0 votes
0 answers
252 views

Memory leak - a simple phpinfo() page increases container memory usage

I have a PHP Info page containing the following: <?php print(phpinfo()); ?> But every time the page is reloaded, a docker stats commands shows that the memory usage goes up by 0.25% I have ...
0 votes
2 answers
2k views

Configuring MongoDB driver on PHP

I have installed LAMPP on Ubuntu 16.04 LTS Server and Mongo DB installed. Now I am trying to install MongoDB driver to PHP. sudo /opt/lampp/bin/pecl install mongo It is throwing me the below showing ...
1 vote
2 answers
316 views

Using ModRewrite to direct subdomains appropriately fails on MediaTemple

I am familiar with modifying .htaccess files but my initial attempts to do so continue to fail. Ultimately, I want to point users to 'imaginary' subdomains (those which do not exist) so that the ...
-1 votes
1 answer
176 views

LAMP stack with AWS performance [duplicate]

I am planning to move my LAMP stack to AWS as the number of users increases. Current estimations suggest, that the Server has to handle roughly 100.000 users accessing the static landing page, out of ...
-2 votes
2 answers
38 views

How to remove connection time out links form RHEL

I want uninstall LAMP from my REDHAT virtual server and reinstall back it again but i don't have internet access on my server and when i uninstall mysql from my server i getting below error please ...
0 votes
1 answer
41 views

PHP Gateway Login Management Systen

Situation: Creating self hosted web services to share with friends on Linux machine. E.g. wiki, ownCloud, etc. Problem: Every web service requires individual logins. Troublesome. Question: Is there ...
0 votes
1 answer
448 views

ubuntu 18.04 lamp stack installed in root partition taking full space

I have a problem on my dedicated server. I wrongly configured it at the beginning, today I got a php error saying that there was no space left on the device. I checked my directories and saw that /dev/...
2 votes
4 answers
3k views

Trouble installing xhprof

I'm currently trying to install the xhprof (PECL) extension onto my Mediatemple gridserver. I'm having a bit of a time of it since write restrictions won't allow the PECL installer to work. I've done ...
1 vote
2 answers
293 views

Need to improve apache and mysql configuration. Current config is crashing server due to RAM maxing out?

Ok, we run a growing auto parts shopping cart. Our server runs slow and is always crashing so we asked our web host to assist us. They sent us these report but I need some advice in how to process it. ...
-1 votes
1 answer
80 views

Empty LAMP Sessions [closed]

I have a LAMP server. Users log in and authenticate against the MySQL database. After successful authentication, session_start() is called. At no point is regenerate_session_id() called. I'm ...
0 votes
1 answer
2k views

LAMP/Apache2: How to set webhook API PHP file as public but outside of project root directory?

I have an AWS EC2 LAMP server (using Apache 2.0 and mod_php5) with a basic directory structure like this: var |-- www | `-- api_folder (NOT public) | | |-- sensitive files (NOT ...
1 vote
1 answer
96 views

LAMP stack, read/write access to only specific directories

I'm considering setting up an AWS micro-instance from which I can run a number of different, unrelated websites. An issue I've had with my shared hosting is that some of my clients run Wordpress ...
31 votes
5 answers
14k views

Why not use a WAMP stack?

This is a canonical question about the use of a *AMPP's stack. I recently had a talk with some experienced people and they suggested to me not to use a WAMP stack, and instead install apache, mysql ...
0 votes
0 answers
185 views

Browser displays gibberish from php

I am moving an existing PHP/MySQL web application to a CentOS 6.8 Apache server. I can view phpinfo() in the browser just fine, but when I attempt to browse home.php, I see a whole page of gibberish ...
0 votes
1 answer
92 views

Large file uploads to S3 - concern to server?

I'm working on a file upload component for a client's website. The files aren't stored on the server, but are uploaded directly to Amazon S3. The maximum file size that they will upload will be ...
-1 votes
1 answer
304 views

Diagnosing Linux OOM Logs

Repeatedly facing mysqld out of memory. Lots of PHP processes spawned, taking up all the swap. [562074.326710] mysqld invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0, oom_score_adj=0 [...
19 votes
12 answers
53k views

How to watch logs in real time via Terminal?

This is a basic question - in the movie "The Social Network" there are several scenes when the young Facebook staff is watching the PHP/Apache server logs on in their TERMINAL in real time. I'm ...
-1 votes
1 answer
98 views

Connection reset when trying to access / with a FallbackResource rule

I am having an issue where my site is working as intended for all urls except the base url of example.com/. When I try to access that in particular I get a connection reset. I have reduced my site to ...
0 votes
1 answer
379 views

Single Thread CPU Performance with PHP

I have a lamp web server running a website that is getting very feature bloated. I have a few pages that are taking 2-3 seconds of CPU time to render the PHP. Most other pages a processed in about .2 ...
-1 votes
1 answer
283 views

LAMP stack with apache and php on one linux server and mysql on a different linux server [closed]

I am pretty new to linux and LAMP setup. I want to setup a LAMP environment with AP on one linux server and M on a different linux server. I have a hard time finding a relevant document with such a ...
0 votes
1 answer
104 views

LAMP server with remote MySQL on CentOS 6.4 [duplicate]

I am pretty new to linux and LAMP setup. I want to setup a LAMP environment with AP on one linux server and M on a different linux server. I have a hard time finding a relevant document with such a ...
0 votes
0 answers
25 views

Someone has put phishing files on my server [duplicate]

Recently i found some phishing files (PHP/HTML) on my server which were previously not present. I deleted them but later another set of files reappeared. This is happening for all the sites hosted on ...
0 votes
1 answer
429 views

Unable to locate where PHP requires extension? [closed]

After php -v I get some warnings about broken PHP extensions. PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php56/5.6.13/lib/php/extensions/no-debug-non-zts-20131226/...
2 votes
1 answer
1k views

Website sometimes takes long time to load

I am running a LAMP system with Ubuntu 14.04. I have 4 cores and 8GB Ram on my server The problem is that when I connect to my website after idle period( 2-3 hours or more) the it takes lot of time ...
1 vote
2 answers
2k views

AWS PHP Curl with SSL

I'm trying to install the Amazon Web Services PHP SDK on my Ubuntu LAMP server. Whenever I run the compatibly check everything but cURL comes back okay. The issue I'm having is that it's reporting I ...
1 vote
1 answer
2k views

php and mysqld processes running for hours. Is this normal?

I have a Jenkins server, which periodically rebuilds a PHP/mySQL application. Every time new PHP code is pushed, this job drops all the tables in the corresponding database and then recreates them ...
1 vote
1 answer
441 views

Exim4 intercept all outgoing mail

I have a LAMP stack set up on a Debian 8 (jessie) machine. I'm trying to find a way of intercepting all outgoing mail sent by PHP (through sendmail) and instead of sending it out, deliver it to my ...
1 vote
2 answers
96 views

Complete LAMP package

I was told to install a LAMP setup on one of our Red Hat servers by my boss. I started by installing the generic httpd, php and mysql packages but he keeps telling me there is one package that ...
0 votes
0 answers
54 views

URL routing for domains

I have a site with 10's of thousands of users. Each user has their own site hosted by me at a subdomain of mysite.com/user1 or as an add on domain at user1.mysite.com or user1.com. This is all done ...
-1 votes
1 answer
802 views

Apache set max Content-Range

The Question: Client asks for: Range:bytes=0- Server responds with: Content-Length:8396748 Content-Range:bytes 0-8396747/8396748 I want to limit that Content-Range to 1MB chunks so the server would ...
8 votes
4 answers
11k views

Profiling Apache+Mysql+Php server - which is the bottleneck?

How do I profile an Linux + Apache + Mysql + Php server for speed? I have a server with a heavily modified MediaWiki instance running on Ubuntu 8.04. It's a bit sluggish - I haven't done anything to ...
25 votes
5 answers
32k views

Can a pool of memcache daemons be used to share sessions more efficiently?

We are moving from a 1 webserver setup to a two webserver setup and I need to start sharing PHP sessions between the two load balanced machines. We already have memcached installed (and started) and ...
0 votes
0 answers
108 views

Ubuntu 12.02 to 14.04, Wordpress tries to use wrong MySQL user on single post pages

I just ran an update to Ubuntu 14.04 on my web server. It went super smooth and I thought all was well, but I just noticed the inner most pages of my Wordpress site throw an unusual error. Access ...
-1 votes
1 answer
144 views

Correct packages to install LAMP on ubuntu

I have read some tutorials about install LAMP and I have seen that they install differents packages for MySQL and PHP. For example to install MySQL: 1. mysql-server 2. mysql-server libapache2-mod-...
3 votes
1 answer
14k views

Which PHP modules are required to install wordpress?

I have 5 wordpress sites. I use hostgator shared hosting for all of them. Now I have decided to switch on to a VPS. I got a unmanaged VPS and configuring it for wordpress. I am following this ...
0 votes
1 answer
669 views

LAMP stack everything seems to be working except sites are blank

I have a LAMP stack, Ubuntu 12.04.3 LTS PHP 5.3.10-1ubuntu3.8 with Suhosin-Patch (cli) (built: Sep 4 2013 20:05:42) Apache/2.2.22 (Ubuntu) MYSQL 5.5.32-0ubuntu0.12.04.1 (Ubuntu) Codeigniter 2.1.0 ...
2 votes
1 answer
74 views

Need advice on documenting LAMP web site

I need to document my web site. It is a music web site on Linux/Apache/MySQL/PHP on AWS. I need to document everything: architecture (5 servers), database (100+ tables), php classes, programming ...
0 votes
3 answers
4k views

Apache 2.4 and PHP 5.4 getting connection reset errors in the browser

In the weekend I upgraded my development web server to Apache 2.4 and PHP 5.4. In my web application which was previously working great on Apache 2.2 and PHP 5.3 it now starts getting these messages ...
0 votes
1 answer
195 views

server out of memory - mysql processes?

I have inherited a system build in PHP (LAMP) and it keeps going offline due to running out of memory every week or so. There's 4gb of RAM available. I've asked my hosting provider twice to look in to ...