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
1answer
25 views

PHP files loading very slowly, even if they have no PHP code

Windows Server 2008 R2 Standard IIS 7.5 PHP 5.3.28 FastCGI I have a WordPress blog in a subfolder of an ASP.NET site that has started running very slowly. After experimentation, I've found that all ...
0
votes
1answer
793 views

DNS failure crashing web site - CURL requests

My PHP keeps throwing random errors which relate to slow scripts. nginx/php5-fpm report in their error logs that the child has been terminated due to script timeout. PHP5-FPM slow error log reports ...
0
votes
1answer
40 views

Pass PHP5-FPM errors back to error page script?

My nginx has an error_page setup that throws 500 errors to a PHP page. I wish to display/log any PHP errors that cause this error page to show. When I say display, I mean show in-browser depending on ...
0
votes
1answer
19 views

How to configure SPF and DKIM to prevent mail going to spam folder

x-store-info:4r51+eLowCe79NzwdU2kR0zqpsRfiBoycNOl1Rdc4Wf7430jtHWQcYIrKJBAYArutl6yTQ5VQNWAmHikfoeKC6OfxZYs5RQXt5EONp5Fb+tgLbPo7J+jhd2D/FrCdQyzXUlVTtfPnBo= Authentication-Results: hotmail.com; ...
-1
votes
0answers
17 views

Find and replace string that include space and multiquote (php script) [duplicate]

I've got some bunch of injected script on server see the sciript here : http://pastebin.com/XyrWZhcc in that script is including multiquote, much space, and other character. what my concern is how to ...
-1
votes
0answers
36 views

One PHP script that brings whole server down

We have a WordPress site hosted on Amazon, running Ubuntu and Apache. Occasionally the site becomes very slow and unresponsive. According to newrelic, the server is busy with this PHP script: ...
-2
votes
0answers
20 views

Error when I rsync site to vesta before adding it to the CP [on hold]

Well I rsynced all the sites folders from my old host to one running vestacp with the idea to add them and configure in the VestaCP later. Seems that when the directory with the site is already ...
1
vote
1answer
809 views

php set_time_limit not working with mod_fcgid?

It seems set_time_limit function call has no effect when php is running with mod_fcgid (the default in webmin). Can someone tell me how to make it work?
2
votes
1answer
2k views

apache sendmail: trying to change user “from” address from apache to domain account

I apologize if I am asking a question already answered, but my problem isn't really that I haven't found an answer. I have, in fact, found a half-dozen different "solutions" to my problem, tried them ...
-1
votes
0answers
13 views

Java work from putty but not from php [migrated]

I have very strange problem. I have jar file on my dedicated server. When i call this jar file from putty is work very well, but when i call this script from php this work only sometimes. from putty ...
1
vote
0answers
30 views

Multiple pearl processess all hitting one IP address DDOS source hack? [duplicate]

I have been running at high CPU loads 45 45 45 ish for a while, updated cpanel / apache so far but tracing PID's that are running I find the following all with the same IP.. [code] select(8, [3], ...
1
vote
2answers
41 views

Log API requests via Varnish cache

I have Varnish in front of a standard REST API. Requests must be authenticated with an X-Access-Token header. I now need to keep track of the requests for each resource against the access token that ...
1
vote
4answers
6k views

Trouble installing php memcache extension

I'm trying to install memcache on MAMP but I get the warning below, and when I continue it seems to complete properly. I add the line extension=memcache.so to the php.ini and restart MAMP but ...
-5
votes
0answers
16 views

Unable to Start Mongo module fatal error in xampp [on hold]

I am currently Using xampp for PHP. I installed mongo_db(php_mongo-1.5.7-5.6-vc11) in my '../php/ext' directory and also added extension=php_mongo.dll in the php.ini file.I am using PHP Version 5.6.3 ...
-1
votes
1answer
11 views

What Does 'HELO_LH_HOME' Means In Spamassassin's result?

I'm trying to send emails from PHPMailer using php on my IIS server. But My emails are going to spam, So I've used spamassasin to detect what is wrong? and here is the result: pts rule name ...
3
votes
2answers
982 views

Apache/2.2.20 (Ubuntu 11.10) gzip compression won't work on php pages, content is chunked

I'm running into a problem with a new production server whereto I'm transferring projects. The HTML output of the PHP applications isn't compressed by the Apache mod_deflate module. Other resources, ...
0
votes
1answer
858 views

How to fix Apache from crashing with PHP+Curl on an SSH request?

My Apache process segfaults whenever I call curl_exec() from PHP with an "https://" URL. If I use http instead of https as the URL transport, it works perfectly, so I know curl and the other curl ...
-1
votes
0answers
14 views

Redirect subdirectory to folder out of path

I have a website(legacy code) that I am trying to decipher. On our home page the links point to /content/?page=x where page=x are the $_GET variables in content/index.php. The reason this doesn't ...
-1
votes
0answers
20 views

Multi-user web server with php

I used to setup webserver with suexec and mod_fastcgi for the following reasons: 1. apache starts the php fcgi processes as needed 2. every user runs under it's own linux user and has no access to ...
-1
votes
1answer
35 views

send a command via a website to a windows server

Is there an interface or something else which provides a connection between a website and a windows server to send commands via the website to the server and the server itself perfoms it? I want to ...
0
votes
1answer
799 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 ...
-1
votes
2answers
55 views

How to use .htaccess and .htpasswd for selective redirects & passwords

In my /var/www/ directory I have many directories some like: /var/www/impdata/ /var/www/data/ So can I achieve this: When I go to: www.websitename.com/data/ it should give an 404 error. And when ...
2
votes
2answers
2k views

Adding “HttpOnly” and “Secure” cookie flags on Nginx & PHP

I have Nginx running with PHP and WordPress. Acunetix recommends setting these flags, but they provide no documentation. I have looked around a bit, but I have not seen anything that shows exactly how ...
1
vote
1answer
21 views

How can I monitor resource usage for PHP sites on a per-virtual-host basis on GNU/Linux?

Running a bunch of PHP sites via apache2.4/mod_php on RHEL using the prefork MPM. My apache children are using a fair bit of RAM and lots of CPU. I would like to be able to attribute RAM/CPU use on ...
32
votes
4answers
55k views

how do I upgrade from php 5.3 to php 5.4.6 in ubuntu?

Is there an easy way out to get the latest PHP? I have tried updating my package but none of it has 5.4.6 yet.. if anyone knows on how to do it quickly, can it be shared here? I've tried compiling ...
2
votes
1answer
407 views

Nginx Subdirectory Drupal + other app

I have a drupal app and 2 other app written in php, i want use a rewrite uri for drupal and place drupal in virtual root / and the other by their names ... and use the server cache for the img of each ...
-1
votes
1answer
34 views

red hat - glibc version too low for a lot of needed packages [on hold]

I am running a Red Hat server with the following version: webtatic-release-6-5.noarch **redhat-release-server-6Server-6.6.0.2.el6.x86_64** epel-release-7-2.noarch rpmforge-release-0.5.2-2.el6.rf.i686 ...
0
votes
1answer
26 views

nginx: Append to proxied URL with proxy_pass

I'm dealing with some legacy issues where I have to reconfigure servers hosting a PHP based application. One of the decisions was to move away from Apache onto Nginx. Now the application hosts two ...
1
vote
1answer
6k views

How enable pdo_mysql

I am trying to install SpaceBukkit. I was wondering how I enable pdo_mysql. When trying to setup the MySQL part I get this error: The "pdo_mysql" extension is NOT loaded in your `php.ini`! Make sure ...
0
votes
0answers
95 views

best logic to Load balancing YiiFramework web app

I'm going to launch a Yii framework app next days, and i'm currently searching the best way to deploy it in order to scale and support high traffic. I use Amazon RDS to host the DB, and 2 Memcached ...
0
votes
1answer
2k views

nginx - 403 Forbidden

I've trouble to get aliases working correctly on nginx. When i try to access the aliases, /pma and /mba (see secure.example.com.conf), i get a 403 Forbidden but the base url works correctly. I read ...
-1
votes
2answers
28 views

access hierarchy between php and httpd

The objective is to control access to a php/httpd app, owncloud, to specific identified ip addresses. Both php and httpd appear to have mechanisms to do this, php is through a config.php file with ...
0
votes
1answer
941 views

Unable to install phpMyAdmin via yum (remi)

I'm trying to install phpMyAdmin via remi and it seems like it's missing php-php-gettext: # yum --enablerepo=remi install phpMyAdmin Loaded plugins: amazon-id, rhui-lb Resolving Dependencies --> ...
1
vote
2answers
451 views

How to change php binary location in OSX command line

I'm trying to update where the command line gets the location of the php binary: webserver: /usr/bin cli: /opt/local/bin/php Where can I edit so when I do 'which php' it shows me /usr/bin/php
1
vote
2answers
46 views

Apache 24 not serving PHP on FreeBSD 10

I've been at this for a few hours now. I cannot figure out WHAT is wrong with my configuration. When I navigate to any php file (wordpress installation is the intent), it opens the file for download ...
-3
votes
1answer
31 views

I can't configure php on serwer nginx for BigBlueButton [on hold]

Hi I have problem with configuration a nginx for php, because I have installed BigBlueButton and I would install php in /var/www/bigbluebutton-default. When I add this to bigbluebutton in ...
0
votes
0answers
34 views

PHP+nginx, normally super fast, sometimes %100 504 Gateway Time-out errors

I am running an nginx webserver serving php files with FPM. Normally it works super well and fast, but sometimes though there are periods where all page loads will hang and return 504 Gateway ...
0
votes
2answers
3k views

Warning session start - cannot send session cache limiter - headers already sent

I'm having a slight problem and I hope you may be able to help me. I'm not a programmer or a coder but I just want to fix some troubles with my project. Here is the context. I need to install and use ...
0
votes
1answer
32 views

Differences and dis/advanages between: Fast-CGI, CGI, Mod-PHP, SuPHP, PHP-FPM

There are few different php "wrappers"(?). What are differences between them? Tried to google some, but cant seem to find informations. (mod-php is not googleable). Why might I choose one over ...
0
votes
1answer
797 views

php-fpm returning empty response to nginx

nginx is connecting to php-fpm over fastcgi, using the standard /etc/nginx/fastcgi_params in the location block. When connecting to /.status (php-fpm.ini::ping.path) from the command line with ...
-1
votes
1answer
16 views

Frontend executing PHP page stopes other PHP pages from working? [closed]

I have VMware workstation with Turnkey Linux LAMP, but i had this problem in the past many times so don't think its related to server architecture. I have site setup example1.com where i have 2 PHP ...
3
votes
2answers
1k views

Apache 2.2 + mod_fcgid + PHP 5.4: (104) Connection reset by peer

On a Debian 6 VPS, I'm running PHP 5.4 via mod_fcgid on a couple of different virtual hosts, managed by Virtualmin GPL. At random, I get 500 Internal Server Errors; restarting Apache brings everything ...
-1
votes
1answer
24 views

Random 403 Forbidden error (Apache 2.4)

My Apache 2.4 (CentOS 7) server hosts multiple websites. Sometimes I get a 403 Forbidden (You don't have permission to access file X on this server) error when accessing any of the websites files ...
0
votes
1answer
1k views

Equivalent of PHP setlocale in an APACHE config file

I need to display a date in french locale. A solution is to use setlocale(LC_TIME, 'fr_FR'); But I'm looking to set the locale directly in the configuration of my apache server. In the ...
-1
votes
1answer
16 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 ...
-1
votes
1answer
2k views

Fatal error: call to undefined function session_status() [closed]

When I run my site locally, through xampp, I get no errors and all is well. Once it gets on the apache server I get the error message in the title. Here is my session start: if(session_status() == ...
1
vote
2answers
24 views

“No input file specified” when running php under fastcgi inside chroot under nginx outside of chroot

I have a scenario with nginx/1.4.6 running on Ubuntu 14.04 but with php/5.2.10 inside a chroot Ubuntu 9.10 (Karmic Koala). My issue is that all requests to php files result in the dreaded "No input ...
2
votes
0answers
267 views

PHP 5.5.9 with Apache 2.2 on Windows

Is it possible to run PHP 5.5.9 with Apache 2.2 on Windows? The PHP 5.5.9 package only comes with the php5apache2_4.dll module, which clearly doesn't work with Apache 2.2. I'm having trouble finding a ...
0
votes
1answer
38 views

PHP file downloaded instead of executed with nginx try_files

I'm using Ubuntu 14.10, nginx 1.6.2, php 5.5.12. I have a site set up like this: server { root /usr/share/nginx/www/oliviataussig; index index.php; server_name oliviataussig.com ...
0
votes
2answers
973 views

Apache is sending php files to my browser instead of parsing

I have to set up PHP on an existing web host. I have made a virtual host entry, but for some reason Apache is sending the PHP to the browser instead of parsing.. from googling around it looks like ...