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
1answer
13 views

php.ini not being loaded [on hold]

I have been trying to configure my Apache server all day, however I am having major issues with getting a php.ini file to be loaded. When I try to connect to my database I get this error: Call to ...
0
votes
0answers
12 views

A Website in my Centos 6 server is picking incorrect PHP version

I have a CentOS 6 server that has PHP 5.6.20 installed: # php -v PHP 5.6.20 (cli) (built: Apr 2 2016 08:28:23) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend ...
0
votes
2answers
1k views

sendmail is not delivering messages to recipients

I have run into a number of problems getting sendmail to work. None of the solutions I've tried have worked. First: sendmail was hanging for 60 seconds and then not sending the email. To solve this, ...
0
votes
0answers
5 views

error: found a non-fatal phpLDAPAdmin Bug

i just install openldap with phpldapadmin. but when i go to monitor menu i found: is this actually something can be solved? anyone ever solve this issue before? Thanks, AnD
0
votes
1answer
7 views

PHP suhosin view dropped variables?

suhosin enabled. suhosin dropping request/get variables. The log just tells me everything except the original value of the dropped variable. ALERT - dropped 1 request variables - (1 in GET, 0 in ...
0
votes
1answer
2k views

Postfix on Ubuntu tried everything, won't send emails

I'm trying to get postfix set-up on Ubuntu 13.04 but no luck so far. I found a few answers here on ServerFault that didn't work. I re-installed a bunch of times, nothing. This is my first time dealing ...
1
vote
1answer
2k views

End of script output before headers: php5

I've inherited the sysadmin role on a server that's running a wordpress website on top of Apache 2.4/Debian. It almost works, but it is issuing "500 internal server error" from time to time. In my ...
0
votes
1answer
1k views

New CentOS 7 server - Sending mail from a PHP application

Apologies for the newbie question but i'm hoping someone can provide me with some help/steps. I am in the process of migrating a website from a managed shared hosting account online to a new CentOS 7 ...
0
votes
0answers
8 views

Prestashop recommended configuration for php and Apache [duplicate]

I have a site built in Prestashop. It receives pretty high traffic Visits 23015 Unique Visitors 16767 This is volume of traffic that I get per month. Currently PHP memory limit is set to 128MB. I ...
1
vote
2answers
2k views

How to fix Apache from crashing with PHP+Curl on an SSL request?

My Apache process segfaults whenever I call curl_exec() from PHP with an "https://" URL. If I use http instead of https as the URL transport, it works perfectly, so I know curl and the other curl ...
0
votes
3answers
3k views

Fatal error: Class 'COM' not found in C:\inetpub\wwwroot\test.php on line 22

There is an IIS 7 webserver and PHP 5.3 I have set com.allow_dcom = true on php.ini file and restarted the webserver. I need to use hmailserver by: $obBaseApp = new COM("hMailServer.Application"); ...
0
votes
1answer
16 views

error: Automatically removed objectClass from template as it is not defined in the schema

I'm installing openldap with phpldapadmin in 2 diffrent CENTOS 7 servers with configuration as follows: openldap server: firewall-cmd --permanent --add-service=ldap firewall-cmd --permanent ...
3
votes
1answer
2k views

“Unable to initialize module” fileinfo php-pecl-Fileinfo.x86_64

I have a brand new server server that I am trying to get setup up. This is a 64 bit machine that I can not install "fileinfo" or "memcache". I have uninstalled these and reinstalled them using yum ...
2
votes
3answers
2k views

Cannot perform a PECL installation

I have been trying to do a few PECL installations, but all of them return the same type of error. Something related to timezones? Im running RedHat x86_64 es5. Attempting to install geoip-1.0.7: ...
-1
votes
0answers
13 views

Unable to connect to apache server error AH00526: Syntax error on line 1 of -c/-C directives: [on hold]

I recently upgraded to php56 on Mac OSX El Capitan. Now I am unable to run apache. I am getting:- This site can’t be reached localhost refused to connect. when trying to run localhost apachectl ...
0
votes
0answers
15 views

IIS recycle causes rapid fail to shut it down

I have a php website with rapid fail protection at default of 5 fails in 5 minutes, with a pool recycle limit set to 300,000 kb. The w3wp process isn't going above 100mb in task manager, and under ...
0
votes
1answer
24 views

Yum cannot install php addons

I had an issue with phpmyadmin so i uninstalled php and all it's addons and reinstalled it, but yum complains it can't install php-common: Loaded plugins: fastestmirror Loading mirror speeds from ...
-3
votes
0answers
26 views

How to integrate PHP with NGINX in Debian 8? [on hold]

I have installed nginx and php on debian 8. Now I want to know how to use php with nginx. I want to serve php files from my web server.
0
votes
0answers
12 views

Opencart: can't send email only to gmail [on hold]

Recently i've been working on a opencart based website, everything works just fine, the only thing it doens't work fine is the emailing system. If i use a hotmail account to register everything will ...
1
vote
1answer
293 views

squirrelmail postfixadmin plugin - failed login to xmlrpc instance

I have installed postfixadmin 2.3.6 and im using squirrelmail vacation plugin. Postfixadmin is working good i can add/edit/delete email accounts and vacation or forwards / aliases. I have problems ...
0
votes
1answer
2k views

Secure PHP on IIS 8.5

I'm using IIS 8.5 on Windows Server 2012 R2 to host ASP.NET and also PHP-Applications. Because there are a few different PHP-Apps, I want to restrict the access by using open_basedir. The problem: ...
1
vote
3answers
1k views

Creating Multiple Users on Single PHP-FPM Pool

Have PHP-FPM/FastCGI up and running on my cPanel/WHM server but I'd like have it allow for multiple users off of a single pool. Getting all vhosts to run off a single pool is simple by adding this to ...
1
vote
2answers
1k views

Windows Server 2008 IIS7 - page requests randomly hang or timeout

I've just installed a fresh copy of Windows Server 2008 x64 with IIS7 and PHP (fast CGI). However, I'm noticing that after moving my web site from a similarly specified machine to this one, I'm ...
0
votes
1answer
51 views

Setting php_value in VirtualHost on Debian Squeeze Apache 2.4.10 + mod_proxy_fcgi + php-fpm?

After updating our server to Debian Jessie (8.3), I switched Apache 2.4.10 from mpm_worker/mod_php to mpm_event/proxy_fcgi/php-fpm. I have the handoff configured for all virtual hosts as such: # cat ...
8
votes
5answers
6k views

Install PHP7 from Remi repo

I installed PHP7 from Remi repo with sudo yum -y install httpd sudo yum -y install epel-release wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm sudo rpm -Uvh remi-release-6*.rpm ...
0
votes
1answer
1k views

Apache fast-cgi and php-fpm on Ubuntu 14.04 - Run PHP File as the owner

I am trying to setup FastCGI and PHP-FPM so that a php file can be executed as the owner of the file. I am trying to replace SuPHP with FastCGI and fpm. Earlier, I had folders with different owners ...
0
votes
1answer
588 views

Performance issues with new dedicated server

I have just subscribed to a new dedicated server and am getting worse than expected PHP execution performance. Execution times are twice as high as on my old shared server! I'm definitely not an ...
0
votes
1answer
1k views

memcached install issues with lib event on server

I've installed libevent on my server in the directory root/data/ and have i'm about to install memcached with ./configure –with-lib-event=/data/; make; make install However, after running a bit I ...
4
votes
4answers
5k views

PHP configure not finding LDAP header libraries

I installed the LDAP development headers: apt-get install libldb-dev This added a few ldap headers: root@crunchbang:/usr/include# ls -la ldap* -rw-r--r-- 1 root root 9466 Apr 23 2013 ldap_cdefs.h ...
1
vote
2answers
56 views

Which PHP setup should I use for a shared hosting environment (fpm, fcgi, proxy, module)?

I'm currently working on a web hosting management panel for running PHP websites (like Plesk or cPanel). I was researching the best possible ways of running PHP with Apache. mod_php is out of the ...
0
votes
1answer
14 views

Uploadprogress installed but progress bar not working

I have video hosting script, which was working well on my old server, bit now in new server i have installed Virtualmin as control panel. Also there is Lighttdp installed for video streaming which is ...
-1
votes
0answers
24 views

Fatal error: Call to undefined function simplexml_load_file() on Puphpet

I have just booted up a new VM using Puphpet, VirtualBox(5.0.14) and Vagrant(1.8.1). I am running on Ubuntu 14.04 with PHP 5.6.2 and am getting this error: Fatal error: Call to undefined function ...
2
votes
0answers
37 views

ownCloud fails in reverse proxy config

My setup is that ownCloud runs on an internal server at 192.168.200.1. At 43.23.104.153 there is a public apache with mod_proxy that forwards the requests to the internal server: ProxyPass /edward ...
1
vote
0answers
15 views

how to monitor client bandwidth in saas app?

I am building a SaaS which allows customers there own space. They get a subdomain but they can also add their own custom domain by setting their CNAME to my server. The subdomains and custom domains ...
0
votes
0answers
17 views

Unrecognized access to cgi-bin with error message 'script not found or unable to stat' on Apache

I checked my Apache 2.4 error.log and found some unrecognized access on my server, which is a Windows platform. Here are those error log, the IP 31.184.195.114 is not belongs to anyone I know. ...
0
votes
0answers
23 views

Can't modify $_SESSION Unknown: write failed: No space left on device (28) in Unknown on line 0

When I try to assign a value of $_SESSION $_SESSION['whatever'] = "test"; I get Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0 There is enough space on device, ...
0
votes
0answers
9 views

virtualmin 403 forbidden error

i have installed virtualmin, now i am trying to install clipbucket. now when ever i am trying to open domain, it gives me forbidden 404 /. error. I have changed the permission to folder, also i have ...
0
votes
1answer
32 views

Codeigniter: website have too many redirects

I have developed a webportal in codeigniter framework,but when i try to host in a shared hosting server i will get this error. wwww.abc.com redirected you too many times. ERR_TOO_MANY_REDIRECTS ...
0
votes
3answers
2k views

php upload_max_filesize ignored - unable to upload 5gb file

I'm unable to upload files larger than roughly 2gb. The max upload/post values were previously set to 2500MB so I thought that was the problem. First, # php --version PHP 5.3.3 (cli) I set ...
0
votes
0answers
17 views

How to manage high traffic on news portal(cache)? [duplicate]

I have some questions regarding to my news portal, where I have some issues with high traffic. The issues is: I have daily about 50 k UU, and sometimes I have shots about 20 k UU in one time from ...
-1
votes
0answers
18 views

Fatal error: Class 'DOMDocument' not found, in a Wordpress site

In my wordpress site I get the error "Fatal error: Class 'DOMDocument' not found" php-xml not being installed on the server can cause the issue but it's already installed (I'm using Centos) I've ...
0
votes
0answers
10 views

Fatal error: Call to undefined method mysqli_stmt::get_result(), Mysqlnd enabled [closed]

I am getting this error Fatal error: Call to undefined method mysqli_stmt::get_result() only on server. The phpinfo http://gerakas-forest.gr/info.php The Mysqlnd is already installed and working. ...
0
votes
0answers
4 views

How to prevent malicious injection in argument to php “exec” (webhook -> bash script) [migrated]

I've written a webhook to integrate into chat (slack / mattermost api). The simplest way to get it up and running was a quick php script, which looks like this: <?php $token = $_POST["token"]; ...
-1
votes
0answers
25 views

trouble in install php-devel in centos 6

i am trying to install php-devel on centos but i got an error like below Error: Package: 1:php56w-pear-1.10.1-1.w6.noarch (@webtatic) Requires: php56w-ftp Removing: ...
0
votes
1answer
2k 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: ...
3
votes
1answer
5k views

Setting php error_reporting value with a console parameter

In order to test my PHP projects on errors I normally use this command: find ./ -type f -name \*.php -exec php -l '{}' \; | grep -v "No syntax errors detected" I would like to extend the part php ...
2
votes
1answer
40 views

Laravel EC2 Nginx PHP 7 scripts downloaded instead of executed

The php scripts are downloaded on Amazon ec2 server with nginx installed instead of being executed. This is my nginx conf file: user nginx; worker_processes auto; error_log /var/log/nginx/error.log; ...
1
vote
1answer
37 views

MySQL server experiencing high stress/max connections

The Short: We're hitting max connections and seeing very poor performance from MySQL during peak business hours and cannot determine if it is a load problem or a configuration problem. The Long: To ...
2
votes
1answer
61 views

Apache spawning enormous number of httpd processes

I am running a CentOS 6.7 machine (16 GB vRAM, 8 vCPUs) with a simple web server setup (Apache/2.2.15, PHP/5.3.3, MySQL/5.1.66), hosting an online shop with a moderate number of page impressions ...
0
votes
1answer
1k views

Apache: How to switch from CGI/FastCGI Server API to DSO?

Apache: How to switch from CGI/FastCGI Server API to DSO? I want to switch back and forth. I found this answer for the reverse step, but I need the the first part: Apache: How to switch to ...