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
2answers
95 views

Webhost similar to Dropbox with PHP Support? [closed]

I have a website that uses PHP. I need to host it online on a webserver that is similar to dropbox. I'm trying to look for features that include: PHP Support Version Control Sync Client (windows) ...
1
vote
1answer
77 views

PHP - Memcached - Libmemcached - Handle cache server outage

I am working on ensuring our app degrades gracefully in case of a complete cache outage, which is highly unlikely, as we have minimum of at least 3 cache nodes to add to the cache pool, by way of ...
2
votes
1answer
49 views

NginX/Varnish and Auto Caching

Let's say we have a wordpress site example.com On our site, there are multiple products. Urls look like this: example.com/products/product-1/ example.com/products/product-2/ ...
-4
votes
3answers
72 views

cronjob or similar to open a local php file including query [closed]

How do I open the following file with cronjob correctly every 5 minutes: /var/www/mysite/folder/foo.php?query=1 I tried myself but i just did not get it working... i tried with /usr/share/php5 , ...
0
votes
2answers
222 views

PHP stopped working after upgrading from 5.3 to 5.5 using PPA

I had PHP 5.3 working on an old server that my company uses. I have PHP 5.5 working on my AWS server. Both of the servers are Ubuntu. My application is working fine on my AWS server. But when I ...
0
votes
0answers
49 views

LIVE Video Streaming with Nginx + PHP-FPM / Process Timeout

I have a live video streaming in my server using nginx + php. the php file reas a live streaming and it directly sends it to the client. I have only one problem. The problem is that i want each ...
1
vote
1answer
239 views

CentOS 5 : error in installing php-imap

can someone please help me with this CentOS 5 question? I am trying to install php-imap, i tried yum install php-imap but I am getting the following output: Loaded plugins: fastestmirror, ...
-2
votes
1answer
39 views

installing php gd on ubuntu on a vps server [closed]

I was working on localhost with resizing images and everything was great. Then I uploaded to my server and things got interesting. After searching around, looks like I have to enable php-gd on my ...
1
vote
0answers
68 views

Requests are never queued after pm.max_children with Nginx and PHP-FPM

As soon as a pool reached pm.max_children, Nginx starts timing out when trying to send new requests to PHP-FPM. "max listen queue" is always 0 in the php-status page. PHP-FPM 5.5.16 Nginx 1.6.1 ...
1
vote
2answers
134 views

PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/apc.so'

I have updated my php from 5.3.3 to 5.4.31. I have a Debian 6 Squeeze. PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/apc.so' - /usr/lib/php5/20100525/apc.so: ...
0
votes
1answer
32 views

Override PHP options with .htaccess, DSO works (suPHP doesn't)

I am using .htaccess in a sub directory as below: php_value apc.cache_by_default 0 But this throws an error, if i use DSO, then it works. I understand with suPHP I have to ovveride with a php.ini ...
0
votes
0answers
259 views

Enable Soap for PHP 5.5.x on CentOS 6.5

Unfortunately I have to support soap on my server for the Fedex webservice. I recompiled PHP enabling support and it works via CLI but not PHP-fpm. They both point to the same ini file and both show ...
0
votes
1answer
199 views

Installing PHP 5.2.17 from WHM/Cpanel server by replacing 5.4.31

Recently we purchased a dedicated server with WHM/Cpanel. The PHP version installed on the server is 5.4.31. But i want to downgrade the pHP version from 5.4.31 to PHP 5.2.17 as to run some old ...
0
votes
1answer
68 views

Having CORS Issues with Apache/Wordpress

I have enabled CORS in Apache, here are the headings I am seeing when loading the site: HTTP/1.1 200 OK Access-Control-Allow-Methods: GET, POST, OPTIONS Access-Control-Allow-Origin: * Cache-Control: ...
0
votes
1answer
116 views

PHP - Centos OpenSSL error

i'm currently having a problem with OpenSSL on my Centos 6.5 Server. it ran perfectly fine until sunday. and i checked the error_log and i saw this error in the log PHP Warning: PHP Startup: ...
-2
votes
1answer
74 views

High load of RAM but low CPU

I've a dedicated problem.. When I make a load test with ~500 connections, CPU stay low (about 30%) but memory grow up fast ! And I have a 100% used RAM and 50% used SWAP.. An other dedicated with 2x ...
0
votes
2answers
45 views

updating php from 5.3 to 5.5

I'm thinking of updating my php from version 5.3 to version 5.5. I was wondering if 5.5 is backwards compatible with 5.3 as it is 'just' a minor update (eg not 5.3 to 6.4). Am I running into ...
0
votes
0answers
50 views

Cannot get libcurl-devl on OpenSUSE 11.3

I have a server running OpenSUSE 11.3 that I can't really upgrade to a newer version of OpenSUSE (it's a managed appliance). I have some PHP shell scripts that need to run on the server that have a ...
0
votes
3answers
76 views

Securely executing system commands as sudo from PHP

Is it possible? I have written a command line tool in PHP for creating new environments for our company. It creates system users, directories, databases, VHosts and restarts apache, amongst other ...
-1
votes
1answer
134 views

Memory Ram too high in HTTPD processes

I management two dedicated servers. I use Centos 6 with Plesk Panel. Update: I use Apache with mod_php. On the first server I have a site in Wordpress. I have noticed that my httpd processes take ...
0
votes
1answer
98 views

Deploying Zend Opcache Using Chef PHP Cookbook

I'm new on Chef. I tried writing a recipe that installs Zend OpCache (for PHP 5.4, since its not built-in yet) using Chef PHP cookbook. I tried using the php_pear php_pear "opcache" do ...
1
vote
2answers
47 views

Where should I put my web app so it is private by default but accessible through subdomains?

I have a web application written in PHP that I want to host on an Apache 2.2 server. The tricky part though is that the same web application should be accessible through different subdomains (the web ...
0
votes
1answer
681 views

Install mcrypt for php54 on centos 6.5

I'm completely new to VPS and am trying to install php54 on a centos6.5 server. I've updgraded the php version to 5.4 which appears to work. Currently using php5.4.31 However I now need to install ...
0
votes
1answer
498 views

php-mbstring no package available on RHEL6?

[root@ltfs1968 yum.repos.d]# yum install php-mbstring Loaded plugins: dellsysid, downloadonly, replace, rhnplugin This system is receiving updates from RHN Classic or RHN Satellite. Setting up Install ...
1
vote
1answer
77 views

disabling webtatic repo spitting back errors on centos

I installed the "webtatic" repo for PHP and it's caused nothing but trouble. When I try to run yum --disablerepo=webtatic distro-sync it returns this: Transaction Check Error: file ...
-1
votes
1answer
26 views

Is it possible to upgrade version of php on my remote hosting server? [closed]

I have a hosting server which provides me php version 5.2 but the application made by me require php version 5.4.So is there possible any way how can i upgrade that version of php on my remote server ...
0
votes
2answers
151 views

yum install php-devel amongst other commands returning problems

I run yum install php-devel and it returns this. Typically I'd just run it with --skip-broken, but when I do, it still doesn't do the trick. Available: php-common-5.3.3-22.el6.x86_64 ...
0
votes
0answers
16 views

Issues installing MSSQL extension in IIS

Hello long time lurker first time poster, I'm running PHP 5.4 on IIS and have installed the extensions mssql (SQLSRV30.exe) and activated the extension in the PHP manager. However, whenever I use ...
1
vote
2answers
66 views

After ntpdate update for ubuntu server I always receive the old php file in nginx

The problem with nginX caching happened when I used ntpdate ntp.ubuntu.com to sync my server clock. Now when I request the path http://www.example.com/project/create I receive the old PHP file that ...
-1
votes
1answer
59 views

mail server Best practices PTR and SPF

I have 2 domain names in my server : domain1.com is the main domain that I am using as a nameserver (ns1.domain1.com and ns2.domain1.com) and domain2.com (I am using it to host my web application ...
0
votes
1answer
80 views

Nginx configuration for a PHP custom file handler

I am new to nginx and am learning as I go. I have the following nginx configuration for a blog site I'm trying out. When I go to my site http://example.org/markdown-example.md, it loads the content of ...
1
vote
0answers
56 views

What are the best practices for hardening a hhvm ini file?

In order to improve security, Are there any best practices or "must have" to configure the HHVM settings? Are there any absolutely vital in terms of security? What is recommended for most use cases? ...
2
votes
0answers
76 views

What would cause Apache to return malformed HTTP responses?

I have a Go server that reverse proxies requests to an Apache/PHP server. I have been able to rarely observe that on occasion, the Apache/PHP server will cause Go to produce the following error ...
1
vote
2answers
41 views

Restrict certain hosted sites from sending mail on Ubuntu LAMP server

I host several live sites, and several staging sites on one server that's running Ubuntu 14.04. Most of the sites are wordpress sites, and are using the php mail() function or the PHPMailer class to ...
0
votes
1answer
75 views

.htaccess is not working on Zend server on Windows

I am a beginner to MVC framework in PHP and also to .htaccess file. I use Zend server on Windows OS. My code in .htaccess is: RewriteEngine On RewriteCond %{REQUEST_FILENAME} -d RewriteCond ...
1
vote
1answer
66 views

PHP and Text Area Triggering Mod_Security

I have some text areas in a form that are posted back and stored using PHP / MySQL. However, if a user presses return for a new line in the text area, mod_security is blocking it with the below log ...
0
votes
1answer
223 views

Laravel 4.1 on nginx routes error 404

I am having troubles with the routes of laravel on a nginx Server. It shows a "404 not found" for all the routes, except for the default one, very similar to this problem: ...
1
vote
1answer
53 views

Enable php to execute .php files that start with just <?

I bought a php script on Code canyon, and it was running ok on my localhosts (Xampp), but when i uploaded the files to my server, I noticed that the .php files where not being executed, after some ...
-1
votes
1answer
76 views

Posfix pipe all incoming emails to PHP… NO REWRITING [duplicate]

I'm trying to get Postfix to pipe ALL email coming in on a specific domain to a PHP script. So far I've been able to do this via a tutorial I found on the web and also editing the /etc/postfix/virtual ...
0
votes
0answers
13 views

APC always cache a file even if larger than max_file_size?

Currently running an APC cache, and we want to generally limit file size to 2M, but with one exception. Anyway to specify including a specific file even if larger than max_file_size?
0
votes
0answers
31 views

Restricting access to specific folder per for with Apache and PHP

I believe this question has been fairly asked, but I wasn't able to find an appropriate answer (maybe I googled the wrong keywords). I'm making an hosting system (very basic) on the LAMP stack ...
-2
votes
1answer
227 views

PHP 5.3.3 wrecked up on CentOS 6.5 (32bit) after upgrade to 5.4 and downgrade to 5.3.3

please help me solve this php version problem. I had Centos 6.5 (32bit) and php 5.3.3 pre-installed on it, right before I decided to wreck it! The need to upgrade was this warning: Warning: ...
3
votes
2answers
102 views

mod_fcgid: can't apply process slot after software upgrade

I'm on a shared hosting plan with a Wiki and a Bulletin Board installation. After upgrading the Wiki to the latest release my users are not able to upload files with the integrated "media manager" ...
0
votes
1answer
32 views

Where cURL store files in web server? [closed]

I have a centOS machine using a nginx web server. In my application (php) I use cURL to get a remote file and then send it to the view: $cache_expire = 60*60*24*365; header("Pragma: ...
0
votes
1answer
115 views

Problems with a PHP include from the command line (or cronjob) [closed]

I am trying to setup a cronjob on my AWS EC2 instance. There is nothing wrong with the actual entry in the crontab file but when I try to run the command in the command line I get this response. PHP ...
0
votes
0answers
23 views

Webpage loading blank

My website http://www.markupchop.com not rendering the PHP file in server. Even HTML file also loading blank. But the files like .txt .xml are running properly. For example : ...
1
vote
1answer
2k views

Warning session start - cannot send session cache limiter - headers already sent

I'm having a slight problem and I hope you may be able to help me. I'm not a programmer or a coder but I just want to fix some troubles with my project. Here is the context. I need to install and use ...
0
votes
1answer
395 views

Setting up ubuntu to send mail from PHPMailer

I have a small server, inside the company where I work, which has an app that needs to send email to notify users for different reasons. I'm using PHPMailer to do this. But as I suspected, I need to ...
0
votes
2answers
87 views

Apache web server intermittent stalls

Our SOAP web server is running in PHP on Apache on CentOS and makes heavy use of MySQL. There is heavy demand on the server - most requests are very small and involve only two or three MySQL queries, ...
0
votes
1answer
59 views

Apache Server Not Displaying Site From Correct Directory

I have an apache server setup on Zentyal 3.4/Ubuntu 13.10. I have disabled the default virtual hosts file and enabled one with the following: <VirtualHost *:80> ServerAdmin ...