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

Ubuntu 12.04 unmet dependencies [closed]

I have a VPS which is running plesk, I wanted to use a nginx web server and update the php version but I believe there could've been some sort of conflict with plesk when I tried to install nginx. I ...
0
votes
2answers
60 views

PHP file Upload & execution Prevention

I am security administrator for a shared Linux web hosting. I have done my level best to secure the server in many ways within the possible limitation. Means, As it is shared hosting, there will be ...
2
votes
1answer
56 views

Nginx treating old PHP urls as Files

Having a very hard to trying to figure this out. I have changed my website from another platform to Joomla and now Nginx is unable to handle old urls. My Old Urls were like this: ...
0
votes
0answers
54 views

phpMyAdmin display table Structure Error

I believe that didn't do any setting to the server, or moved its files, but I have the following error when I want to display the table structure: Notice in .\libraries\structure.lib.php#1524 ...
0
votes
3answers
48 views

How to allow PHP to send email only if the FROM address is an existing email account on the server

I have a VPS server. on a previous shared server I remember that PHP would only send mail if the FROM address exists on the server as an email account. I need to know how to limit PHP from sending ...
0
votes
0answers
6 views

Can I apply PHP's open_basedir to socket paths? [migrated]

The PHP manual states: open_basedir (string) Limit the files that can be accessed by PHP to the specified directory-tree, including the file itself. This directive is NOT affected by whether ...
-2
votes
1answer
44 views

PHP website grinds to halt for an hour, then runs fine…how to debug?

I have a PHP website which uses $_SESSION variables. It runs on Apache, Mysql and Ubuntu 14.04 on a very resourceful server (Amazon EC2 - M3.X-large) For some unknown reason, the website virtually ...
-1
votes
0answers
10 views

CentOS using PHP to access network file

I just set up a machine on our local network running CentOS 6. I had some PHP code that worked on our Windows server, but no longer work on this one. The code isfile_exists('//BUFFALO/databases/Daily ...
-2
votes
0answers
16 views

Is this the right way to set up php permission on apache server? [duplicate]

I'm creating a site where I need to make users able to upload images. To gain the access for php to create folders and move files, I had to do some changes to my lamp server. I wanted to stay away ...
-1
votes
0answers
11 views

How can I calculate the hardware I need for a WAMP server? [duplicate]

Hello I need to find a way to calculate what kind of hardware I need to run a WAMP server that will host a SMF forum and a wordpress blog. and expecting about 75 hits/day. What do i need to calculate ...
0
votes
1answer
37 views

PHP `disable_functions()` reports empty

In some PHP code, there is a check to see if shell_exec is in the disable_functions list: $disabledFuncs = explode(',', ini_get('disable_functions')); $isShellDisabled = is_array($disabledFuncs) ? ...
0
votes
1answer
39 views

Enable curl_exec() in a sub-folder

Curl is enabled on the server but curl_exec function is disabled for security reasons. disable_functions = exec,passthru,shell_exec,system,proc_open,popen, ...
0
votes
1answer
39 views

Wordpress mu 404 with LEMP stack + Ispconfig3

I have a Centos dedicated server with Nginx, PHP-FPM and ISPConfig3 as control panel I installed Wordpress in a sub-domain and enabled Wordpress mu : ex.domain.com I added the following rules in ...
0
votes
1answer
92 views

yum dependancy error - looking for the wrong version of php-mysql

So I was trying to upgrade from MariaDB 5.5 to 10.0. (which is essentially MySQL fork) The installation instructions say to yum remove mariadb-server mariadb-common mariadb-compat then re-install ...
5
votes
1answer
198 views

Roundcube & Postfix SMTP: SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:s3_pkt.c

I have a Postfix / Dovecot / Roundcube setup that I use personally, as well as provide to other users. I am attempting to transfer this entire setup to a new box, but having some issues. Mail ...
-1
votes
0answers
10 views

PHP can't connect to PostgreSQL on CentOS 7 [migrated]

I have CentOS 7 running in VirtualBox on OSX. Apache, PHP 5.4 and PostgreSQL 9.2 are all running. But, when my (simple) php-script tries to connect to PostgreSQL it doesn't work: Warning: ...
0
votes
0answers
48 views

How to execute php files from crontab by plesk user

I'm trying to get a php file outside of a web users root to execute from the ~USERS~ crontab file in plesk [/var/spool/cron/username] I can get it to execute from the command line and from the ...
-1
votes
1answer
180 views

The requested package php could not be found in any version

I'm trying to install the latest version of Technic Solder in my Plesk VPS server but composer is failing to detect the php version installed... What cant I do to fix that? My system is running ...
1
vote
1answer
62 views

Install php-soap56w on CentOS 7 x64 not working

I followed the guide located here to install PHP 5.6 with Apache on CentOS 7. Everything went along smoothly. I now need to install PHP-SOAP and it's gave me dependancy conflicts. So I used this ...
0
votes
1answer
21 views

Apache proxy to subdomain (vhost)

I need to proxy to a webserver were I don't have control over it. The problem is that the webserver hosts more than 1 domain and subdomains on the same IP. This means that when I use apache proxy I ...
2
votes
0answers
49 views

nginx with php and two node.js routes

I have two routes i want to pass two node processes(websocket route, angular app), while a 3rd route needs to pass to a php application that acts as a rest api to the angular app. i'm not terribly ...
-1
votes
1answer
41 views

Backdoor:PHP/Shell.P keeps regenerating.Caught by Antivirus. [duplicate]

I have a windows server 2008 with PHP on it and a few Wordpress sites on it. I got a virus some time ago. I thought I had it deleted and everything was fine but after looking at my Quarantine section ...
-5
votes
0answers
58 views

Connect to remote server over VPN via PHP

I have a little problem; I have a Ubuntu-Server located in Germany. On this server i want to run a PHP script which connect to the internet over a VPN. (because i need an IP-Adress from another ...
0
votes
0answers
43 views

How to find which PHP file is opening socket connection? [duplicate]

Apache status page is showing a lot of requests to http://TheServerName.com/wp-login.php coming from 127.0.0.1. This domain is not even active. I suspect that a malicious php script has infected one ...
0
votes
1answer
30 views

Apache process growing despite limiting MaxRequestsPerChild

Server Version: Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips DAV/2 mod_bwlimited/1.4 PHP/5.4.27 mod_perl/2.0.6 Perl/v5.8.8 CENTOS 6.6 PHP handler - DSO The server is running with prefork ...
-2
votes
1answer
38 views

how can I understand if IMagick is installed? [closed]

I install Imagick according this tutorial: http://www.imagemagick.org/script/install-source.php#unix I used this code: function alist ($array) { //This function prints a text array as an html list. ...
1
vote
0answers
97 views

2006: MySQL server has gone away

I am getting 'Lost connection to MySQL server' and '2006: MySQL server has gone away' errors so frequently that the server is unusable. There are questions related to this issue, but none that apply ...
-1
votes
3answers
42 views

pear on CentOS with “No Package” message

I googled for hours to find a solution but couldn't find anything. What can I do with this error? I couldn't install php-pear on centOS 6.5. [root@server ~] # yum search php-pear Loaded plugins: ...
0
votes
0answers
18 views

PHP configure prefix not finding php-config

I am installing phalcon, and while I have my setup working fully I am confused by the configure generated by phpize. Specifically, why do I have to pass --with-php-config - I thought setting ...
1
vote
4answers
108 views

Blocking Invalid HTTP Requests to PHP Application

For the first time in a number of years, I'm semi-responsible for helping out with the server administration of a PHP web application (served out using Apache). We're seeing a number of requests for ...
1
vote
0answers
42 views

PHP mail() function - “from” name overwritten by Exchange Server

I originally posted this on stack overflow but was told it might be better placed here on Serverfault. I am trying to send a very simple email from a php script ...
1
vote
0answers
35 views

config variable php_suffix does not match

I have a php instance on Webuzo (centos-6-x86_64.openvz) in /usr/local/apps/php54/. It already has pecl and phpize in /usr/local/apps/php54/bin/. When installing igbinary with command ...
0
votes
0answers
26 views

How configure apache to allow simultaneous requests from the same ip

I am working on project in Zend Framework 2 using apache 2 (develop on windows, production on linux). All requests sent to server are queued (second start after first ends) locally and on production. ...
1
vote
0answers
22 views

PHP APC Using 2.7MB RAM for file that normally uses 16K

I had a PHP application that was performing poorly. I investigated the situation and determined that APC cache will filling up constantly. I increased the size of the apc cache so that I don't get ...
-2
votes
2answers
75 views

How do i install another version of PhP?

I would like to have installed WHMCS on my dedicated server. (I already have installed apache2) How do I install PhP 5.4 as WHMCS not support PhP 5.5? WHMCS System requirements: ...
0
votes
2answers
56 views

php servers without apache/nginx/cgi stack

In many languages, you build web frameworks from the ground up (i.e. from unix sockets) and layer on abstractions. If I want to build a web framework from scratch in OCaml or C, I first build a socket ...
1
vote
2answers
62 views

Can't connect to MySQL from another server

I have two servers on the same subnet. 192.168.100.1 (mysql) 192.168.100.2 (php) MySQL seems to be running fine on it's box but I can't seem to connect to it. These are both ubuntu boxes and ...
0
votes
1answer
71 views

Does PHP mail function need a mail server? [duplicate]

We recently moved our Drupal sites to a Linode server. One of those sites has a lot of users filling forms. The previous server sent, with no problem, all form registrations to an email address, this ...
1
vote
1answer
36 views

Dont allow to override php.ini values for certain headers as a root

We are having this issues in shared hosting environment. FYI: Under shared hosting environment each user can have a php.ini in their folder to override the global settings. There will be many users ...
1
vote
0answers
50 views

PHP temp uploaded files are not deleted on IIS due to 'Access Denied' for IUSR

When uploading a file by a HTML form to a PHP script, the uploaded file will remain in upload_tmp_dir, even when the request ended and this file was not removed explicitly by the PHP code. Expected ...
0
votes
1answer
148 views

PHP 5.4 PSA-Horde and Plesk 12 - How do I configure Active Sync?

PHP 5.4 PSA-Horde and Plesk 12 - How do I configure Active Sync? Ladies and gentlemen after a lot of hours getting more and more depressiv I hope one of you could help me figure out why my active ...
1
vote
0answers
126 views

PHP running slow on Plesk 12 Windows VPS, IIS7.5, 6 cores, 6gb RAM

I am having an issue where PHP is running very slow on my Plesk 12 Windows VPS. Its a high end VPS with 6 AMD Opeteron (2.4ghz) cores and 6gb RAM. The server runs Plesk 12 on Windows Server 2008 R2, ...
1
vote
1answer
56 views

setting up suPHP with puppetlabs/apache on centos 6.5

I am trying to set up suPHP on a centos 6.5 box with the puppetlabs/apache module. Apache Configuration file { "/var/www/vhosts": ensure => "directory", owner => "root", ...
1
vote
1answer
222 views

nginx - deny all *.php requests except index.php for security reasons

os: CentOS 7 nginx: 1.6.2 httpd: apache 2.4.6 cms: Drupal 7 After my server was compromised I removed all from server, reinstalled OS and soft, and restored data from backup. Now I configure all ...
0
votes
1answer
241 views

Nginx serves php files as plain text (Mod_Rewrite)

Grr.. Okay, I have this problem... So there is no .htaccess (Mod_Rewrite) in Nginx.. So I've converted my .htaccess to a format which can be read and placed in the default.conf. Original htaccess: ...
-1
votes
1answer
76 views

Excluding a directory from a root .htaccess rewrite rule to disallow from caching

On my lamp installation, I have in the root folder "/" (mydomain.org) a wordpress multisite with W3 total cache activated, I have also a sub_dir called "sub" (mydomain.org/sub) with a PHP script ...
0
votes
0answers
72 views

PHP APC cause server crash on Prestashop 1.6

I run Prestashop 1.6.0.9 on a Debian Wheezy dedicated server with Apache2 and PHP 5.4 with APC and 32Gb of memory on the server. The shop perfectly run without using APC, but when I enable this ...
0
votes
1answer
43 views

Serving different charsets per virtual host

On a centos Server 6.5, apache 2.2.15 is it possible to server multiple charsets to different virtual hosts? I know that setting the default Charset is done by adding into the httpd.conf file: ...
1
vote
0answers
69 views

Ubuntu upgrade PHP not working anymore and nor error log

I made a apt-get update, followed by a apt-get upgrade on my Ubuntu (Homestead VM). Since then I can't access my PHP app anymore. I've tried accessing a txt file from my application and this works ...
0
votes
0answers
43 views

Fastcgi error after installing 2 PHP versions on CentOS (6.4 final) & Parallels Plesk Panel (11.0.9)

I installed PHP-Panda on our Cetnos server (6.4 Final) & Parallelels Plesk Panel 11.0.9, and now I got the new PHP versions under /opt/atomic/ and ./php --version works clean inside the specific ...