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

White Screen - PHP 7 on Ubuntu 16.04 fails to render scripts

I can't run PHP scripts on my localhost, the browser renders a white screen. If I view the source of the page I can see the contents of the PHP file visibly. Using: $ sudo apt-get install ...
0
votes
1answer
55 views

%CPU at 99% when cronjob runs php script every minute

I am using a debian server and for some reason when I run this php script using crontab every minute it says that I am using 99% of the %CPU with the php command (in the cronjob the command is php) ...
1
vote
1answer
29 views

PHP-Files magically serverd with a leading TAB. Debian Wheezy Apache PHP

I got a weired behavior on my apache, php setup on a debian wheezy system. Discovered while I tried to create an image with php and output it directly. It failed permanent and the browser said sth. ...
0
votes
0answers
49 views

PHP $_SERVER contains incorrect values

We have a login portal on our site and $_SERVER['SERVER_PORT'] and $_SERVER['HTTPS'] aren't returning the correct value. The thing is that we are not getting any response for $_SERVER['SERVER_PORT'] ...
0
votes
0answers
22 views

PHP-CGI not found by Apache

I'm trying to configure Apache to use PHP-CGI. Here is my php cgi script located in /var/www/cgi-bin #!/bin/sh PHP_FCGI_CHILDREN=3 export PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=5000 ...
1
vote
2answers
86 views

pecl install pecl_http fails - upgrading to php7 and http.so makes trouble

Similar issue: pecl_http failed to load So I wanted to upgrade to PHP7.0 and I believed all was fine. But I think I was missing somepages packages because i.e. I was not able to login into my ...
0
votes
0answers
9 views

How do I get to write exim delivery result in mysql

Good evening. I have such a scheme. The main server and multiple mail servers. Each mail server installed exim is realized through sending phpmailer. Logs are parsed delivery in php and then recorded ...
0
votes
1answer
43 views

Nginx always searches index.php in the wrong directory

I have a web root directory pointing to /var/www/html. I have several subfolders in /var/www/html where I host different projects. Example: /var/www/html/chatserver When I try to access http:// ...
0
votes
1answer
56 views

Installing GD Library on Centos 6.7 and PHP 5.4

Versions: centos-release-6-7.el6.centos.12.3.x86_64 PHP 5.4.45 Installed GD using yum: $ yum install php54w-gd Installed: php54w-gd.x86_64 0:5.4.45-2.w6 Restarted: $ service httpd ...
1
vote
0answers
67 views

Soap error - failed to load external entity

I have a PHP-script which uses SoapClient that connects to an API and runs methods. It works on all the different servers I have run it on previously but when I tried it on a server I get the error: ...
1
vote
1answer
85 views

Sendmail dsn=5.0.0 Service unavailable when sending mails by PHP to yahoo

I got question regarding sendmail, I already searched for similar questions but couldn't find anything which was helpful to me. I am currently using a server (Debian with LAMP Stack) with sendmail, ...
0
votes
1answer
44 views

php.ini not being loaded [closed]

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
1answer
34 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
0answers
15 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
13 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
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 ...
0
votes
1answer
34 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 --add-...
0
votes
0answers
19 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
32 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 ...
2
votes
0answers
125 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
19 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
39 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
34 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
19 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
0answers
45 views

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

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 ...
0
votes
0answers
18 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 ...
2
votes
1answer
84 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
52 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
114 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 (...
1
vote
0answers
30 views

Vagrant, Apache and FastCGI uses huge cpu

I cannot really grasp why it's so slow. Site loads really slow. And vboxheadless hits more than 100% cpu every request. I use 2048 memory and 1 cpu. Here is activity monitor and top: http://imgur....
0
votes
0answers
16 views

Install php-ZendFramework and php-ZendFramework2 in parallel on a machine

is it possible to install php-ZendFramework and php-ZendFramework2 on one host? I need v2 for bareos-webui and v1 for icingaweb2. I've only found some info here (http://framework.zend.com/manual/...
0
votes
1answer
55 views

How to store Cloudflare IP as an additional FastCGI parameter in Nginx? [duplicate]

I need to be able to know the Cloudflare IP for connections made to my server. This is so I can determine if a connection is made through Tor. To do that, I need to send the tool the IP that the ...
0
votes
1answer
27 views

php-cgi.exe CPU load jumps after MySQL Backup

I'm running Windows 2012r2 on a new server, with Plesk 12.5 and MySQL 5.6 installed. There's a backup script which takes a DB dump and zips website data files that runs each day. However, it brings ...
0
votes
1answer
105 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 ...
3
votes
2answers
108 views

Allowing PHP to run specific bash script with root permissions

I have a php script calling a bash script like this: <?php $result = exec('sudo /bin/bash /var/www/my_bash_script.sh /var/www/vhosts/testsite/htdocs/'); var_dump($result); ?> This is ...
0
votes
1answer
38 views

How to register user on ejabberd using php code?

I am trying to register user on ejabberd linux server. I am using below php code <?php $username = 'hello'; $password = 'hello'; $node = 'my ip'; exec('sudo -S ejabberd /usr/sbin/...
0
votes
1answer
82 views

How can I get Laravel app routing to work in a sub-folder of a WordPress site?

I've got an existing WordPress site and I need to get a Laravel app to work in a sub-folder called 'api'. This is an nginx site, so .htaccess redirects will not work, and the best solution if it needs ...
0
votes
0answers
14 views

Ubuntu Apache configuration

I am running PHP on Ubuntu and I see that each SAPI is using a different location for its php.ini file in the /etc/php5 directory. There is a directory for CLI, for CGI and for Apache2. I would like ...
1
vote
1answer
34 views

500 Error: “End of script output before headers” - Simple script within Wordpress theme

I have a multi-site install of Wordpress running fine on a unmanaged CentOS server, however for a certain feature I need to do my own thing on certain pages and manually interact with some non-...
0
votes
1answer
100 views

PHP script with systemd

I'm new to systemd and I've got issue with script my colleague gave me. This script worked as background process in Debian 7 but doesn't in Debian 8. I decided to rewrite it to systemd. I have this ...
0
votes
0answers
24 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 ...
0
votes
0answers
62 views

Microsoft Access Database drivers on server

I'm really in need of assistance with this issue, ive been trying for days. I have an access database which i'm trying to query via PHP - i have come to this forum because after reading many posts and ...
0
votes
0answers
82 views

nginx 500 error when accessing large file from php script

I am using nginx/1.8.0 and to debug a large file upload issue I am facing in WordPress, I post a file with a simple script: Index file: <html> <!-- index.html --> <head><...
2
votes
0answers
45 views

Upgrade openssl in apache from source and set as default

I have upgraded the openssl from source to version OpenSSL 1.0.1s for Apache, which installed under /usr/local/ssl/bin/openssl, and change the symlink to point it into this new installation directory ...
2
votes
3answers
74 views

PHP session directory full?

I was hoping somebody could give me some advice please. I'm running a CentOS 6 server and over the last couple of days my disk usage has gone from 60GB to 135GB (98% full). I believe the issue may be ...
1
vote
1answer
50 views

Long running PHP process randomly stops with message 'Killed'

I have a PHP script I wrote that I am running, and it has ran all the way through before, but for some reason, it keeps stopping with a message of 'Killed' ... It is my box, no one else is logged in ...
1
vote
0answers
32 views

Centos - PhpMyAdmin showing blank screen when trying to access it [closed]

I have just installed PhpMyAdmin, and when i try to access it it just shows a blank screen. I suspected this is because i followed a tutorial on how to secure php, so i reinstalled php to reset the ...
1
vote
1answer
87 views

High CPU usage by Apache on opening WordPress Admin Pages

I'm having a VPS server with below configuration 2 core CPU 2GB RAM 50 SSD Centos 7 Web Panel: Sentora From the last week, I'm facing a high CPU usage. Most the sites are WordPress. On opening each ...
0
votes
2answers
85 views

Apache returns empty response and must restart

I have the classical LAMP configuration on several servers, on one server I can frequently see Apache returned an empty error. I have PHP-FPM running to serve .php file, static pages like .html is ...
1
vote
0answers
24 views

nginx prevent loss of POST parameters when rewriting uri

I would like to do some url rewriting on nginx with php-fpm. Namely, routing all requests to php scripts to a single script like: /index.php?fulluri=(originaluri) Many ways to approach the problem: ...