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
7 views

How to tell php-fpm to send php error log to the nginx error log?

When I am using apache/mod_php, the PHP error will appear in the apache's error log. Now, I am using php-fpm with nginx via fcgi, is it possible to have the PHP error log in the nginx error log as ...
0
votes
3answers
25 views

Apache httpd offline installation on Debian

how can I install Apache HTTPD offline on a Debian Linux distribution? On this case I have no internet access at all on this machine, so I was searching for binary distributions of Apache Httpd and ...
0
votes
0answers
22 views

Script working from test to production server

I am running the following script: http://phprestsql.sourceforge.net/ My test environment is a WAMP server running Apache 2.2.17 and PHP 5.3.4 My production server is running Apache 2.2.14 and PHP ...
1
vote
1answer
23 views

PHP mail function can't send to att.net, MAIL FROM line is incorrect

When web apps on my VPS use the PHP built-in mail function, some domains (like att.net) bounce emails back. /var/log/mail.log reveals: 550 [PERMFAIL] att.net requires valid sender domain (in reply to ...
0
votes
1answer
9 views

Errors getting apache working with fcgi and suexec

I have a Debian 6 server and I was previously using Apache with mod_php but decided to switch to using fcgi instead since Wordpress was somehow causing Apache to crash. I have the following in my ...
0
votes
1answer
20 views

Install PHP 5.2 on CentOS 5.9: undefined symbol php_sig_jpg

I have installed PHP 5.2 from source (we're moving some sites that require 5.2, unfortunately) to a CentOS box. PHP is compiled from source, but when I try to start apache I get the following error: ...
-2
votes
0answers
18 views

Localtunnel won't work through virtualbox [closed]

I've also asked this question on StackOverflow I'm running Ubuntu 12.04 in a virtual machine (Virtualbox, to be specific) on a Windows 7 host. I'm trying to set up a localtunnel (using ...
0
votes
1answer
25 views

safe_mode problems after upgrade from PHP 5.3 to 5.4 with Plesk 11

I just updated my server (running with Plesk 11) from PHP 5.3 to 5.4 via the dotdeb sources. Everything was fine except a few things. I had to disable all safe_modes in several vhosts. Plesk has the ...
0
votes
2answers
27 views

Change php error reporting to hide warnings for specific site only [Debian|Ubuntu]

Imagine a couple of sites-enabled available from /etc/apache2/sites-available. (Only Debian-based distros work like this.) Is it possible to mute warning messages from php scripts from a specific ...
0
votes
1answer
29 views

Any possible side effect to use APC on shared host? [closed]

I'm using a shared host for a CMS site. This shared host has an option to use "APC". I just tried this option on a test site as it can be enabled just by one click on my account page of the shared ...
-1
votes
0answers
23 views

Which file specifics the php executable for php files [duplicate]

I remember seeing a file where every preprocessed Filetype (e.g. PHP) and the matching executable was specified. I can't find that file and I also don't know what to look for when researching. Could ...
1
vote
0answers
24 views

PHP SSI with NGINX

I've got a really old website I'd like try running on NGINX instead of Apache. This site consists of many flat HTML files with sporadic PHP SSIs, such as: <!--#include virtual="/some_file.php" ...
1
vote
0answers
27 views

How can I serve up HTML and JSON with nginx during “maintenance mode”?

I've got an nginx config for a PHP web app and I would like to make it serve an additional purpose, and I can't seem to find a way to accomplish it. My current nginx config does the following: ...
0
votes
2answers
49 views

Cron job to execute PHP command fails with “Could not open input file: php”

I have a dozen or so cron jobs running on my Ubuntu 12.04 server, and I use the Webmin interface to administer them. They all execute PHP scripts. Most I created a while back, and they all work fine. ...
0
votes
0answers
15 views

Wordpress URL String “[0,43391,49586] -> [N] POST http://example.com” Coming from Asian Hosts

My wordpress sites started seeing the URI string shown below. All of the requests are coming from middle east and Asia (mostly Chinese) hosts. These requests generate 404s in my logs. What is this ...
0
votes
1answer
29 views

NGINX + Codeigniter doesnt work can't access controllers and send parameters to controllers

I want to run codeigniter under NGINX but it just doesnt work. I want to be able to send a parameters to controllers methods. But so far I can not even access controller using the address ...
0
votes
1answer
31 views

Can't get Codeigniter URLs working on Nginx

After successfully setting up nginx on my windows, another problem where I am stuck. Though, everything works as usual. I am able to access pages and PHP works fine but problem comes when I try to use ...
1
vote
0answers
28 views

Conflict with 3 different RewriteRules in .htaccess?

I'm using the below in my .htaccess file. There 3 types of redirects: redirect to directory /admin/index.php redirect to specific .php files e.g. /about redirect to user profile page from /John ...
0
votes
2answers
34 views

Can't get php-fpm with Nginx to work

Server: CentOs x86_64 /etc/php-fpm.d/webuser1.conf [webuser1] listen = 127.0.0.1:9001 listen.allowed_clients = 127.0.0.1 user = webuser1 group = webuser1 pm = dynamic pm.max_children = 15 ...
0
votes
1answer
25 views

How can I configure a Ubuntu LAMP web server with permissions like CPanel?

I know how to set up a LAMP stack on Ubuntu pretty well for a single website / single user, but I'd like to allow multiple users to host multiple sites on a single server. This is for different ...
0
votes
1answer
23 views

PHP Not running on specific directories [closed]

Ok. This is a pretty weird error: I made a folder named 'hello' at /etc/apache2/sites-enabled/ with hello.php. Then i created an Alias that told /hello would go to /etc/apache2/sites-enabled/hello. ...
0
votes
1answer
29 views

PHP Fatal error: Maximum execution time of 0 seconds exceeded

I have PHP application that uses pdf2htmlEX and HTMLpurifier to convert pdf documents to text format. Conversion process consist of few steps: 1. uploading book using web browser 2. conversion from ...
-1
votes
1answer
31 views

Send email from linux server through remote linux smtp server using PHP [closed]

Here's my setup Ubuntu Database server that runs scripts that need to be able to send emails Ubuntu Web Server that has sendmail setup on it that used to run scripts that send emails Is what I need ...
-1
votes
2answers
55 views

Directory and files have 775/644 permissions but php says it is not writable?

I think this has something to do with ownership of the folders, but I have a php app that I am trying to get setup and I cannot install it because it tells me the permissions are not correct. I set ...
0
votes
0answers
12 views

Apache Segfaults on OS X at random - how can I diagnose? [closed]

We have been having intermittent Apache crashes on OS X 10.7.5 (Lion Server). These crashes seem to happen at random and we've tried everything to find the cause. The problem may be with PHP or ...
-2
votes
0answers
31 views

Cron job is occupying my server [closed]

I wrote two PHP scripts. First one is adding users to one another system calling its API functions. Another script is connecting to FTP, downloads the file, and analyze it. Tuesday I scheduled two ...
-1
votes
1answer
20 views

SSL secured account section, Subdirectory vs Subdomain [closed]

I'm currently running Drupal on an nginx server, and I also have a separate user account system running on account.domain.com. I purchased a wildcard SSL certificate to protect the login form, but the ...
-1
votes
0answers
17 views

POST data not being sent to iframe in 0,2% of cases on a apache2 / PHP setup

I have an admin page with a form that uses tinymce. The POST data is sent to an iframe that both offers a preview of the changes and saves the data. Sometimes when a users press the submit button to ...
0
votes
0answers
15 views

Manual Compile and Install PHP 5.3 on Fedora 17 [duplicate]

I'm trying to get a php web application running on LAMP on my fedora server. However, this application requires a lower version of php(5.3.8) compared to what's provided by YUM(5.4). Encountered a ...
0
votes
2answers
63 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 ...
0
votes
2answers
21 views

Postfix piping to php issue: “cannot append message to file: cannot open file: Permission denied”

I am having some issues with setting up piping to a php app (WHMCS). The mail is coming to the server however it is bouncing. The maillog shows:- May 15 12:51:14 hostname postfix/smtpd[2123]: ...
-1
votes
0answers
22 views

STRANGE file_get_contents ERROR WITH VARIABLES : No such file or directory [closed]

I can read a line of text from a file OK, but I cannot use those matches with file_get_contents or fsockopen. Yet the text as a typed text and as a variable $url seem identical. i.e., I cannot do ...
0
votes
1answer
29 views

Making Nginx send 4xx/5xx errors from PHP-FPM

I have Nginx setup to reverse proxy all files ending in .php. In some scripts, I check for parameters and send "406 Not Acceptable" as a generic error which needs to be picked up on jQuery/from Ajax. ...
0
votes
1answer
41 views

Is it possible to host a blog externally and have it appear under a /blog/ sub directory

A client has a website built in .NET on a Windows server and their provider will not install PHP and MySQL on it. Is there a way to externally host a Wordpress blog and have it appear in a sub ...
0
votes
1answer
20 views

redis shows an error when class initiated [closed]

Its my fifth day trying to fix this on my mac mountain-lion. I used home brew to install phpredis using this http://www.astonishdesign.com/blog/native-lamp-stack-mac-os-x. By the way home brew was ...
0
votes
1answer
26 views

PHP-FPM Loading Wrong Configuration File

Value of CLI running php --ini Configuration File (php.ini) Path: /usr/local/lib Loaded Configuration File: /usr/local/lib/php.ini Value of phpinfo from my nginx/php-fpm web server page: ...
0
votes
1answer
37 views

Can't get PHP files to work “File not found”

I have nginx installed on my VPS which is running CentOS 6.3 and I can't seem to get any PHP files to work. Here is my nginx.conf file:- user nginx; worker_processes 2; error_log ...
-1
votes
1answer
33 views

Installing Apache + PHP Maually - PHP Not Working? [closed]

Okay, for a specific reason, I want to install PHP + Apache manually instead of using an installer or using WAMP or XAMP Server. To make sure no problems I do conflict with my real PC, im running a ...
1
vote
3answers
20 views

How can I display and log PHP errors on IIS7.5?

I running PHP 5.4.5 on an IIS 7.5 Server (under Win7 64) and i have problems making PHP errors visible. At the moment whenever i have a PHP error the server sends back a 500 error with the message ...
-5
votes
0answers
20 views

how can i solve below this error [closed]

I have Set Cron job but this mail send. How to solve this Set-Cookie: 8fb96888fb5979961736bbe16caef65d=4769b5648352cc98f6133ac0d2e06b22; path=/ P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM" ...
0
votes
1answer
50 views

CentOS 5 with Kloxo (32 bit) - How do I upgrade PHP from 5.3.3 to the latest 5.X.X?

I have a ChicagoVPS server that I chose to use the "CentOS 5 Kloxo (32 bit)" image. I managed to get PHP 5.3.3 installed on the machine, but when I used Yum it installed PHP 5.3.3, and not the latest ...
0
votes
0answers
29 views

Sever Comprimised, what to do to sort it out? [duplicate]

I know this is a rather loaded, and vague question. More so as no server is configured equally. That said I am just looking for some common tactics to helping detect the threat and then containing it ...
-1
votes
0answers
20 views

Server API - Apache 2.0 Handler [closed]

I have website which is build using Apache 2.0 Handler, but cpanel is showing CGI/FastCGI Handler. We have many websites on VPS but we want only one website to use server API as Apache 2.0 Handler ...
0
votes
0answers
20 views

Installing node.js/socket.io alongside Apache/PHP

I have a LAMP setup that I am currently very happy with. It is running an already built PHP application to which I need to add real time notification capability. After hours of research I have ...
1
vote
1answer
23 views

LDAPsearch with SSL Centos- ldap_start_tls, ldap_bind: Cannot contact LDAP

I am working on a integrating LDAP authentication with my PHP Project deployed on a Linux platform. I successfully completed the ldapsearch from command line and from php code for NON SSL connection. ...
1
vote
0answers
27 views

ps x shows weird command: -f html/index.php

Just went to check one of my websites and was greeted by the message: "CGIWrap Error: Real UID could not be changed!". Went in via SSH and tried "ps x" which showed me tons of processes that that ...
0
votes
0answers
28 views

Possible error in httpd.conf? php websites don't work

I have a server running Plesk 10.0.0, today I noticed that my website wasn't working, when I try to view it nothing is shown at all, it was working fine a couple of days ago. I wondered if it was a ...
0
votes
1answer
20 views

Installed Apache2.2 on Debian (squeeze), replacing lighttpd, now all .php files return an error 324

.html files are fine, but .php is a no-go. My Wordpress and MediaWiki are not functioning, I made a page with phpinfo() that isn't working, and I am stumped. My error log shows nothing except for ...
0
votes
2answers
32 views

NGINX - proxying to a different Wordpress site while retaining URL

I currently have two WORDPRESS websites sitting behind an NGINX proxy cache: htxtp://local.example.com htxtp://local.example.org I want to access a URL from the first site but serve it from the ...
0
votes
1answer
16 views

Seting up folder from Apache root directory in other hdd and allow php to write on it

please need help... [LINUX] I'm trying to set up a big photos folder in a new hdd over apache. Before it was: /htdocs/photos now I'm trying to create a virtual directory: <IfModule ...

1 2 3 4 5 97