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

1
vote
1answer
28 views

https not recognized by PHP when lighttpd url.rewrite used

I'm deploying a PHP website using lighttpd. To get nice URLs working, I've put this into the configuration file: url.rewrite = ( "^/(?!(wp-admin|wp-includes|wp-content))/(.*)" => "/index.php?$...
1
vote
1answer
113 views

Nginx rewrite rule subfolder 404 error

I cannot figure out how should I setup my index.php file with Nginx rewrite rules that it will work like example below. If I visit the url it gives me 404 error not found instad echo 'hello'. URL: ...
0
votes
0answers
273 views

PHP 5.6 Broken after trying to upgrade to PHP 7

I've tried reinstalling PHP5.6 a dozen times now with sudo aptitude purge `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "` Nothing seems to help. Tried installing PHP7 - no luck. Error I get ...
0
votes
1answer
102 views

Amazon SES not sending to multiple recipients (AWS SDK for PHP)

I've set up Amazon SES on my server. I'm using AWS SDK for PHP. It's version one. Here's the documentation. Here is the code I'm using to send: $to = $_POST['mailto']; $response = $email->...
0
votes
1answer
229 views

Let php PDO work with newest version of PostgreSQL (Debian/Ubuntu)

I installed PostgreSQL and the php PDO driver on my 14.04 Ubuntu like this: sudo apt-get install postgresql postgresql-contrib sudo apt-get install php5-pgsql Which installed PostgreSQL 9.3 and ...
0
votes
1answer
75 views

Php script - Have I been hacked [closed]

Here is the PHP script I have found at the root of each of my website folder. Script name is fcb.php Content is : <? $GLOBALS['_1303753477_']=Array(base64_decode('YX' .'JyYXlfZGlmZl91a2V5'),...
2
votes
2answers
50 views

What are the benefits of connecting to MySQL using PHP-PDO's SSL attribute?

I primarily develop PHP applications using MySQL as my database. Generally, the server running the application is on the same box as the MySQL server, though not always. I was reading in the PHP docs ...
1
vote
2answers
43 views

Wordpress plugin update/install failure

I've been reading all sorts of information all over the web on this topic. I just installed Wordpress on my Fedora 22 box, x64. The installation went perfectly, I'm able to access the site, but cannot ...
0
votes
1answer
42 views

SLES12 PHP without buying modules

We need to install a SUSE Enterprise Linux 12 Server with PHP and Apache. I've read about the "Web and Scripting Module" - but we just need the server for testing purpose of a live server. And I don'...
0
votes
0answers
33 views

Is it safe for nginx-php-fpm servers in a pool to share config files on a GlusterFS volume?

I'm in the middle of setting up a pool of webservers using nginx with php-fpm. I'm using a glusterfs volume to hold php/html files. I've realized that keeping things like php.ini, and sites-enabled ...
0
votes
1answer
72 views

Cron Job error says ioncube is not installed when it is

I have a website (mivprofit.com) and this website works with a script that requires a couple of cron jobs to run once a day. I have a cron email set and whenever the cron job runs this is the email ...
1
vote
0answers
62 views

Install Pecl PAM authentication Apache

I want to setup horde webmail 5.2.9 on my server (debian Jessie). When I go to localhost/horde/test.php I get: PAM Support (PECL extension): No The PAM PECL extension is required to allow PAM ...
0
votes
1answer
90 views

Postfix won't send PHP mail() function from form

I got postfix to send me emails from my server via console using echo "body example" | mail -s "subject example" my@email, but when I try to send an email from my website via mail(), the php function, ...
0
votes
0answers
458 views

Weird CLOSE_WAIT statuses at standard PHP application

I am asking for help regarding tcp problems on a webserver serving a web application built in PHP. The client is a standard html/js page viewed in the web browser. This client sends Ajax requests ...
1
vote
1answer
69 views

How to expire image and force reload in Apache only when file in server changes

I have a PHP application running on an Apache2 server. I started off with HTML5 Boilerplate, and the .htaccess includes "1 month" expiry policy for all images. For example: ExpiresByType image/jpeg ...
0
votes
1answer
53 views

php files(Symlink) are displaying as text

This is not same other question like "php file is displaying text or not executing". In my case, the php files are indeed working fine. However the files(symlink) to the php files are not working. ...
0
votes
2answers
187 views

FPM binary for PHP cli [closed]

The newest Synology NAS DSM 6 version has a strange PHP set up. The command line binary is PHP version 5.6.11 with almost no enabled modules and the tokenizer part is not compiled into it. But when ...
1
vote
0answers
67 views

Apache user directory refuses connection when I enable PHP module on OS X 10.11

I'm trying to configure the user director /Users/username/Sites in Apache. If I comment out the PHP LoadModule it works fine, and somehow PHP7 is even loaded. Problem is that I need to use PHP5, but ...
0
votes
0answers
47 views

How to run a php script under Window's Task Scheduler that outputs a CSV file

I need to run a php script that queries my DB and outputs the results as a CSV file. I have the script to produce the CSV and it worked perfectly when run on web browser. I just need to figure out how ...
1
vote
1answer
123 views

IIS 8 with PHP 5.6: WinCache VS Zend Op Cache

Zend Op Cache is compiled by default on PHP5.5+, but IIS encourages use of WinCache for opcode caching. what is the extension that will give me the best performance and stability on IIS? there are ...
0
votes
2answers
42 views

How to allow use of fopen and getimagesize on urls without schemes e.g. // instead of http:// [closed]

I set open_basedir in the site conf. but I noticed errors "open_basedir restriction in effect" when using getimagesize with uri that start with // instead of http:// how to allow this? Can adding /...
0
votes
1answer
54 views

Server reached pm.max_children setting

I am running a WordPress website under Nginx and FPM. In case of traffic it kills the php process and website stop working for all the user. Here is what i found from the log. Is there any way that ...
0
votes
0answers
25 views

Run Python Selenium Script from PHP (Apache Server)

I've written a python script that uses Selenium to automate some functions for a web application that I'm managing, which uses a headless Chrome instance as the browser running the scripts. Only ...
0
votes
1answer
106 views

PHP exec() over UNC path on Windows

My environment is Windows Server 2012 R2, IIS 8, Active Directory, and a file share. IIS, AD, and the file share are all separate VMs. I have a website, www.example.com, set up in IIS. The ...
0
votes
1answer
22 views

What happens when you make a HTTP request from 1 HTTP server on a VPS to another HTTP server on the same VPS?

I have 2 HTTP servers running on 1 VPS. If I make a HTTP request from 1 to the other. What happens exactly? Does it go through the internet and back? Or is it handled within the VPS? Hosting: Digital ...
0
votes
1answer
97 views

PHP not able to connect to MySQL

I just compiled PHP 7.0.4 on a Fedora 23 box, created a test script to connect to MySQL on localhost and all I get is: Error: Unable to connect to MySQL. Debugging errno: 2002 Debugging error: No ...
0
votes
0answers
11 views

IIS rewrite rule - How to omit 'index' text from website name when website opened in browser

I am using below IIS rewrite rule for index.php page of website. <rule name="INDEX"> <match url="^(.*)index$" /> <action type="Rewrite" url="index.php" appendQueryString="true" /> &...
0
votes
1answer
109 views

PHP CURL does not support RTMP protocol

I am trying to fetch RTMP url using PHP CURL, but unfortunately php curl says >Protocol "rtmp" not supported or disabled in libcurl I have installed rtmpdump and upgraded CURL to 7.47.1 latest stable ...
0
votes
1answer
57 views

nginx seems to use wrong php service

i wanted to increase my max. upload file size and install cURL to php5-fpm today. I have installed a LAMP stack on my Ubuntu 14.04. But the changes doesn't take any effect after reloading/restarting ...
1
vote
1answer
34 views

Ubuntu / CentOS - PHP5 imap ssl

I was wondering now, I have developed a Helpdesk System, than uses the PHP imap library to connect to configured mailbox's and "pull" the mails through and create tickets based on the content. But ...
0
votes
0answers
38 views

How to debug php-cgi.exe ruins my windows server 2012R2 cpu?

I have server 2012r2 with php 7.0.4 (x64/32 - no diff) Problem is that process php-cgi.exe use a lot of cpu. cpu Server is on 2 virtual cpu and 4 gb ram - so it should handle at lest 50-100 users ...
0
votes
1answer
84 views

nginx php-fpm how to disable log warnings?

I've a setup with nginx + php-fpm. I found in my nginx error log a lot of PHP Warning messages like this: 2016/03/17 20:57:23 [error] 23002#0: *114868 FastCGI sent in stderr: "PHP message: PHP ...
0
votes
2answers
77 views

Symfony Project Nginx

Heey all, I'm trying to host my symfony project but i'm getting a 500 error back from nginx. The error log doesn't show anything. Yet the access log does show something: 46.243.152.13 - - [17/Mar/...
0
votes
0answers
57 views

Host Multiple Apache/PHP Websites on a Single Server and Protect Them From Eachother

My company hosts about 20 websites that all have somewhat mediocre traffic. At any given time there are likely to be 5-6 simultaneous users across all sites with that number going as high as 50 after ...
0
votes
1answer
64 views

I can't avoid 504 gateway time-out

In order to avoid the nginx 504 gateway time-out, I've tried to do this in the beginning of my PHP code: set_time_limit(0); Also, I've tried to raise the time settings at /etc/php/7.0/fpm/php.ini: ...
0
votes
2answers
105 views

How to detect slow code or plugin

I don't have much experience with WordPress and I don't know where to start. There is a website which is running very very slow. The hosting company helped me to detect that it's because some piece of ...
0
votes
1answer
83 views

Emails failing from sendmail - CentOS 7

My simply PHP script to send mail is <?php ini_set( 'display_errors', 1 ); error_reporting( E_ALL ); $from = "fromaddress@gmail.com"; $to = "toaddress@gmail.com"; $subject = "...
0
votes
1answer
350 views

PHP 7 Module already loaded warnings

I have a machine running Ubuntu 14.04.3 LTS that is deployed via Ansible. I've got PHP 7 installed using Ondřej Surý's PPA for PHP. $ dpkg -l | grep -i php ii libapache2-mod-php7.0 7.0.3-...
0
votes
0answers
12 views

PHP back-end testing using selenium

Is it possible to use PHP for back-end testing combined with selenium server or web-drive? As far as I know that selenium is used for front-end testing only. All back-end testing examples I found is ...
0
votes
2answers
124 views

pdo_mysql is installed but missing in phpinfo

I have a CentOs 6.7 server. I have problem to make pdo_mysql available on apache2. following shows for Command line: myserver$ php -m PDO, pdo_mysql, pdo_sqlite but phpinfo(), shows only PDO and ...
0
votes
2answers
136 views

Setting php_value in VirtualHost on Debian Squeeze Apache 2.4.10 + mod_proxy_fcgi + php-fpm?

After updating our server to Debian Jessie (8.3), I switched Apache 2.4.10 from mpm_worker/mod_php to mpm_event/proxy_fcgi/php-fpm. I have the handoff configured for all virtual hosts as such: # cat ...
0
votes
1answer
39 views

Webserver running very slow

I am going to attempt to post all relevant information to my problem so I don't get downvoted. Any help/guidance will be much appreciated. 2 days ago, my website: http://ianon.info , http://ianon....
0
votes
0answers
87 views

connect() to unix:/tmp/php-fpm.sock failed (2: No such file or directory)

On my vagrant box , centtos 7, i had installed php7.0.3 and nginx 1.9.12. the php config www.conf. this file in the /usr/local/php/etc/php-fpm.d/ directory, Its configuration like this user = www ...
0
votes
0answers
102 views

mod_fcgid: error reading data from FastCGI server

This is my first post here although I often do search and find answers here. This time I've spent a couple of days searching various sites but unfortunately none of the answers in other threads helped ...
0
votes
0answers
41 views

“http_response_code” does not work properly in IIS

I create a web.config in root folder project <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <defaultDocument> <files> ...
0
votes
0answers
33 views

Apache .htaccess give me a No input file specified

I known I'm asking about a well known problem, but I'm not a pro with LAMP stack and the answers I found doesn't fit my issue. This is my .htaccess file: RewriteEngine On RewriteRule myservices/user/(...
0
votes
2answers
45 views

Serving images from two different directories with Nginx

This should be basic... I'm brand new, and no amount of googling and searching stack exchange is helping. I have a website that I want to be able to serve images from, from different directories. I ...
0
votes
0answers
27 views

Server Error 500 Swiftpanel

I have centos 7 VPS 64 bit. I have installed php and it works fine. I installed gamepanelx running php and it works good but the gamepanel swiftpanel is not working; it gives me 500 server error. I ...
0
votes
0answers
13 views

latin1_swedish_ci appears under collation [duplicate]

my site is down and latin1_swedish_ci appears under collation in some of the tables. I'm not a programmer, but I was told that utf8mb4_unicode_ci is normal. The web host says I was infected with ...
0
votes
0answers
15 views

How to find server hacker [duplicate]

I have WHM CPanel and cxs plugin installed to scan for malicious scripts. Today I just got notified that a file has been uploaded to my server: Scanning web upload script file... Time ...