All Questions
140
questions
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:...
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
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 ...
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
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
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 ...
-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/...
-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 ...
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 ...
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
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 ...
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 ...
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
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
[...
-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 ...
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 ...
-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
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
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
801
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 ...
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. ...
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-...
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
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 ...
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
...
-7
votes
1
answer
142
views
LAMP Installation and security [closed]
I installed LAMP server on Ubuntu 13.04 using this tutorial word to word. It worked nicely. But I am hardly able to understand these steps :
$ sudo usermod -a -G www-data your_user
$ sudo chgrp -R ...
-7
votes
1
answer
1k
views
2GB RAM VPS with LAMP. How can i improve performance and loading times? [closed]
I recently upgraded my VPS(OpenVZ VT) to 2GB of RAM. Despite the configuration changes i make to the LAMP stack the websites loading times take up to 5-10 seconds to fully load. I use prefork with apc ...
0
votes
2
answers
3k
views
LAMP -> CPU usage of Apache processes too high
I have a LAMP system with CentOS 6.4, Apache 2.2.15, MySQL 5.5.32 and PHP 5.3.26 with APC 3.1.10 using a Drupal CMS (https) on a virtual machine with 4 CPUs and 6 GB RAM.
My problem is the CPU usage ...
1
vote
2
answers
3k
views
No such file or directory
I'm building an EC2 LAMP server for the first time, and so far so good.
Except I can't seem to get the
require 'vendor/autoload.php'; working right
I get this error message whenever I write that ...
1
vote
1
answer
1k
views
Apache2 many CLOSE_WAIT. LAMP. Locating the issue
I've got a LAMP setup running and I seem to have many CLOSE_WAIT connections for apache2 program when I netstat (several hundred). This eventually causes my apache to become unresponsive.
Bellow is ...
0
votes
1
answer
71
views
LAMP not working after php.ini change (even if resetted)
My LAMP machine on Ubuntu 12.04 was working fine, then I tried to modify the etc/php5/apache2/php.ini file opening nautilus through the terminal with sudo nautilus.
I have edited this line:
...
0
votes
2
answers
4k
views
Apache doesn't parse PHP on VHOST while it works on default
I set up a Debian 6 VPS to host couple of small sites and it works beautifully for default one.
Next i created new user and copy/paste default vhost file and enabled it with a2ensite and only ...
8
votes
2
answers
43k
views
What to do after hitting the dreaded 256 max connections Apache Limit
After scratching my head trying to figure out why my site was responding so slowly even though the server resources are fine, I finally checked the Apache status and found:
78 requests/sec - 0.7 MB/...
-1
votes
3
answers
145
views
Looking for modules to increase Apache and PHP Performance [closed]
We are looking for modules that will increase performance for apache and php, we know that the fastcgi module will help our page load times, is there any other modules out there that will give us a ...
0
votes
1
answer
1k
views
PHP error reporting is not displaying
I've appended these in my php.ini and still can't get any php errors to display
display_errors = on
display_startup_errors = on
error_reporting = E_ALL
html_errors = on
log_errors = on
here's a copy ...