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
3 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
7 views

PHP only processing 1 request/execution at a time [duplicate]

I recently installed nginx and PHP to a windows server I want to use as webhosting. My problem is that I have a script that takes a very long time to run when a user executes it (1-2 mins), and it ...
0
votes
0answers
14 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 ...
-2
votes
0answers
26 views

How to add an SSH user to my Ubuntu 12 server to upload PHP files

I have an Ubuntu 12 VPS and wanted to create a user account to upload and download my PHP code. So when logged in as root I created a user "chris" and then created a directory /var/www/chris I want ...
0
votes
1answer
16 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
13 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: ...
-5
votes
0answers
20 views

PHP fb error posting story to user wall [on hold]

I got an error from last 6 hrs. and stuck on it.While running my code i got this error again and again "Request failed with code: 400, message: {"error":{"message":"(#100) Object Invalid Value: ...
0
votes
1answer
25 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: ...
-1
votes
0answers
25 views

CentOS 7: PHP high CPU usage

I've migrated Observium monitoring platform from CentOS 6.5 to CentOS 7 and I've noticed high CPU usage mostly caused by PHP, the CPU load increase when pooling script is running (poller-wrapper.py). ...
-2
votes
1answer
36 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
28 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
10 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
48 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
61 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
0answers
14 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
43 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
35 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
27 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
16 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
20 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 ...
-2
votes
1answer
23 views

Is there any way to only let php be specific to its directory? (Hard to Explain) [closed]

My company hosts websites and domains. Each domain has its own unique folder associated to that domain made up of "userName-websiteInitals-andTheDate" so it’s hard for users to guess where the folder ...
0
votes
2answers
35 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
11 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
30 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 ...
-2
votes
0answers
22 views

Print Services dont work for Apache and PHP running on Debian and Wamp Print services do [closed]

I have a Debian server running Apache 2 (production environment) and PHP. 5.3 I would like to load printing services (staging dev environment Windows WAMP). In the Windows WAMP setup you are able to ...
-1
votes
1answer
27 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
32 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 ...
0
votes
0answers
25 views

Setup PHP from source and mod_fgcid on CentOS 6, getting permission denied [migrated]

I have compiled PHP from source and installed it to /opt/php/5.5.15/ I have also installed (with yum) httpd, and mod_fcgid. I am trying to configure a virtual host to exec php like this: ...
-2
votes
0answers
24 views

Any web based application to setup sites in Apache HTTP Server? [closed]

Is there any opensource PHP based web application to add/update websites in Apache HTTP Server ? I'm looking for web interface using which sites can be easily added/updated/removed from Apache ...
-1
votes
0answers
15 views

Configure WHM Main IP to redirect to an specific account [closed]

I'm working on a project that has a single domain on a WHM Server. So we access through an IP to the Wordpress Installation that is on the only account (Cpanel): server/~account1/. To be more clear, ...
0
votes
0answers
19 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
35 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
29 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
17 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 ...
0
votes
1answer
20 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
0answers
4 views

18n problemm with paramaters [migrated]

I have integrated in my project Internationalization (i18n) library, and I have some problems with Ist an second segments. I have routes: $route['^(en|ru)/services'] = 'services'; ...
-1
votes
0answers
8 views

To process bounced emails, your version of PHP needs access to the imap_xxx functions (default)."

How can i check whether my windows server 2012 has imap_xxx functions are accessible via my PHP ? I installed PHP via : http://www.microsoft.com/web/downloads/platform.aspx PHP version is : v 5.5
0
votes
1answer
28 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
30 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
42 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
9 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
12 views

How to be able to manage files on /var/www/html/ without having permissions problems? [duplicate]

The folder /var/www/html is own by apache:apache for httpd to work, but in my local machine, I'd like to be able to edit all the files in these folders without having problems with permissions. I ...
0
votes
0answers
10 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
41 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
64 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
18 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
26 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
21 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
47 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
42 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 ...