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
217 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
186 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
65 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
102 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
72 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
44 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
43 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
72 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
120 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
83 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
616 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
456 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
72 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
134 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
15 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
58 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
57 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
73 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
50 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
74 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
40 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
67 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
58 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
210 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
51 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
73 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
30 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
220 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
89 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
31 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
102 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
1k 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
345 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
83 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
55 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 ...
0
votes
1answer
78 views

Error establishing a database connection due to curl_setopt

I have a Virtual Server (1 CPU 1020 MB RAM), with Ubuntu 12.04.4 LTS and Apache2, PHP5.5, Mysql, and four web projects inside with a low number of users. It has worked like a charm last year. But ...
0
votes
1answer
31 views

Strange URL in Azure Error Log

Why is this url: http://www.zescience.com, that has nothing to do with my website or Wordpress blog in my RawLogs dump? #Fields: date time s-sitename cs-method cs-uri-stem cs-uri-query s-port ...
0
votes
0answers
50 views

How to write my logic in PHP for an nginx reverse-proxy?

I want to know how can I implement a reverse-proxy using Nginx for protecting (Token Authentication) some servers. One of the obstacles I'm struggling with is how can I establish a relationship ...
1
vote
1answer
339 views

Trying to install php-devel on AWS EC2 server to compile a PHP extension, but getting errors “httpd24 conflicts with httpd-2.2.27-1.3.amzn1.x86_64”

I'm trying to install php-devel on an AWS EC2 server so I can compile a PHP extension. But I get an conflits error. --> Processing Conflict: httpd24-2.4.10-1.59.amzn1.x86_64 conflicts httpd < ...
0
votes
1answer
34 views

Nginx does not have access to centos path

Sorry for the rather confusing title, I am trying to understand this error. I have a php file, inside a folder like site.com/src/app/index.php and this site.com folder is placed in /var/www/html/ in ...
0
votes
2answers
73 views

Why would IIS use two different PHP installs?

I've inherited this Windows Server 2008 server that we use as our primary web server and have lately been running into some oddities. Previously, PHP was installed by just downloading a zip file, ...
2
votes
1answer
109 views

Is there a difference between en_US.utf8 and en_US.UTF-8?

Server info (DNS and IPs removed): cat /proc/version && uname -a && java -version Linux version 2.6.16.33-xenU (*************) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #2 SMP ...
0
votes
1answer
156 views

run multiple instance of same php script from bash

I am running a cron job to execute a php file multiple times per minute like this * * * * * /usr/bin/php /var/www/html/myFile.php >> /var/www/html/cronlog 2> /dev/null * * * * * ...
1
vote
1answer
79 views

suhosin not allowing increase within limit

I am getting a lot of the following error messages in my /var/log/syslog: May 27 10:29:58 ********* suhosin[30143]: ALERT - script tried to increase memory_limit to 2145386496 bytes which is above ...
1
vote
0answers
74 views

Simple php page gives 404 error in Magento

For testing purpose, I created a folder and created a test.php file in my magento site. It contains: <? echo "Hello"; ?> It works on one machine but not another machine. I chmod 777 to the ...
0
votes
1answer
66 views

Nginx+PHP scalability on Windows

I'm trying to understand Nginx+PHP scalability running Windows with, lets say, 100 requests doing a medium-term operations. Analyzing source code I saw: Nginx start a spawns itself several times ...