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

2
votes
1answer
31 views

Segmentation fault when running any PHP

Update: I fixed this by running apt-get upgrade which updated many php packages, it must of been a buggy php extension which is now fixed I have vagrant running homestead (Ubuntu 14.10), when I ssh ...
2
votes
5answers
343 views

Self hosted Wordpress freezes for 20 seconds before sending the page

I have a website with Wordpress and PHPBB integrated - and it's been fine for months.. then all of a sudden, it's unbelievably slow to load. There are no errors in the apache logs, but looking at the ...
0
votes
0answers
18 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 ...
2
votes
1answer
38 views

Permission denied to connect Mongodb with PHP on EC2

I can't connect to the remote EC2 server with PHP because I got permission denied. However I could connect remotely by command line from the same server so it seems the firewall settings are fine and ...
-1
votes
1answer
44 views

Mail being marked as spam by gmail but only from certain addresses [closed]

I am sending the same message through the PHP mail() function using two different addresses in the header. When I send the email with contact@domain.com it is marked as spam by gmail but when I send ...
0
votes
0answers
29 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 ...
-1
votes
0answers
15 views

Clean PHP Installation

I've recently purchased a VPS from Digital Ocean to move one of our more resource & traffic intensive systems to its own box. When including PHP files - I get the error message: Fatal error: ...
1
vote
0answers
24 views

nginx rewrite with php interpreter [closed]

First off, Im new to nginx, I'm switching from apache. I setup a server using the ajenti control panel. I got php working just fine. however when I try to do a rewrite rule I get some strange ...
0
votes
1answer
1k views

Apache fast-cgi and php-fpm on Ubuntu 14.04 - Run PHP File as the owner

I am trying to setup FastCGI and PHP-FPM so that a php file can be executed as the owner of the file. I am trying to replace SuPHP with FastCGI and fpm. Earlier, I had folders with different owners ...
0
votes
0answers
42 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% ...
1
vote
1answer
891 views

Apache2 Segfault - need help interpreting this coredump (suspect cause is memcache / php session related)

Three Apache2 web servers running a PHP 5.2.3 web site. We're using Memcache to cache rendered pages but also as the storage engine of the PHP Sessions. At peak traffic times we're getting Apache ...
0
votes
1answer
99 views

Session created with wrong permissions?

Is there a way to modify the permissions on generated session files? The system is writing the files to /var/session directory correctly, but without the proper access permissions (resulting in no ...
0
votes
2answers
2k views

php-mbstring install - version conflict (Cent OS)

I am running CentOS 6.3 and I need to install mb-string for PHP. When I attempt to do this I get the following: [root@pixelark popups]# yum install php-mbstring Loaded plugins: fastestmirror, ...
1
vote
1answer
199 views

Allow certain users to access a specific directory?

I'm trying to figure out how to allow certain users who are also me to access a directory of files that I want to use for all of my users. The files I want to use are on account1 in the directory ...
0
votes
1answer
14 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
1answer
121 views

PHP cURL call returning error 56 with NSS error -12195

I have an internal server (internal to my network) to which I make a REST API call from my external server. I don't know if it helps but the external server is running php 5.3.6 with cURL 7.19.7. To ...
0
votes
0answers
33 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 ...
1
vote
1answer
25 views

ProxyPassMatch and mod_rewrite order of operation

I've got a situation with Apache 2.4, PHP-FPM and Wordpress Multi user in sub folder mode. All non *.php files work fine in the subfolder, as does the main example.com/subblog/ url, however anything ...
-2
votes
1answer
40 views

Could any kind of code be stored on an external server? [closed]

is it possible to story any code (php html js css ...) on someserver.com/code.file and request it to be loaded onto any website like mysite.com thanks
0
votes
0answers
19 views

Is a Raspberry Pi too slow to use as a web server? [duplicate]

Is a Raspberry Pi 2 too slow to use as a web server to run a php script to edit a file? I'm talking about the Pi2 with 1gb ram and 0.9GHz processor.
-1
votes
0answers
9 views

open_basedir in php wordker [duplicate]

Is there any possibility for setting up open_basedir in my workers in pool.d? I have tried to include open_basedir = /home/xxx/ command, but this is not working for me
0
votes
1answer
1k views

Error 101 (net::ERR_CONNECTION_RESET): The connection was reset.(while selecting multiple columns)

am using apache 2.2.i have written this code when am trying to run it my browser is failing to run it ,it's showing This webpage is not available The connection to localhost was interrupted. Error ...
1
vote
1answer
23 views

Nginx alias with trailing slashes

I have a sub-site working under a parent website like this: http://example.org/sub-site (http://example.org/sub-site/ works too) Everything seemed to work well, including : ./sub-site/sub-section ...
2
votes
1answer
502 views

PHP Threading on Gentoo

PHP on Gentoo supports the threads USE flag. As far as I know, PHP does not support true threading; I am only aware of the ability to fork using pcntl_fork(), but this functionality is provided by the ...
1
vote
1answer
439 views

End of script output before headers: php5

I've inherited the sysadmin role on a server that's running a wordpress website on top of Apache 2.4/Debian. It almost works, but it is issuing "500 internal server error" from time to time. In my ...
0
votes
0answers
16 views

How do I handle an additional PHP version under IIS for a single virtual host? [duplicate]

I already found a step by step solution in this link, however, it seems apply to the entire server while I'm trying to setup for a single virtual host, as the own title says. I only want to know ...
0
votes
0answers
35 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
27 views

Is this a PHP exploit being attempted on my site? [duplicate]

I found these entries in the error logs of my server: [Sat Apr 18 23:43:50.404367 2015] [:error] [pid 30269] [client 104.237.134.70:36344] PHP Warning: fopen(./crond): failed to open stream: ...
0
votes
1answer
1k views

How to give Domain Name to IPs in an Intranet Network

I Know this is a Common topic here but I'm still confused. I have a Windows Server 2003 DHCP/App Server Machine with DNS configured. The Clients are Lubuntu 12.04 Systems. I want to host my PHP ...
2
votes
2answers
3k views

PHP+Apache as forward/reverse proxy: how to process client requests and server responses in PHP?

I'm having a lot of troubles with the proper configuration of Apache mod_proxy.so to work as desired... The main idea, is to create a proxy on a local machine in a network which will have the ability ...
0
votes
0answers
39 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 ...
-3
votes
1answer
34 views

How to upgrade PHP version in multiple AWS EC2-Instance?

Can we upgrade versions in multiple EC2-Instance at the same time? For example let’s say I’ve ELB connecting with two EC2-Instance. Instance A (running PHP 5.3) Instance B (running PHP 5.3) Here ...
2
votes
1answer
73 views

Varnish not caching website which have session

I tried curl -I domainname and here is the response. HTTP/1.1 200 OK Date: Tue, 21 Apr 2015 14:49:09 GMT Server: Apache/2.2.15 (CentOS) X-Powered-By: PHP/5.3.3 Set-Cookie: ...
1
vote
0answers
49 views

Nginx multiple download freeze [closed]

We have a problem with Nginx. We have a filehoster, and our user can download 3 files at the same time. When we start 2 download it's ok, 3 download is slow, 4 download and more is impossible. Do you ...
0
votes
1answer
234 views

PHP version conflict in Amazon Linux EC2 instance

I've lunched a fresh instance from the AWS -> EC2 console panel. After that when I logged into the instance via SSH and executed the following line: (note I executed first the sudo yum update before ...
0
votes
2answers
1k views

Unable to load dynamic library '/usr/lib64/php/modules/ssh2.so' [closed]

When I try to run any php script with my user within shell, I get the following warning: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ssh2.so' - ...
0
votes
0answers
32 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
1answer
99 views

Apache process hang and 100% CPU usage

I have strange problem with Apache (MPM Prefork) and mod_php. Server is running for some time and after random time few process is hang and using 100% CPU. 1741 fileu 20 0 840m 65m 41m R 100.0 ...
3
votes
1answer
207 views

Apache server returns 404 after timeout

Making multiple requests to the server causes a 404 error after about 40-60 seconds. I am using JavaScript to request: example.com/test/location. Apache has mod_rewrite enabled that maps this to the ...
2
votes
1answer
36 views

Upgrading PHP and installing libraries in non-interactive mode

Problem I m trying to install php 5.5 and php5-memcached for my machine which has php 5.3 pre-installed. Also, I can not change default configuration as it is staging box provided for CI.So let's ...
0
votes
6answers
5k views

Can't connect to mysql server (13) using php function

I opened every links google results had thrown to me in regards to this MySQL error. I have been spending hours to get this to work.. I have a web server (apache in centos installed in host B, and ...
-2
votes
1answer
23 views

Configure postfix to run filter only with selected mail else all other mail pass without being filtered

I am running postfix and I'm using ubuntu 14.04. I created php script and i injected it into postfix to filter incoming mail. All run as I wish. But Now I want my postfix to run filter only with ...
0
votes
0answers
40 views

is there a way to determine what process has written a file? linux [duplicate]

The answer marked as duplicate is not related to my question which is very specific. I need to know if there is a command or information stored on linux about how a particular file was written please. ...
0
votes
2answers
145 views

Unable to install PHP on FreeBSD 9.3

I tried to install Php5 on my FreeBSD server I just got, following a tutorial. So first I did cd /usr/ports/lang/php5 then make config didn't change any option there, finally I did make ...
0
votes
0answers
18 views

Linode resource splitting [duplicate]

We would like to move our sites to Linode and I have a theoretical question. Which is the best in speed and why? If MySQL runs on a different machine, is it give better result or worse? 1 option ...
-1
votes
1answer
16 views

Pass ASP as PHP on nginx

I have been trying to parse .ASP files as PHP, but no matter what I try (for hours), it just doesn't work. None of the tutorials/notes I find seem to work for me! Either file(s) get downloaded with ...
2
votes
2answers
74 views

Fail to trigger my php script when mail received by my Postfix

I am running Postfix mail on ubuntu 14.04.1. I want to "trigger a PHP script when Postfix server receives a mail" After investigation and the help of many tuto, . I have configured "postfix" & ...
0
votes
1answer
32 views

NginX Nested Location Issue: Spitting out raw PHP

I've tried hard to understand NginX's logic in location order processing but it still is beyond me, and I suspect that's why I am getting the following issue. I run a SugarCRM instance, which I have ...
0
votes
1answer
42 views

How do you prevent mod_rewrite from decoding a string in the path? [duplicate]

I'm trying to create a restful API using mod_rewrite. I have the rule: RewriteRule v2/(.*)$ v1/index.php?request=$1 [QSA,NC,L] However the path could contain base64 encoded strings (i.e. can ...
1
vote
1answer
34 views

post_max_size will not change, stuck at 128M, other settings work

I am trying to increase post_max_size to 1024MB, I am using ini_get('post_max_size') and phpinfo() to check the setting and post_max_size shows as 128M in both. some phpinfo() on the server: PHP ...