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
votes
1answer
28 views

Exim4 server setup and configuration with remote SMTP

I am trying to setup exim4 server with remote SMTP server. Here is my configuration for Exim4. dc_eximconfig_configtype='smarthost' dc_other_hostnames='test.com' dc_local_interfaces='127.0.0.1;' ...
0
votes
0answers
16 views

session.save_handler memcached cluster/failover

I found the following article about clustering memcached; but it uses the memcache php extension and I am using memcacheD extension. Here is the article: ...
0
votes
1answer
23 views

built-in php cannot connect to homebrew mysql through localhost on osx mavericks [duplicate]

trying to install wordpress on osx mavericks (with built-in apache+php and homebrew mysql). mysql -u root # connects php -r 'var_dump(mysql_connect("localhost", "root", ""));' # doesn't connect ...
0
votes
0answers
20 views

Can't change memory_limit on PHP 5.5.9 on Ubuntu 14.04

I'm running PHP on Nginx using fpm. The reported memory_limit is 128M and i cannot change it for the life of me. PHPInfo: Server API: FPM/FastCGI Config file: /etc/php5/fpm/php.ini Memory ...
0
votes
0answers
4 views

Parallels Plesk Apache dedicated server shared IP / A Address serving default page [migrated]

My Website Works when you go to it, however Google Adwords is telling me that my site is redirecting/ not showing up properly to their bots. When you put the site into a website checker like GT ...
1
vote
1answer
88 views

Curl returning error 52 or 56 with REST API call spanning more than 5 minutes

So I have been trying to figure this one out for about a week now. Here is the run down: I use CURL in PHP to pull data from an API. As the response to the API call gets bigger (pulling over 15k ...
0
votes
2answers
32 views

What should I look for when getting a web host for a Wordpress site and php API's?

I am an iOS developer and I want to expand and get a server (not to buy it, web hosting...i guess). I want a place where to put a site(probably WordPress site&blog), and a place where I can put my ...
0
votes
0answers
30 views

Nginx laravel and wordpress

I need to add wordpress under domain.com/blog. I have two folders: /srv/www/laravel/ (laravel 5) /srv/www/blog/ (Wordpress) All domain.com routes should be managed by laravel except ...
-2
votes
0answers
26 views

Apache2 “caching” my pages, while I don't have cache installed [migrated]

just to know, I am not a system admin (I mean this is not my job), and I try to configure my apache just to produce my projects. My system is Ubuntu 15.04 and I have installed Apache2 Apache/2.4.10 ...
0
votes
1answer
30 views

Force PHP mail to avoid using postfix root@myorigin; use /etc/mailname instead?

I recently posted an issue setting up a mail server with postfix and virtual aliases. I solved the problem here: Postfix/Dovecot - Multiple Domains and Multiple Linux Accounts To sum it up, I set ...
0
votes
0answers
41 views

Random 502 errors only with phpMyAdmin throgh nginx/php-fpm, with php segfault

I'm using nginx and php-fpm on many servers. Some have php 5.4 with APC and others 5.5 or 5.6 with opcache. PhpMyAdmin on servers on 5.4 work without any problems. PhpMyAdmin on servers on 5.5 or 5.6 ...
0
votes
0answers
3 views

How to upgrade php-fpm on OSX Yosemite 10.10.04? [migrated]

Currently I have this on my machine Milans-MacBook-Pro:local vaske$ brew install php56 Warning: homebrew/php/php56-5.6.11_2 already installed Milans-MacBook-Pro:local vaske$ php -v PHP 5.6.11 ...
0
votes
0answers
85 views

Connecting to MSSQL db (PDO, FreeTDS, ODBC)

I have an Ubuntu 12.04 server and I'm trying to establish a connection to a MSSQL database. I've managed to connect using tsql and isql, but osql doesn't work and connecting with PHP using PDO also ...
0
votes
0answers
72 views

Nginx throws a 404 error when trying to access a CodeIgniter (PHP) controller

I'm trying to use CodeIgniter with Nginx. I'm on development so I'm running on localhost. This is my /etc/nginx/sites-avaiable/default file: # You may add here your # server { # ... # } # ...
0
votes
0answers
38 views

cURL to my own server crashes apache server

I'm running a apache web sever on Ubuntu 14.04 LTS. I found myself in a situation where I from a php script on one server requested data from another php script on a second server. Both servers are ...
0
votes
0answers
18 views

How can I access to a database on OpenShift?

I created an application on OpenShift, everything is working and there are no problems. I now need to attach the database that is on OpenShift with my desktop application developed in C #. The desktop ...
0
votes
0answers
19 views

Amazon RDS Connection Denied via additional user

I just created a new database and user grant all privileges on that user. I don't know what's happening I can't connect by using that user always "Access Denied". But I change to RDS master user it's ...
0
votes
0answers
22 views

php_network_getaddresses: getaddrinfo failed: Name or service not known openshift host

I'm using openshift host for develop a custom php application, all working good in local but I've a problem to establish a connection with my database of openshift. This is the configuration file for ...
0
votes
0answers
34 views

NGINX rewrite IP.Board URLs for Xenforo

I am having a hell of a time getting rewrites working under NGINX to rewrite old URL's to point at a new file. XenForo's forums offer up this config: location /ipb/ { if ($uri ~* ...
0
votes
1answer
27 views

AWS write permissions, httpd 2.4

Amazon Web Services, Server version: Apache/2.4.6 (Red Hat Enterprise Linux) The apache log reports: [Fri Aug 07 13:53:40.793562 2015] [:error] [pid 10730] [client 149.88.114.40:40800] PHP Warning: ...
0
votes
0answers
21 views

Changes done on EC2 instance took effect after restarting the server

I'm working on a website that i built with codeigniter framework. I'm using amazon EC2 instance since last 1 month. Today while doing some work i found that changes done in PHP files are not ...
0
votes
1answer
41 views

php and mysqld processes running for hours. Is this normal?

I have a Jenkins server, which periodically rebuilds a PHP/mySQL application. Every time new PHP code is pushed, this job drops all the tables in the corresponding database and then recreates them ...
-2
votes
0answers
57 views

True Apache MultiViews on nginx [closed]

I've seen this asked before but is never correctly answered. I am looking for a true MultiViews alternative for nginx. Here is an example of things MultiViews does that I need: /test -> /test.php ...
0
votes
0answers
9 views

Is there a way to do web form input filtering in Apache?

I have to support Apache on a blog which allows anonymous comments. There are many spam entries coming through which the website developer has brought to my attention: POST ...
1
vote
1answer
33 views

Authorization Required! – 401

We have a weird problem and we can't figure out what's causing the issue. Randomly, some of our visitors get the following error: Authorization Required! – 401. This server could not verify that ...
0
votes
0answers
10 views

PHP Manger load super slow in IIS Manager

I have the PHP Manager set up and installed on my Windows Server 2012 box, installed through the WebPI. In the past week or so though, it take a very long time to load, and I cannot seem to figure out ...
0
votes
0answers
21 views

Ubuntu 14.04 | Docker: security implications in run NginX in a container

I was surfing around Docker Hub to find the NginX built-in image and i noticed the example commands to run NginX as web server in a container. I wonder if this way, suggested on Docker Hub, to load ...
1
vote
1answer
66 views

504 Gateway Time-out with PHP on nginx [duplicate]

I am trying to move a PHP Laravel application from my development computer running apache to a server running nginx. I have configured the database connection, and my Laravel app (mostly) responds ...
0
votes
0answers
7 views

Migrating a WordPress site has broken UTF8 encoding [migrated]

I am trying to migrate a WordPress site from one server to another, but on the new server I'm getting incorrect symbols in place of UTF8 (I assume) characters. I dumped the database using mysqldump: ...
0
votes
1answer
46 views

Debian server is showing PHP code instead of interpreting it

I was told on stackoverflow to post this question here: Scroll down to see result of things I've done based on suggestions I am setting up my first project using Vagrant. I chose the following ...
1
vote
0answers
31 views

Apache authentication with PHP file

Is it possible to have authentication in Apache (or for example Nginx/HAProxy/etc) with a PHP file? What I want is the following: User visits a portal (index.php). Apache will look if index.php ...
-1
votes
0answers
20 views

Can i run the two cron jobs for two php files each after 2 minutes difference

I have two files in my project.One file is sending the data via post method in second php file.. I want to run both files each 2 minutes difference. first file take the current data at run time and ...
0
votes
0answers
7 views

PHP module loading fails when calling from client

I have a php file that inserts information into a mysql database on my server. Running the php file form the shell causes no problems and the desired information gets written into the correct table. ...
1
vote
0answers
65 views

Apache downloading PHP files instead of rendering them after uddate form php 5.3.3 to 5.4

I have some scripts that need to use a newer version of PHP, Im running Debian 6 which has PHP 5.3.3 support, I found I could install php 5.4 using https://www.dotdeb.org/instructions/ packages. This ...
0
votes
1answer
58 views

What is my nginx + php server bottleneck?

I am running some siege tests on my nginx server. The bottleneck doesn't seem to be cpu or memory so what is it? I try to do this on my macbook: sudo siege -t 10s -c 500 server_ip/test.php The ...
0
votes
0answers
40 views

Unable to install php-mongo extension

i'm trying to install the mongo.so extension but it fails. According to PHP Mongo Installation manual, i should run : sudo pecl install mongo tho i get this error : downloading ...
0
votes
0answers
41 views

ERROR 500 - Internal server error on PHP Sites

I am running IIS7.5 on Windows Server 2008 R2 SP1. Over a month ago I did the generic installation of PHP (v5.5.11), MySQL and the phpMyAdmin interface and it all worked great. The other day I started ...
-3
votes
1answer
38 views

Run Python and Php under same server

I am trying to run python on main domain and a wordpress blog in sub-directory. Is it possible to do so? Currently the they are running good in sub-domains i.e http://main-domain.com and ...
1
vote
0answers
6 views

Anonymous Authentication Identity Win 2012 r2 security

I have a web app that uses PHP on the back-end, and the PHP executes powershell scripts to reset AD passwords through system calls. EX: shell_exec("powershell.exe -file ...
1
vote
1answer
64 views

Allowed memory size of (whatever) bytes exhausted - Windows PHP

I have been trying to find advice on troubleshooting this issue for while but have been unable to find anything which relates to my situation. I am running PHP 5.6.0 on a brand new Windows 2012 R2 ...
2
votes
1answer
18 views

Launch file after PHP service restart/reload

Is it possible to execute a file after a regular PHP service restart ? service php5 restart I know that i can accomplish this like with service php restart; php -f /path/to/file.php but i don't ...
2
votes
1answer
29 views

PHP/mail is sending emails to wrong mail server

Recently we have switched our email Exchange server from Intermedia to the Office 365. After that change web server (LAMP) is still sending emails to Intermedia. I have check dig MX for our domain and ...
0
votes
0answers
23 views

Combining .htaccess with http.conf to set https and direct all routes to index.php

I'm sure this question has been asked before, and I have tried to understand many of the answers given, however none of them seem to work with my particular set up. If the question can be answered ...
-1
votes
1answer
30 views

PHP session error: Failed to write session data (files)

I have a problem that I cannot resolve. All PHP sessions are stored in the directory /var/lib/php5/sessions/ and session files are stored there. But completely randomly I see the following error: ...
1
vote
1answer
56 views

install sql server driver on ubuntu

I want to connect to sql server database which is placed on a remote server while my php code has been installed on an ubuntu server. I found that it needs to install sqlsrv driver or mssql driver ...
1
vote
0answers
28 views

Environment variables for PHP applications

A PHP application requires me to set several environment variables with things like database credentials, SMTP server, etc. Examples of variables include: ...
0
votes
1answer
26 views

How to point domain/path to a different folders inside the DocumentRoot

I have Apache 2.4 installed on Windows Server 2008. This server is dedecated for one site only i.e. https://subdomain.example.com all my files that will be executed when a user reach ...
0
votes
0answers
8 views

dnsmasq, dynamically add addresses?

Is it possible, with dnsmasq, to dynamically add/remove addresses ? For instance, executing a script from php (it's maybe bad, but theorically, is it possible ?) to add: address=/altern.org/100.2.3.4 ...
1
vote
3answers
40 views

How do I replace self compiled packages (php, mysql, memcahed) with yum version in centos6.5

I have at least 5 development servers (dev, QA, staging) that have php and other packages compiled from source. I would like to remove all of them and update those servers with yum packages. If I can ...
0
votes
0answers
77 views

E: Unable to locate package php5-apcu

trying to install APCu on Ubuntu: apt-get install php5-apcu Getting an error: E: Unable to locate package php5-apcu Following someone's suggestion I added: deb http://packages.dotdeb.org ...