Tagged Questions

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

Why not work deploy from bitbucket git repo?

I follow the instruction http://jonathannicol.com/blog/2013/11/19/automated-git-deployments-from-bitbucket/ Server VPS, Ubuntu 14.04 Firstly it was done on test domain and it was ok. I delete ...
0
votes
0answers
5 views

Apache on Centos 6.5 Purge of LDAP cache failed

My logs are filling up with: Purge of LDAP cache failed I have researched as much as I can, and I cannot find a fix. I am running the latest (as of this post) version of Apache, PHP and all of the ...
0
votes
0answers
7 views

How to connect to mysql database on a remote server behind a vpn requiring an ssh tunnel from another remote server using php?

I need to connect to a mysql database with php from a remote server. The mysql database is on another server owned by me. On the mysql server, the only permissions I have is to read and do database ...
0
votes
0answers
21 views

How to deploy a PHP app (e.g. Wordpress) to an open source PaaS without using CLI? [on hold]

This is my first question here, so please be emollient. I have a fresh Ubuntu 14.04 web server and I want to get rid of the LAMP stack and deploy my PHP/MySQL app (e.g. Wordpress) to a recently ...
-1
votes
0answers
12 views

Cannot Install ExpressionEngine Core 2.9.2 [on hold]

I am having difficulty installing ExpressionEngine Core 2.9.2 on CentOS 7 running in a VM using Virtualbox. I downloaded the ExpressionEngine core files to my host computer (Win 7) and FTP'd the ...
1
vote
2answers
22 views

SSL Support for PHP 5.3.3 and Apache

After a solid day investigating why I can't get my application to connect to a remote server over SSL using PHP PDO, I found PDO::MYSQL_ATTR_SSL..., but it seems that they exists only for 5.3.7 or ...
0
votes
0answers
9 views

file_get_contents extremely slow when executing on IIS 7

I just installed IIS with PHP on my Windows Server 2008 R2, and I've noticed when using PHP's file_get_contents() function, it loads extremely slow (7+ seconds). echo ...
0
votes
0answers
15 views

PHP use socket connection when use “localhost”, but when use 127.0.0.1 use tcp

I have a cPanel server where i move the mysql service into another server, all databases has ben moved by mysqldump and it work very well. On cPanel server, where there are all php sites, i just ...
3
votes
0answers
36 views

Odd performance fluctation with php-fpm and nginx

I'm running a load test against a web service. It's a php application running on php-fpm and nginx, with fastcgi. There is a MySQL backend being used for small reads only. Invariably, I'm seeing a ...
0
votes
0answers
8 views

Determining max concurrents on a LAMP stack, and related questions [duplicate]

Consider a basic LAMP stack with clients continuously long-polling it for anywhere from, say, five to 15 minutes at a time. (Note that the period of long-polls is around 30 seconds max; the five to 15 ...
0
votes
0answers
24 views

Using Fake Sendmail with PHP

When attempting to send from PHP via sendmail it just hangs. Using IIS sendmail.ini is setup correctly because from command line I can send a test email via the following sendmail -t < ...
0
votes
0answers
15 views

Duplicate DB and files

I'm creating a group of websites using the CMS Concrete5 has models to be presented to my clients. My idea is that they can choose each one they want and deploy a new subdomain with a model ready to ...
0
votes
0answers
14 views

Shibolleth does pass attribute to server variable in PHP

I am building a SAML based federated authentication mechanism in which the IdP is ADFS 2.0 and the SP is Shibboleth running on Linux. I am able to do the following: Attempt to access a protected ...
-1
votes
1answer
15 views

Varnish with PHP FastCGI / Change FastCGI server port

I want to run Magento with Varnish Cache. So far my PHP runs as FastCGI. I am now trying to set up Varnish. And have a probably pretty stupid question. So as I understand Varnish will listen on port ...
-2
votes
0answers
14 views

how to install pcntl and sysvsem on cpanel and compile them [on hold]

i new to php,, i am using centos 6.5 ,, i need to install pcntl and sysvsem on cpanel.. i tried installing pcntl with /var/cpanel/easy/apache/rawopts/PHP-5.4.34 and added –enable-pcntl to that ...
-1
votes
0answers
28 views

Problems building and using mssql.so php extension in AMPPS server on MAC OSX [on hold]

I have been using an AMPPS server on mac to serve php based websites, accessing MySQL databases. Now I need to connect to an MSSQL database. The AMPPS php installation does not include the mssql ...
0
votes
1answer
15 views

sending e-mails via sendmail using virtual-users

Currently my sendmail send e-mail with following header: Received: (from www-data@localhost) I want this header to be like: Received: (from contact@mydomain) but I am also hosting multiple ...
0
votes
0answers
20 views

use PHP over FastCGI instead of mod_php

I have a debian wheezy server with apache. Generally I want to use PHP as a apache-module. But on some virtual hosts I want to use PHP over FastCGI instead of mod_php. How can I switch off mod_php on ...
1
vote
1answer
23 views

Forbidden - for a php webiste with apache, although it shouldn't be

I can't run a php from my custom location: $ cat /etc/apache2/sites-available/000-default.conf <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot ...
-3
votes
1answer
38 views

How to install Horde Webmail on Ubuntu 14.04? [closed]

Am using Ubuntu 14.04. Am stuck with the following issue: My goal is to install and have running HORDER GROUPWARE 5.2 on my Domain/Hosting: Download on Github: https:// github ...
-2
votes
1answer
16 views

DNS, SPF Web Form, Mail not arriving [duplicate]

I need to be able to receive emails from my php webform on my website, I use Google Apps for the mail recipient and my website is hosted with Godaddy. I receive email from other places and I have ...
1
vote
2answers
25 views

ssh connection failed via php

ssh connection failed via php Trying to connect to ssh using a php script via a webserver. I work on a MacOsX. I changed apache's User and Group (_www:_www) to my own User and Group (). The command I ...
0
votes
0answers
9 views

Setting newrelic.appname dynamically via apache

We use mod_vhost_alias to set up and destroy our websites quite quickly without having to restart apache and we'd like to add New Relic monitoring to each site. We wish to automate the appname ...
-2
votes
0answers
25 views

How to Install PHP 5.3.7 On Godaddy VPS using SSH [closed]

I have bought a New VPS from Godaddy but they supported PHP 5.3.5 and then 5.4.34 but i want PHP 5.3.7 On my VPS so please help me that how can i do this using Putty SSH Client Regards Shahaan ...
-4
votes
0answers
34 views

NGINX setting up multiple Gmail addresses properly [on hold]

I have a NGINX server set up, and everything works, including PHP and PHPmyadmin. But now I want to be capable of sending emails with PHP forms. I got this somehow working with sendmail for only my ...
0
votes
0answers
17 views

Apache 2.2 + PHP 4.3.10 + Windows [closed]

I would like to know How install Apache 2.2.x with PHP 4.3.10 on Windows. I must transfer an old application in php4.3.10 to php5.4 Basicly, I would like use Wamp or EasyPHP. I trie to install ...
-1
votes
0answers
20 views

Permission denied on session_start() [closed]

I have a strange problem with my server that i've never come across before. The problem is i make session data but when i click to a new page the session data seems to get wiped out. I have run a ...
-1
votes
1answer
33 views

Memory on dedicated server is filled out [duplicate]

We are managing a dedicated server (WHM/cPanel) with 4-5(Magento & Woocommerce mostly) accounts in it, along with custom code that will connect those platforms with ERPs. This custom code works a ...
0
votes
0answers
9 views

How to configure simpleSAMLphp as an OpenID consumer?

We are using simpleSAMLphp for single-sign-on and would like to authenticate users via several remote OpenID providers. What are the specific attributes necessary, in the authsources.php openid ...
0
votes
1answer
28 views

Access other partitions with PHP and FTP

I'm wondering how I can access another partition with PHP. I bought a new server and can see data the second hard drive is available but now I want to store the images users upload in that ...
-1
votes
0answers
24 views

Class 'Memcached' not found

I've just upgraded a server from httpd 2.2 to 2.4, and moved our PHP dist from 5.3.9 to 5.5.17. I used Yum! to achieve this, but there were some packages that didn't map properly. First, the biggest ...
0
votes
0answers
15 views

Unable to load dynamic library pdo_mysql.so

I installed php55-* because I needed to upgrade an SDK in my app (which ended up needing PHP 5.4 or later). It seems that pdo_mysql.so cannot be loaded: PHP Warning: PHP Startup: Unable to load ...
0
votes
1answer
29 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
0answers
10 views

Strace php script - ERESTART_RESTARTBLOCK (To be restarted)

I am trying to troubleshoot a WordPress installation that is loading the front page very slow. I straced the index.php file with the -T option to see where the delay occurs and it pauses 2 times for ...
0
votes
0answers
9 views

Shared hosting - force mail return envelope [migrated]

I hope I'm on the right site, because it's a crossover between drupal and server configuration... I am currently using shared hosting for a website and am encountering mail problems while sending ...
0
votes
0answers
30 views

Plesk behavior different when domain is accessed self from inside the server?

Consider the following scenario - www.domain.com is linked to a subscription within Plesk on our dedicated Linux server. From a web browser on a remote machine, www.domain.com resolves to it's ...
0
votes
0answers
36 views

Very long processes to php

I am watching htop and see this processes: find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -ignore_readdir_race -cmin +24 ! -execdir fuser -s {} ; -delete This processes (from 1 to 5) ...
0
votes
0answers
22 views

“Unexpected end of file from server” error while connecting to SOAP Server (PHP)

"Unexpected end of file from server" error is uncommonly received in SOAP Client (Java) while trying to connect to a SOAP Server (PHP - Zend Framework). I can tell the error is shown after some web ...
0
votes
0answers
27 views

php-mysqli extension fails as compilation

When I am trying to build the latest php5-mysqli port I get the following errors back: cd /usr/ports/databases/php5-mysqli && make MAKE_JOBS_UNSAFE=yes install clean ...
0
votes
1answer
32 views

HTTP Error 500 Joomla Site in Windows Server 2012 IIS

I am trying to migrate a Joomla 1.5 website from Linux to Windows Server 2012. I tried to use the Web Platform Install. It installed most components, PHP, IIS Url Rewrite, etc except Joomla itself. I ...
0
votes
1answer
36 views

PHP from repository, upgrade to 5.5

On my Debian VPS I have installed PHP 5.4 from debian wheezy repository. Now I would like to upgrade PHP to 5.5, but I would like to still be able to continue upgrades by apt-get. Is it good way to do ...
0
votes
3answers
35 views

Change Packet Dynamically with Squid

Is there any option in Squid that allow me to change packets dynamically? For ex: I want to send all packet that comming to Squid to my PHP code and change the packet with PHP Dynamically and resend ...
0
votes
2answers
67 views

Upgrade to latest current installed version of PHP [duplicate]

I've just purchased a new VPS and they've, for some unknown reason, installed PHP version 5.3.3. I'm fine with being on version 5.3.X, but I believe the latest version is 5.3.29. I did some Googling ...
0
votes
1answer
21 views

Django and phpBB server [duplicate]

Is it possible to integrate Django web site and PHP forum by some apache directive in httpd.conf file? For example: <VirtualHost *:80> ServerName myserver DocumentRoot home/myserver/www/ ...
-1
votes
1answer
91 views

Is it safe/how to update php (5.3.9)? centos (6.5 final) & parallels plesk panel (11.5.30 Update #47)

I have my own server that is running: php (5.3.3), centos (6.5 final) & parallels plesk panel (11.5.30 Update #47). This server has customers with subscriptions in plesk and their domains set ...
0
votes
0answers
29 views

Installing suPHP with PHP5.5

I'm using PHP 5.5 on my CentOS server and installed using yum and the webtatic repository (package is php55w). I need to use suPHP on my server but I realize that the mod_suphp package available ...
1
vote
1answer
112 views

CentOS 7, SELinux, PHP, Apache: How to set default permissions to new or updated files in an directory?

Server info: CentOS Linux release 7.0.1406 (Core) PHP 5.4.16 (cli) (built: Sep 30 2014 09:44:39) SELinux enforcing Apache/2.4.6 (CentOS) My PHP-Script needs to read from a home directory ...
3
votes
2answers
106 views

Apache/PHP ldap stops working. Requires restart of apache

I currently have a setup where users log in to a website using LDAP credentials. It's all internal so I don't really care a ton about certificates. So, in my /etc/openldap/ldap.conf file I have ...
0
votes
1answer
40 views

Too Many index.php processes with high memory usage

I have wordpress site installed over dedicated server in a separate cpanel account. From couple of days this account experiencing high memory usage, high loadtime and freezing frequently. so I have ...
1
vote
0answers
16 views

Memcached Pool - Outtage causes increased lag in response time

I have multiple cache servers which are added to a virtual pool at the PHP layer via the Memcached::addServers() api. During fault tolerance testing I noticed that taking one of the memcached servers ...