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

1
vote
0answers
19 views

can't find mediawiki after changing apache listening port on ubuntu server

I had mediawiki installed and apache listening on port 9997 accessed via example.com:9997/mediawiki Mediawiki is under /var/www/html/mediawiki. So I wanted to change it to port 80. I changed ...
0
votes
2answers
73 views

SELinux interfering with Apache / PHP [duplicate]

On my installation of CentOS 7, SELinux is enabled by default. This is preventing Apache from properly reading PHP files in the standard /var/www/html document root (the browser is blank when ...
0
votes
1answer
50 views

Accessing server with its own public key

I am using ssh2_connect() in PHP to move files from one server to another. However for the time being there are not two servers and I am just connecting the server to itself. This is setup so that ...
1
vote
2answers
48 views

cron job sending emails in a wrong charset

I have following command in a cronjob: */5 * * * * php /var/www/domain/yii rss/parse It outputs email in a wrong charset: Content-Type: text/plain; charset=ANSI_X3.4-1968 But when i launch that ...
0
votes
0answers
77 views

PHP found cURL version missmatch

I'm tried to upgrade cURL on CentOS from version 7.19.7 on default to a new version on 7.38.0. It's seem like complete but when I checked on phpinfo it's not match. This is a information when I check ...
0
votes
1answer
27 views

Mass disable customers in OTRS

The problem is about OTRS customers. I can't use an external customer backend, so I want to update the customer DB via CSV files. I already wrote a script to add new Customers via ...
1
vote
1answer
50 views

Apache Start Servers, Min/Max Spare Servers Ram Consumption Influence

I have a 1gb ram VPS. If I stop apache I have 400 mb ram free. So the max clients should be (total ram - used ram) / max_service_ram_consumption = 400 / 31. So MaxClients should be 13. These are the ...
-2
votes
3answers
76 views

Find Script start time and uptime in centos

I have a php script (cron job) running on my server which takes up a lot of cpu. I took a look on the code and couldn't find anything wrong. Now I have to check the logs for anomaly and for this I ...
0
votes
1answer
53 views

PHP-FPM does not start on server boot (debian)

I installed nginx and php-fpm on my server. When I run "service php5-fpm status" I only get status: Unknown job: php5-fpm The only way to start FPM for me is to run php5-fpm -D But it won't start ...
0
votes
1answer
17 views

exclude a single user from chroot

I have a chroot setup on my CentOS server, (chroot with no shell access / strictly sftp). Just for reference, the folders are like so: home/sftp_users/%u (root:root 750) home/sftp_users/%u/input ...
0
votes
0answers
12 views

Apache2 + Chroot + PHP global prepend

I have a Debian Wheezy server with PHP 5.4 and Apache 2.4 . I have following problem: User A has home dir /home/user_a with public directory /home/user_a/public_html User B has home dir ...
0
votes
2answers
103 views

Tuning high-raffic nginx and wordpress server

I have been conducting load-tests (via blitz.io) as I attempt to tune server performance on a pool of servers running php 5.5, wordpress 3.9.1, and nginx 1.6.2. My confusion arises when I overload a ...
0
votes
0answers
29 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
22 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 ...
1
vote
2answers
67 views

Nginx server block not working

Disclaimer: Just to clarify, I'm completely new to Linux, but I've configured everything via google searches and personal research. I've got a Debian Wheezy server with LEMP stack that I intend to ...
1
vote
2answers
38 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
23 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
33 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
56 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 ...
-1
votes
0answers
13 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
36 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
18 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
49 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
31 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 ...
0
votes
1answer
17 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
32 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
109 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
31 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
43 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
12 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 ...
-1
votes
1answer
35 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
1answer
32 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 ...
0
votes
0answers
22 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
31 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
17 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
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
44 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
45 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
53 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
39 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
40 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
111 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
22 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
183 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
38 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
306 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
128 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
59 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 ...