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

-1
votes
0answers
9 views

Enabling pdflib option without reinstalling php

I have installed PHP version 5.3.5 in a RHEL 5.10 server. I need pdflib support to be compiled along with PHP, But while compiling I am getting the below error. I understand that current configure ...
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
0answers
22 views

LDAP modify doesn't change anything

Got an issue with Active Directory LDAP and setting passwords. I'm connected through the LDAPS protocol to my AD server, and binding is successful. When attempting to set a user password, no error is ...
0
votes
1answer
82 views

Setting up nginx and php-fpm on CentOS 7 - which config file do I alter? I'm so lost

I'm intermediate with Ubuntu and Apache, but a total noob to CentOS. I want to setup a 1 CPU 1 GB RAM test VPS for a phpbb 3.1 forum, and I'm following this tutorial: How To Install Linux, Nginx, ...
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 ...
0
votes
0answers
8 views

How scalable is ratchet php socket server and php build in server? [duplicate]

I am using ratchet php to build a chat apps and it uses a php file to create a chat-server as shown in http://socketo.me/docs/hello-world chat-server.php code. The problem is I modified the code so ...
1
vote
1answer
1k views

php set_time_limit not working with mod_fcgid?

It seems set_time_limit function call has no effect when php is running with mod_fcgid (the default in webmin). Can someone tell me how to make it work?
-2
votes
0answers
42 views

After upgrading server to PHP7, connection reset

I have Kali Linux Rolling installed. Today have installed the php7 by official repository, in addition of mod2php for Apache2 (libapache2-mod-php7.0). After removing only the mod2php for PHP 5.6 ...
3
votes
1answer
2k views

Maximum limit of filepointer in php reached and not changeable

I have a server with the current 5.3.x version installed. Since we are running a really simple and small server in php using sockets, that connects to a lot clients using sockets we need to raise the ...
0
votes
1answer
40 views

Nginx only recognises files in root dir (Permission denied on symlink'ed dir/files)

UPDATE -- This is driving me nuts (or back to Apache...) The issue is definitely symlinks and permissions When I setup symlinks to directories in the same tree, for example /var/www/html/html2 --> ...
1
vote
2answers
2k views

putting folders above public_html in a shared hosting environment

On my local environment, the following settings work in my index.php file: $system_path = '../../ci/system/'; $application_folder = '../../ci/application'; My folder structure looks like this: -ci ...
-1
votes
0answers
14 views

php with mysql and IIS not working

I have followed online tutorials and installed PHP, and pypmyadmin on my windows server but when i am trying to install the mySQL server instance window its just freezing on "prepare configuration", ...
0
votes
0answers
10 views

Connection failed: php_network_getaddresses: gethostbyname failed. errno=0

I need you'r help please... I created php web site in google engine. I open connection to mysql server using appharbor. When i run it local it connect very good and there was no errors in my web ...
0
votes
0answers
28 views

Wordpress tries to allocate Terabytes of memory

I am currently running Apache on windows and occasionally it will seemingly instantly spike and try to allocate anywhere from 10s of GB to hundreds of TB of memory. After this error log happens a few ...
0
votes
0answers
28 views

Is there a simpler way to manage this Private Tuition classes' system? [on hold]

I'm making a website for a private tuition classes. Here, the concept is that a teacher goes to teach to the student's house. There are many teachers operating this way teaching many students at their ...
-7
votes
1answer
71 views

get database deleted backup via command [on hold]

i have by mistake emptetied my databases for where can i get database backups. my server team told i do not have backup activated now what to do to solve my issue .Please guide me the way to fix it. ...
0
votes
3answers
418 views

Host a PHP website a Amazon webservice EC2

How i can host my php website at EC2. I have brand new account at amazon web serive. Some one let me know about the setup of configure this. Thanks, Pradeep
-1
votes
0answers
51 views

Frequent error 500, Apache, FastCGI, PHP 7.0.5 when serving downloads

I'm getting a lot of error 500 responses in the Apache log. This does not disrupt the server at all, because as it seems, this error happens only on downloads (which are served via PHP). I do not ...
0
votes
1answer
1k views

Apache not loading: libmysqlclient.so.18: file too short

I have installed MySQL and PHP, and I tried restarting apache and here what happens when I run # service httpd restart: Stopping httpd: [FAILED] ...
0
votes
3answers
2k views

Finding outbound connections from Apache/PHP

A client website was recently compromised, and we're analyzing the damage and exposure from the attack. We've found a script that is "calling home" to a URL we can easily find in a log, but is this ...
0
votes
0answers
19 views

IIS 7.5 & Joomla very slow TTFB response

I have a Joomla site (Joomla! 3.4.1 Stable) running on Windows & IIS that takes almost 11 seconds to even respond to any request. Other subdomains (sub.domain.com) respond almost instantly but ...
0
votes
2answers
1k views

'PDO Connection Error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

I'm getting 'PDO Connection Error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' error when I'm trying to make too much update and ...
1
vote
2answers
2k views

Another PHP NGINX error: “No input file specified”

I looked through about 5 questions and blog posts already and tried everything they told me without luck. I can browse to www.example.com/phpinfo.php, but not www.example.com/index.php. I even went so ...
0
votes
0answers
14 views

Exim can't send email (unable to set gid or uid forcing real = effective)

I've a debian Jessie and Exim4. I can't send email from php, error given is: unable to set gid=33 or uid=0 (euid=0): forcing real = effective I've tried to search for this problem but nothing helps ...
0
votes
1answer
9k views

File upload permissions issue on Windows Server 2008 R2 IIS 7.5 PHP 5.3 with Drupal v.7.26

I have website on Drupal version: 7.26 OS on server is Windows Server 2008 R2 Web server $_SERVER["SERVER_SOFTWARE"]: Microsoft-IIS/7.5 Server API: CGI/FastCGI Core PHP Version: 5.3.28 file_uploads: ...
0
votes
0answers
34 views

Site unreachable due to attack - xmlrpc.php

Today our server was not reachable. It was returning a 502. We are running Nginx 1.10 on Ubuntu 14.04. We also use PHP7 (only, no PHP5). In the logs, we got the same error from the same client (2 ...
13
votes
4answers
54k views

RSA certificate configured for SERVER does NOT include an ID which matches the server name

I recently started a LAMP server (all the latest versions) w/ WordPress on it, and I'm trying to install a SSL certificate that I recently purchased. When I restart apachectl, error_log gives me this: ...
0
votes
2answers
2k views

How to configure sendmail properly with PHP on EC2 (no SES)?

I have been struggling with sendmail for couple of days with no luck. I am trying to setup relay host, after following the answers in this question ...
7
votes
3answers
4k views

How to fetch ./configure parameters used at last time?

I am upgrading LAMP stack on customer's server and need to ./configure mysql and apache with exact last settings they were compiled with last time. Where do I get these? PHP configure string can be ...
2
votes
1answer
1k views

phpinfo.php is not showing extra folder for additional PHP configuration files

My phpinfo.php is not showing extra folder for additional PHP configuration files. I am running Apache v2.4.4(with PHP DSO) and PHP v5.4.14 on CentOS v6.3 32-bit. Apache and PHP installations are ...
0
votes
2answers
55 views

How to install an older version of php (5.2.17) in Linux?

I want to study some security vulnerabilities in php 5.2.17, but I can't install it from source, because then I need also all the older versions of all the other application which have something to do ...
0
votes
0answers
15 views

Elastic Beanstalk and Worker Tier? (PHP)

I'm trying to setup my app that's hosted on EB with a worker that will run some basic cron jobs to feed an RDS database with data that the app consumes. I deployed this cron.yamlat first: version: 1 ...
1
vote
1answer
40 views

Nginx & PHP in a subdirectory

I have an app behind nginx. But i need a specific path in this app redirect to a Wordpress Blog Example : example.com/ -------> Redirect to my app example.com/whatever/ -------> Redirect to ...
2
votes
1answer
1k views

Apache2 Segfault - need help interpreting this coredump (suspect cause is memcache / php session related)

Three Apache2 web servers running a PHP 5.2.3 web site. We're using Memcache to cache rendered pages but also as the storage engine of the PHP Sessions. At peak traffic times we're getting Apache ...
-1
votes
0answers
12 views

Uploading codes to wamp [closed]

I am trying to start with basic, in controlling the on board LED connected to pin 13 of my Arduino UNO through web server, without any shield. My objective is to connect my Arduino to the internet. I ...
0
votes
1answer
1k views

Errors getting apache working with fcgi and suexec

I have a Debian 6 server and I was previously using Apache with mod_php but decided to switch to using fcgi instead since Wordpress was somehow causing Apache to crash. I have the following in my ...
0
votes
1answer
49 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
votes
1answer
51 views

Removing 1 line of code from all php files

I can see same code under all php files. Starting from <?php $rfghoh = '*f%)sfxpmpusut)tpqssu6 And end $rfghoh=$yuoopi-1; ?> I am just looking for script using which only first line of ...
0
votes
1answer
29 views

php unable to connect to MySQL via SSH tunnel

I have executed both commands via SSH with no error and than when I try to connect to the MySQL server via SSH tunnel I get no results even if I do a simple query like select * from table. I get no ...
0
votes
2answers
118 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
18 views

Windows server 2012 IIS 8 php data post upload failure to mysql

I'm getting a php data upload fail when attempting to transfer data up to a mysql database from a html5/webgl built app off of Unity. All of the data downloads work regardless of the upload issue. The ...
1
vote
3answers
1k views

session.save permission erorr

My Debain server created a session in private tmp folder /home/user/tmp the temp folder owner: drwxrwxrwx 2 user www-data 4096 2011-08-23 16:26 tmp After the session created, the session ...
1
vote
1answer
1k views

Stopping memcached: [FAILED]. Why?

My application seems to be having issues with memcached not stopping. I'm using php, and have specific keys expiring after every hour. However those keys & values are not repopulating anymore. ...
-1
votes
0answers
12 views

get user data from html form and php to create a text file save in path [closed]

I had a small problem with php fopen and fwrite. I am going to capture user data that key in in form and write to a text file using php. How can i do this? Following are my index.html <form ...
0
votes
2answers
1k views

nginx php5-fpm path_info urls and root location

Hello to all nginx & php gurus I'm installing dotclear (a blogging software written in PHP) on my debian, and I have a hard time configuring nginx, php5-fpm and php so that : I can use ...
1
vote
1answer
1k views

PHP 5.3 mssql support on Linux

I have a RHEL 5 box with php 5.3 that I am tasked with installing mssql support on. I installed php53-mssql and reloaded apache. It seems that modules were installed to /usr/lib/php/modules but my ...
4
votes
2answers
2k views

All PHP sites stopped working on IIS7, internal server error 500

I installed multiple drupal 7 sites using the Web Platform Installer on Windows Server 2008. Until know they worked without any problems, but recently internal server error 500 started to show up ...
-1
votes
2answers
24 views

php to limit included file to access below and upon directory tree

I am trying to find solution for this problem for days. I have structure like this. index.php /app /plugins/ /users/%site%/functions.php /other stuff all requests goes to ...
1
vote
1answer
26 views

Permission Denied for fastcgi_pass using PHP7

I'm running LEMP with PHP7.0. I've got this in my server block fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; But when I open the site, it returns a 502 Bad Gateway. Below is the error log. *1 ...
1
vote
5answers
3k views

nginx: php-fastcgi running but php files not executing

I have recently set up a nginx server with PHP running as FastCGI process. The server is running with HTML files however PHP files are downloading instead of displaying and PHP code is not processed. ...