Questions tagged [php]
PHP is a general-purpose scripting language that is especially suited for Web development. The online manual is an excellent resource for the language syntax and has an extensive list of the built-in and extension functions. Most extensions can be found in PECL.
1,970
questions with no upvoted or accepted answers
0
votes
0
answers
174
views
Nginx server degrades over the course of a day
I am experiencing issues daily with my server slowing down. I believe that it is an issue with nginx or php-fpm giving up at some point and not gracefully recovering. I will include any information ...
0
votes
1
answer
173
views
Finding the security hole that causes creating of /tmp/susu1
We discovered binaries /tmp/susu1 and /tmp/susu2 and executed by the webserver user.
In the logs we have the following entries:
[24/Sep/2015:06:09:34 +0200] "GET /cgi-sys/entropysearch.cgi HTTP/1.0" ...
0
votes
0
answers
250
views
unmet dependencies (held broken packages) can't install php5-gd
I'm running Ubuntu 14.04.3 LTS and trying to install php5-gd php_extension, but getting the following error:
The following packages have unmet dependencies:
php5-gd : Depends: php5-common (= 5.5....
0
votes
0
answers
1k
views
Disable PHP in subdirectory, but allow in parent directory
I'm using multiple virtual hosts on Ubuntu and want to disable PHP in a sub-directory from within httpd.conf (not from .htaccess)
Here is the virtual host's configurations
<VirtualHost subdomain....
0
votes
0
answers
197
views
Zabbix: Trying to monitor run time of a IT Service on my php website
At the moment there's only the SLA of the Service but i wan't to display the running time (uptime) of it.
This is the page:
$sql = "SELECT servicedownid FROM services_links WHERE serviceupid='$hid'";...
0
votes
1
answer
1k
views
How does read/write splitting work with MySQL replication?
I know how to setup a master->slave replication but I am a bit confused on how I would do read/write splitting between the two MySQL servers with a PHP application.
When I have MySQL replication ...
0
votes
1
answer
96
views
Multiple webservers using PHP files stored on only one server?
Is it possible to have multiple webserver nodes that are balanced by a load balancer use PHP files stored elsewhere on the local network? Right now, I have two nodes and static content (uploads, file ...
0
votes
0
answers
779
views
After install mod_security and mod_evasive, php not working
I followed this tutorial ( tutorial.centos.com.my/?p=69 ) and got success to install mod_security and mod_evasive. But php does not run, displays the code in the browser. Insert an index.php file in ...
0
votes
2
answers
99
views
Optimizing Apache + PHP 5
I have a dedicated Ubuntu box with a Plesk panel. My php files take a couple of seconds for the ttfb at random. Most requests are server lighting fast but after a couple of refreshes it waits very ...
0
votes
0
answers
263
views
Server becomes unresponsive while under load
We have a server setup containing 2 webservers, a RDS MySQL cluster and a loadbalancer, on AWS.
The webservers are running PHP and Nginx, and contains multiple services each.
We have a service ...
0
votes
0
answers
409
views
RDS connection blocked despite security group "Allow all traffic, all ports, all IPs"
I can only connect by ssh-ing into my ec2, and then using mysql from the cli.
I can not connect:
ssh-ing into my ec2, and connecting from PHP
mysql command line on my local machine.
I cannot ...
0
votes
1
answer
195
views
phpinfo showing HTTP_ALLOWCOOKIES set to NO - how to change?
We have a dev and live server that were seemingly built identically. However the live server phpinfo() page shows the following in the "Apache Environment" section
HTTP_ALLOWCOOKIES NO
Don't see ...
0
votes
1
answer
765
views
PHP Sockets. Better on multiple ports or not?
I have been running my server for the past 6 years without any problem, but recently ran into some trouble. I am getting a lot of SYN_RECV connections which is pushing the backlog of connecting ...
0
votes
0
answers
2k
views
Suspicious SELinux Audit Log Entries PHP-FPM Write Denied - How to investigate?
I found a few /var/log/audit/audit.log entries which have me a little bit concerned. SEAlert explains them as such:
SELinux is preventing /usr/sbin/php-fpm from write access on the directory ...
0
votes
0
answers
2k
views
Random 502 errors only with phpMyAdmin throgh nginx/php-fpm, with php segfault
I'm using nginx and php-fpm on many servers.
Some have php 5.4 with APC and others 5.5 or 5.6 with opcache.
PhpMyAdmin on servers on 5.4 work without any problems.
PhpMyAdmin on servers on 5.5 or 5.6 ...
0
votes
1
answer
8k
views
Nginx throws a 404 error when trying to access a CodeIgniter (PHP) controller
I'm trying to use CodeIgniter with Nginx. I'm on development so I'm running on localhost. This is my /etc/nginx/sites-avaiable/default file:
# You may add here your
# server {
# ...
# }
# ...
0
votes
0
answers
858
views
How can I access to a database on OpenShift?
I created an application on OpenShift, everything is working and there are no problems. I now need to attach the database that is on OpenShift with my desktop application developed in C #. The desktop ...
0
votes
0
answers
113
views
Amazon RDS Connection Denied via additional user
I just created a new database and user grant all privileges on that user. I don't know what's happening I can't connect by using that user always "Access Denied". But I change to RDS master user it's ...
0
votes
0
answers
643
views
NGINX rewrite IP.Board URLs for Xenforo
I am having a hell of a time getting rewrites working under NGINX to rewrite old URL's to point at a new file.
XenForo's forums offer up this config:
location /ipb/ {
if ($uri ~* /(topic|forum|...
0
votes
1
answer
576
views
Ubuntu 14.04 | Docker: security implications in run NginX in a container
I was surfing around Docker Hub to find the NginX built-in image and i noticed the example commands to run NginX as web server in a container.
I wonder if this way, suggested on Docker Hub, to load ...
0
votes
1
answer
2k
views
Debian server is showing PHP code instead of interpreting it
I was told on stackoverflow to post this question here:
Scroll down to see result of things I've done based on suggestions
I am setting up my first project using Vagrant. I chose the following ...
0
votes
0
answers
733
views
Unable to install php-mongo extension
i'm trying to install the mongo.so extension but it fails.
According to PHP Mongo Installation manual, i should run :
sudo pecl install mongo
tho i get this error :
downloading mongo-1.6.10.tgz ....
0
votes
0
answers
1k
views
E: Unable to locate package php5-apcu
trying to install APCu on Ubuntu:
apt-get install php5-apcu
Getting an error:
E: Unable to locate package php5-apcu
Following someone's suggestion I added:
deb http://packages.dotdeb.org wheezy-...
0
votes
0
answers
1k
views
php.d/*.ini files loading for root but not other users (CLI)
Using PHP from the commandline, as root, everything in the php.d/ directory is loaded as expected:
root@tlsv2-eepweb-01:/home/web>php --ini
Configuration File (php.ini) Path: /etc
Loaded ...
0
votes
0
answers
666
views
Using PostgreSQL at web host, editing pg_hba.conf
I have a domain at HelioHost.org, where I want to connect to a PostgreSQL server, which they supposedly support. But I get the following error message when looking at my PHP files in Firefox:
Warning:...
0
votes
0
answers
215
views
Can you set up a reverse proxy to forward requests based on request content and/or parameters?
I'm trying to set up a reverse proxy that forwards requests to different servers based on content in the body of the request itself.
For example, if the request has a parameter 'type' = 'A', I'd like ...
0
votes
0
answers
91
views
rewrite nginx 2 parameters
server {
listen 127.0.0.1:80;
server_name ap5 www.ap5;
root home/ap5/public_html;
index index.php index.html;
log_not_found off;
access_log logs/ap5-access.log;
error_log logs/error.log error;
...
0
votes
0
answers
441
views
Upgrade SQLite Library for php 5.4
My php version is 5.4
This is what I get in phpinfo
pdo_sqlite
PDO Driver for SQLite 3.x enabled
SQLite Library 3.6.20
I really need to update this driver.
On PHP 5.3 you could do this with ...
0
votes
1
answer
340
views
Installing php 5.5+ on Centos 6 alongside 5.3
How can I install PHP 5.5+ alongside php 5.3 (or 5.4 with the EPEL repository) on a Centos 6 server?
I don't want to remove or supersede the default version, but I would like to have both versions ...
0
votes
1
answer
684
views
PHP 502 Server Error: Problems with code or server?
Not sure if this is the right forum, but I'm hoping someone can help me.
We had a web app running on our web server for a while now. Suddenly it stopped working and displays a 502 error - Web server ...
0
votes
0
answers
998
views
What caused apache to crash?
I have a high load server using php/apache/APC working fine for months. In the last 2 days it has crashed midday. if I restart apache it works so the problem is probably in the apache/php/apc stack.
...
0
votes
0
answers
300
views
Sub Domain Not Working on Nginx server with Apache Handling PHP
I have a domain setup and it is working. However I cannot get any sub domains working. I am trying to setup a sub domain right now for phpmyadmin. I am using Nginx as a reverse proxy for Apache with ...
0
votes
0
answers
881
views
nginx - reverse proxy for Apache and Socket.io on a SSL enabled site
My SSL secured web application consists of Apache server (PHP) and NodeJS (Socket.io). To overcome the issue of blocked ports on various networks, I decided to use nginx for redirecting the requests ...
0
votes
0
answers
1k
views
PDO Connection Error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13)
Currently I am setting up a server to run a web site built on Symfony framework (1.4 version). After tuning Apache2 to work with needed folders, and setting proper permissions on every chunk of path ...
0
votes
1
answer
1k
views
PHP Trouble Configuring SQLSRV
I am working on learning PHP, and one of my goals is to be able to connect to an SQL Server database. I am on a virtual Windows 2008 Server and have 32-bit PHP 5.6.0 installed. I have downloaded the ...
0
votes
0
answers
55
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 ...
0
votes
1
answer
1k
views
cifs shared mount on linux doesn't read folder
I have CIFS share from EMC storage which is mounted on Linux and also on other windows & mac machines.
At Linux server, CIFS share mounted with mount.cifs. My linux server has php code running on ...
0
votes
1
answer
464
views
MySQL process in Sleep command and page is loading after 1 minute
I'm using VestCP which installed for me Apache2.2, PHP 5.5.25, MySQL Percona and Nginx.
I have an app built in ZF1 which works fine on all my development computers but on this server the application ...
0
votes
1
answer
131
views
PHP installation issue on a Windows Server hosted in the Azure cloud
I am trying to setup PHP and MySQL on a Windows Server that is currently in Azure cloud using the information from this blog post
[http://blogs.msdn.com/b/africaapps/archive/2013/11/05/creating-a-...
0
votes
0
answers
2k
views
PHP-FPM Stuck & High IO
Actually on my mutual hosting server I'm using PHP 5.6.3 with one pool.
Sometimes, my php-fpm process is stuck with 50% of WA and I can't kill it, I can't even restart my VM.
I'm using 245MB/3968MB, ...
0
votes
0
answers
856
views
*** glibc detected *** /usr/sbin/httpd: free(): invalid pointer: 0x068977f0 ***
Completely fresh install of CentOS and I've installed PHP, MySQL and Apache with all modules, when I first tried to run the service the following message is in the error_log followed by a memory map.
...
0
votes
0
answers
1k
views
Too many php session files created on one server
We have a web application running multiple instances on different plesk servers. On one server we see quick generation of php session files under /var/lib/php/session directory. Which grows in 100 ...
0
votes
1
answer
724
views
PHP Fatal error
For some reason Apache/PHP is throwing these errors in the error_log. I can't figure out what is causing it?
[Wed May 06 16:39:33.056497 2015] [:error] [pid 14857:tid 140714977302272] [client 165.196....
0
votes
0
answers
428
views
WebServer is inaccessible
I have done an install of httpd and php on my new centos server.
yum install httpd php -y
I have done hundreds of webserver installs but for some strange reason I seem to be having troubles.
When ...
0
votes
0
answers
532
views
php5 fpm consuming lot of CPU
My problem is with php5-fpm processes which are consuming a lot of CPU. Any single request from my website is resulting in CPU consumption of minimum of 20% to the max value. I've observed many times ...
0
votes
0
answers
482
views
Php5-CGI is using 100% CPU on a single hit. How do I track down the culprit?
I ran into a strange problem with a Magento Store. The server was crashing when we hat a little traffic-peak so I checked what was going on. Using htop I found out that PHP5 CGI is using up to 100% ...
0
votes
1
answer
48
views
Find PHP files'creator
I'm on a Linux-like sysop running several websites.
How can I find out the creator of a file? E.g.: uploaded via FTP, created by shell, uploaded with an HTML form, ecc?
Thanks everybody!
0
votes
0
answers
1k
views
Incomplete Page Loads in Apache and PHP
A client frequently loads our site on his iPhone and has troubles with incomplete page loads. I also sometimes on my laptop load up the home page and there's issues with our rotator due to an ...
0
votes
1
answer
500
views
Installing node.js on a PHP App Server (OpsWorks)
I have a PHP App Server running Ubuntu 14.04 with a stack that contains an ELB, the server, and a MySQL RDS. All of this is working as expected, but to finalise my deployment I need to install node.js....
0
votes
1
answer
135
views
nginx one domain few websites
I am having problem with configuration of nginx for few pages on one domain. For example we have example.com. This page allows u to buy some goods, but I would like to seperate pages for continents. ...