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.

learn more… | top users | synonyms

0
votes
0answers
30 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
0answers
44 views

Match subURIs to index.php file on Apache Passenger

I have the following configuration within a VirtualHost block: #Passenger config DocumentRoot /home/me/railsapp/public <Directory /home/me/railsapp/public> AllowOverride all Options ...
0
votes
0answers
96 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
0answers
21 views

IIS 8.5, PHP5.6 (FastCGI) and Forefront

I've got a Windows 2012 R2 server with IIS and PHP 5.6 (installed from WPI) installed, with Forefront, with real-time scanning enabled. When we saturate IIS with requests to PHP scripts, Forefront ...
0
votes
0answers
23 views

php-cgi is running in multiple threads - but it shouldn't

I have a webserver - Apache (2.2.29) + PHP (in this case 5.4.37) and sometimes, i found PHP processes running in multiple threads. But I believe this shouldn't be possible. The server is used as ...
0
votes
0answers
28 views

No script name passed to php-fpm via nginx/FastCGI

I run a PHP 5.6 instance over php-fpm without a problem (unix sockets and nginx). Today I compiled PHP 7 and also started it as a second PHP instance. While requests get served fine with the PHP 5.6 ...
0
votes
0answers
58 views

.htaccess rules not working or renaming

I am deploying a legacy site on a server running Ubuntu 14.04 version. This site was developed using Symfony framework 1.4 and it was originally deployed at a shared server, thus redirections between ...
0
votes
0answers
81 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
0answers
73 views

View PHP error logs on VM - Vagrant CentOS via Puphpet

I have a Vagrant VM running CentOS, which was built from a puphpet file (config.yaml), and I'm trying to get the PHP error logs setup and accessible. config.yaml - PHP section: php: install: '1' ...
0
votes
0answers
26 views

PHP5 FastCGI too slow Page loading

My Websites loading time is really terrible (too slow) so I started a Benchmark to check what is going on. The CPU is running 100% and Memory usage seems to be good. Read a lot of Documentations and ...
0
votes
0answers
25 views

How to restart EasyPHP from command line

I have a SBS2011 server with EasyPHP 1.8.0.0 installed serving a simple website for company use (not working as a service, but from the GUI provided by EasyPHP). Sometimes MySQL stops and the site ...
0
votes
0answers
29 views

PHP-FPM + Apache (403 forbidden message)

Im having trouble installing php-fpm. When ever I install it and open a php file i get a 403 forbiden status code Looking at the logs is see client denied by server configuration: ...
0
votes
0answers
25 views

Zend Framework 2 Deployment to Zend Server Fails with Runtime Error

I am running WAMP server inside Windows Server 2012 R2 and Apache is listening at localhost:82. I installed Zend Server and have attempted to launch a ZF2 application from Studio to Server. ...
0
votes
0answers
26 views

apache rewrite rule to a file out of DocumentRoot

[Ubuntu14/Apache2.4] I would like to use a Rewrite rule to a file out of DocumentRoot: RewriteEngine On RewriteRule (.*).abc /etc/myproject/myfile.php?File=$1.abc [NC,L] But, I can't because ...
0
votes
0answers
34 views

opcache causing errors: Allowed memory size, and malloc: *** error for object 0x10b4cbaf8: pointer being freed was not allocated

Since I installed opcache I am getting these errors: [Thu Jun 04 17:31:02 2015] [error] [client 127.0.0.1] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate ...
0
votes
0answers
12 views

Apache server not handling load

I have something set up incorrectly on a server and I cannot figure out what it is. The server is an Intel Xeon E3-1270 V2 3.5GHZ with 16gb memory. The software is Apache 2.4 PHP 5.5 using DSO for the ...
0
votes
0answers
34 views

Log Outgoing cURL Requests From PHP?

I currently have PHP set up to log all sent mail messages to a log file, using the following configuration in my php.ini: mail.log = /var/log/phpmail.log And it works incredibly well. It gives me a ...
0
votes
0answers
24 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
0answers
33 views

PHP on Windows - ps_files_cleanup_dir error

I am occasionally getting the following error when loading a PHP page: PHP Notice: session_start(): ps_files_cleanup_dir: opendir(C:\Windows\TEMP) failed: No error (0) in C:\server\default.php on ...
0
votes
0answers
35 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
0answers
57 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
0answers
59 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
0answers
292 views

php mailer SMTP ERROR: Failed to connect to server: Permission denied (13)

I fixed this error on a dedicated cPanel server by allowing outgoing connections on port 465 on iptables. I'm trying on AWS now, but I can't figure out what's wrong. I stopped SELinux and iptables; ...
0
votes
0answers
50 views

Fatal error: Call to undefined function win32_query_service_status()

I want to configure PHP with Apache 2.2 server. But I am getting error when tried to call php_win32service.dll. php_win32service.dll present in C:\Program Files\PHP\ext folder. I am using ...
0
votes
0answers
57 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
0answers
24 views

nginx sends 404 instead of waiting for fastcgi

Our nginx is configured to send thumbnails from a folder. If they don't exist, nginx has to pass the request to fastcgi to generate the thumbnail and send it to the user. If the requested doesn't ...
0
votes
0answers
19 views

Apache bad performance

I have Apache 2.4 on CentOs with mod_php (PHP 5.4). This runs on an Amazon EC2 large machine (m3.large) with a load balancer in front of it. There are 3 requests/second to a PHP file that returns ...
0
votes
0answers
59 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
0answers
38 views

Nginx extensionless PHP rewrite not working

I have been trying to rewrite my php pages so that they display without their extensions in the browser. For example, a link on my server at www.example.com loads a page called about-us.php and in the ...
0
votes
0answers
65 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
0answers
43 views

Is it possible to set the return path to the sender with sendmail?

I'm sending mail with sendmail and PHP. Currently the return path is set to one address for every mail : sendmail_path /usr/sbin/sendmail -t -i -f hello@test.com but I wish that the sender receives ...
0
votes
0answers
50 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
0answers
51 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 ...
0
votes
0answers
31 views

ubuntu shell-script install php5 if files already exist

I have the Problem with a ShellScricpt on Ubuntu, because i use vagrant to setup an webserver and I have synced folders to the php5 folder and extension-folder. When I have files in the Folder before ...
0
votes
0answers
13 views

I'm unable to write unicode on PHP-CLI on the server

I specifically cannot add åäö to php-cli on the ubuntu server. I can write it in the terminal outside of the php-cli, I can create a file test.php and manually write: <?php echo "åäö"; And ...
0
votes
0answers
114 views

Bus error during PHP5 is running a simple script - what?

When working with PHP scripts, I usually do not have to bother with the underlying system. Today, I have to. A PHP script (cronjob) that has worked fine is crashing since 2 days ago. The cronjob mail ...
0
votes
0answers
32 views

php process eating CPU since October

Just noticed that my server CPU is being eaten by php at a regular rate of 50-60%. Worse, this is happening since last October but I can't really remember what I did then to cause. The CPU graph for ...
0
votes
0answers
31 views

Ubuntu 12.04 high cpu usage

This server is ran more than 1,5 year without any problem, until yesterday. I see some wierd processes that i never seen before. But i don't know how i need to be start debugging the problem. I ...
0
votes
0answers
27 views

Folder keeps getting deleted and I can't find out why

I have a Joomla based website running on CentOS, Apache, PHP, MySQL. I am using plupload file uploader to upload the files. I'm uploading the files to /tmp/uploads directory where they are processed ...
0
votes
0answers
107 views

Connect to a WebService through VPN in Linux

I have been given a remote WS. But the provider told me that I can connect to their WS only through a VPN/IPsec. How can I do that? The scenario is this: [user] --- > [My Firewall] -->[My Web ...
0
votes
0answers
31 views

How to Stop IIS editing body of http 201 response? (PHP)

I'm currently implementing a REST service in PHP on an IIS server. Everything is working fine, except that when I have the server respond with a HTTP status code of 201, IIS is prepending a string ...
0
votes
0answers
58 views

Open LiteSpeed permission problems

I recently moved to open litespeed from apache and i can no longer create files. When i do a file_put_contents i get permission errors. lsphp and litespeed both run under user nobody. Doing a chmod ...
0
votes
0answers
52 views

When using Apache mod_php, what's the precedence of loaded php.ini files?

I'm having some troubles with php.ini configuration when Apache executes PHP using mod_php. I can't understand how/the order of configuration files. Here is how phpinfo() Apache section: ...
0
votes
0answers
173 views

php session tracking cookies (multiple session handling on same domain)

I have 2 applications, both have password based login, database,etc., the passwords are different, databases are different, applications present are in different folders. Log into the first ...
0
votes
0answers
47 views

Can't Get Virtual Subdirectory Locations Working in Nginx

I have my webapps each as toplevel directories under /var/www, and ideally need to stay that way.. only one hostname (_), no vhosts, so I want "/" to point to my /var/www/mainsite/, and then I want ...
0
votes
0answers
40 views

Rights issue, extracting a zip archive

I'm in need for some expertise. I've been tinkering a few days at this with fruitless results. I'm trying to write an update script starting out in PHP. PHP will download a zip archive via FTP ...
0
votes
0answers
29 views

Possible have 2 php.ini file or 2 extension_dir in php.ini?

i got Fatal error: Class 'mysqli' not found in C:\apache2triad\htdocs\index.php on line 8 error. I checked php.ini file and saw extension=php_mysql.dll is uncommented.Everything is normal. But in ...
0
votes
0answers
26 views

Disable gd library on a specific website

I am trying to disable gb library on a specific website so it won't affect the other websites which are hosted on the same server. Is it possible to do this with htaccess or is there another way?
0
votes
0answers
39 views

Key and Certificate for Ideal PHP Wrapper

I try to make a Ideal sandbox with a PHP wrapper and Simulator. IDEAL wrapper: https://github.com/PENDOnl/iDEAL-v3.3.1-PHP-Wrapper IDEAL simulator: http://ideal-simulator.nl/ I runned these ...
0
votes
0answers
226 views

json works on localhost but not working on my real server

I have an application that is getting information from my server (online), I have a version of that website in my computer (localhost), The application is working on localhost can get the json, But I ...