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

I can't avoid 504 gateway time-out

In order to avoid the nginx 504 gateway time-out, I've tried to do this in the beginning of my PHP code: set_time_limit(0); Also, I've tried to raise the time settings at /etc/php/7.0/fpm/php.ini: ...
0
votes
2answers
101 views

How to detect slow code or plugin

I don't have much experience with WordPress and I don't know where to start. There is a website which is running very very slow. The hosting company helped me to detect that it's because some piece of ...
0
votes
1answer
68 views

Emails failing from sendmail - CentOS 7

My simply PHP script to send mail is <?php ini_set( 'display_errors', 1 ); error_reporting( E_ALL ); $from = "fromaddress@gmail.com"; $to = "toaddress@gmail.com"; $subject = "...
0
votes
1answer
286 views

PHP 7 Module already loaded warnings

I have a machine running Ubuntu 14.04.3 LTS that is deployed via Ansible. I've got PHP 7 installed using Ondřej Surý's PPA for PHP. $ dpkg -l | grep -i php ii libapache2-mod-php7.0 7.0.3-...
0
votes
0answers
10 views

PHP back-end testing using selenium

Is it possible to use PHP for back-end testing combined with selenium server or web-drive? As far as I know that selenium is used for front-end testing only. All back-end testing examples I found is ...
0
votes
2answers
100 views

pdo_mysql is installed but missing in phpinfo

I have a CentOs 6.7 server. I have problem to make pdo_mysql available on apache2. following shows for Command line: myserver$ php -m PDO, pdo_mysql, pdo_sqlite but phpinfo(), shows only PDO and ...
0
votes
2answers
105 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 ...
0
votes
1answer
38 views

Webserver running very slow

I am going to attempt to post all relevant information to my problem so I don't get downvoted. Any help/guidance will be much appreciated. 2 days ago, my website: http://ianon.info , http://ianon....
0
votes
0answers
71 views

connect() to unix:/tmp/php-fpm.sock failed (2: No such file or directory)

On my vagrant box , centtos 7, i had installed php7.0.3 and nginx 1.9.12. the php config www.conf. this file in the /usr/local/php/etc/php-fpm.d/ directory, Its configuration like this user = www ...
0
votes
0answers
88 views

mod_fcgid: error reading data from FastCGI server

This is my first post here although I often do search and find answers here. This time I've spent a couple of days searching various sites but unfortunately none of the answers in other threads helped ...
0
votes
0answers
33 views

“http_response_code” does not work properly in IIS

I create a web.config in root folder project <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <defaultDocument> <files> ...
0
votes
0answers
31 views

Apache .htaccess give me a No input file specified

I known I'm asking about a well known problem, but I'm not a pro with LAMP stack and the answers I found doesn't fit my issue. This is my .htaccess file: RewriteEngine On RewriteRule myservices/user/(...
0
votes
2answers
40 views

Serving images from two different directories with Nginx

This should be basic... I'm brand new, and no amount of googling and searching stack exchange is helping. I have a website that I want to be able to serve images from, from different directories. I ...
0
votes
0answers
26 views

Server Error 500 Swiftpanel

I have centos 7 VPS 64 bit. I have installed php and it works fine. I installed gamepanelx running php and it works good but the gamepanel swiftpanel is not working; it gives me 500 server error. I ...
0
votes
0answers
13 views

latin1_swedish_ci appears under collation [duplicate]

my site is down and latin1_swedish_ci appears under collation in some of the tables. I'm not a programmer, but I was told that utf8mb4_unicode_ci is normal. The web host says I was infected with ...
0
votes
0answers
15 views

How to find server hacker [duplicate]

I have WHM CPanel and cxs plugin installed to scan for malicious scripts. Today I just got notified that a file has been uploaded to my server: Scanning web upload script file... Time ...
1
vote
0answers
41 views

httpd processes cpu spike to 100%+ every xx seconds

My first post, unfortunately due to an issue on my dedicated (Linux Centos 6) server running some personal and one commercial website. Server version: Apache/2.4.18 (Unix) Server built: Mar 7 2016 ...
0
votes
0answers
26 views

Azure, Ioncube and Non Thread-Safe

I'm attempting to load the php extension ioncube on to an Azure web app. I'm at the point whereby the ionCube Loader Wizard has found the DLL but reports that You have the thread-safe version of ...
0
votes
2answers
62 views

Running multiple PHP-FPM pools on Apache for different URLs?

Due to different priorities of the parts of the PHP app, the goal here is to have one pool for general usage, and another for The /api/* URLs. To make things complicated, the app uses internal URL ...
0
votes
0answers
22 views

php mssql ApplicationIntent=ReadOnly

I am trying to connect to a remote MSSQL database. Before i get too long into this i was wondering when i connected with SSMS i had to specify "ApplicationIntent=ReadOnly" because of the availability ...
0
votes
1answer
35 views

Nginx AIO & FastCGI Streaming

Will nginx aio makes any difference when it is being used with FastCGI (PHP) ? I'm currently using PHP to read Files and with the help of nginx data reaches the client. I have more than 5.000 ...
0
votes
0answers
20 views

Run a script if another process was spotted

I have CentOS 7 and looking for a sollution about a small issue. I want to have a sudo script to be run but only if the system executed a specific command remotely. For example: I've put my command ...
0
votes
0answers
25 views

Ping request timed out when basehttpserver is loading website

I am running a website using basehttpserver. 10.0.xx.xx is the ip to access the site. There is a 'controller' with a cellular modem on it, which hosts the website and runs the basehttpserver. When ...
0
votes
1answer
181 views

PHPMailer with SSL - CentOS 6.7 VPS - SMTP ERROR: Failed to connect to server: (0)

I have a CentOS 6.7 VPS and PHPMailer 5.2.14 will not connect to my mail server. I have tried troubleshooting the problem but nothing has solved my issue yet. My PHP is version 5.6.18. The only output ...
0
votes
0answers
89 views

“Failed to create COM object `hMailServer.Application'”, although Everyone has launch and activation DCOM permissions

In a Windows Server 2012 R2 Datacenter environment with IIS 8.5.9600.16384, Plesk 12.5.30 Update #24 and hMailServer 5.6.4-B2283 I'm trying to install the web interface PHPWebAdmin that ships with ...
1
vote
1answer
24 views

Nginx rewrite to remove .php from files has no effect but to redirect to homepage

I'm trying to make a rewrite to remove .php from my URLs but so far no luck. Here's what I've got so far and then my results with this config below. location ~ \.php$ { try_files $uri/ @...
-1
votes
1answer
48 views

Forcing HTTP to HTTPS causing 404 error

I have a website based on WordPress, and one section of it is built by external programmers (the backend). I was able to force all connections to go on HTTPS instead of HTTP using a plugin for the ...
0
votes
1answer
116 views

Cloudlinux + CageFS + PHP Selector - how to update default php.ini for each PHP version or for each domain account?

My server runs Cloudlinux 5.11 with CageFS and PHP Selector. Default PHP version is 5.3. I have one account using PHP 5.3, one account using PHP 5.5, and one account using PHP 5.6. I'm trying to ...
1
vote
0answers
141 views

Error with PECL command in PHP7

I've upgraded php to version 7 and now I have problems with pecl command. When I run sudo pecl install mongo I get long list of errors: Warning: Invalid argument supplied for foreach() in Command.php ...
0
votes
0answers
11 views

Compile PHP with the setting and extensions of the system one

My client has a server on Ubuntu with PHP 5.4. Currenctly I want to add PHP 5.6 + PHP-FPM to give the possibility to use a newer version of PHP. The question is : Is there a simple / quick way to ...
0
votes
0answers
139 views

Apache is using 100% CPU even with one user

Apache is using 100% CPU even with one user Apache (or should I say PHP through Apache?) is using 100% CPU for few seconds every time somebody search bugs at our bug tracker or just reload the search ...
0
votes
0answers
13 views

IIS with PHP reagrding UserRights and security Risks

I'm very new to PHP but famliar with the IIS. Now I Encountered a question which we discussed and I hope someone can point me to some ressources or answer my question. Looking at the current trojan ...
1
vote
0answers
349 views

Using PHPMailer on Hostgator (timeout when try to login into SMTP server)

Solved: The problem was that to use the service through hostgator, for some reason the user must log in using main dsn name and not the SMTP domain name. I was using the simple PHP mail() function to ...
0
votes
0answers
54 views

Really destroy all PHP sessions on server

I have a PHP web application running on a Linux server. It is accessed via a browser. It uses PHP sessions to store the user's login state and userid. I need to log out all users. I have root access,...
0
votes
0answers
34 views

PHP Output Buffering - Disable PHP Phar - GZip Compression

I am trying to show echo'd statements as a PHP script is running. I have tried every variant of flushes I can find, I have turned on Output Buffering in my server's PHP settings, tried disabling GZIP ...
28
votes
6answers
4k views

How do I find out where the web site's code resides?

The facts: there is a website this website is accessible via www.example.org there is an EC2 instance which very likely keeps the website the server is Apache the server OS is Ubuntu I have full ...
0
votes
0answers
28 views

user “nobody” appears under apache2handler with mod_ruid2 installed

I have DSO + mod_ruid2 installed under apache 2.4 When i display a phpinfo.php from a website, i can see that under the Apache2handler section, user/group is nobody(99)/99. However, i run the php ...
0
votes
1answer
29 views

Managing sudden peak in traffic for event ticketing system

I am going to be managing an event ticketing system for a specific event. I think we will probably be expecting generally low traffic, although there's likely to be a few sudden peaks of traffic (to ...
0
votes
0answers
46 views

PHP unable to load dynamic library's library

I have been trying to get imagick to work on a normal lamp server. What I did: sudo apt-get --purge remove "imagemagick" sudo apt-get --purge remove "php5-imagick*" service apache2 restart (lib not ...
1
vote
0answers
21 views

Wordpress update fails - but why? [closed]

I am currently using wordpress 4.4 I set up background updates but when I execute them it says 'Something went wrong. Unable to locate WordPress Root directory.' I set my FTP details like that: ...
1
vote
0answers
89 views

installed new version of php, apache downloads php files instead of serving them in browser

I have been developing on Mac OS X Yosemite with apache2 and php5 for months. (Note my webdirectory is ~/Sites). Recently, was designing some PHP scripts, and wanted to run them from the command ...
1
vote
0answers
31 views

Reducing inodes usage on vServer

On my Linux vServer the inodes are limited (maximum is 250k). I found that an Yii2 (PHP, MySQL, composer) installation requires quite a lot of inodes. The number of inodes is roughly the number of ...
0
votes
0answers
35 views

nginx server block with fastcgi_param

i have: fast cgi on tcp defined 2 vhost A, B in nginx the second B vhost has in php location block fastcgi_param PHP_ADMIN_VALUE open_basedir= for example when i browse first A site and then ...
0
votes
0answers
321 views

Nginx + PHP7 + PHP-FPM

How needs PHP7 + PHP-FPM configured on a Ubuntu 14.04 server? I installed PHP7 according to this article: https://serversforhackers.com/video/installing-php-7-with-memcached Plain html files are ...
0
votes
0answers
29 views

Why are the records twice in Apache access_log

I'm running Nginx as reverse proxy for Apache. When I open my web page or someone else, each request is recorded twice in apache access_log. I have added **%T/%D** to LogFormat to see the time spent ...
1
vote
0answers
29 views

Copy PHP website to virtual folder under IIS 8.5

I would like to make an existing PHP Website (Apache) run on a virtual folder under IIS 8.5. With the help of some nice online tools I translated the following .htaccess content: <IfModule ...
0
votes
0answers
20 views

postfix : Cannot send email using mail() function in PHP

My question may seems duplicate. But I did not find any question with the same environment as mine. I'm using Postfix under CentOS 6.4. I am also using LAMPP. This server does not have iptables ...
1
vote
1answer
47 views

php cURL not working

The php cURL extension on the Apache server I've inherited from my predecessor doesn't work. I'm using the following code: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://www....
1
vote
1answer
104 views

How can I run 2 virtual hosts on Apache 2.4 where one use port 80 “no ssl” and the other uses port 443 “ssl”?

I am running Apache 2.4.18 on Windows Server 2008 R2 and PHP 5.6.18. My Apache server by default have SSL turned on. I need to run 2 different sites where one site uses SSL and the other one does not....
1
vote
0answers
32 views

configure exim4 on ubuntu with let's encrypt

I need to send mail for a website of mine using PHP mail(). I wanted to make sure this mail is sent encrypted. I already have exim4 sending mail via PHP, but want to make sure it's using a ...