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

-2
votes
0answers
14 views

Give www-data Permission To Reload Nginx Works Via Command Line but not cron [duplicate]

I have been researching for literally days, and to no avail. I have been trying to get my php script to be able to reload nginx. exec("sudo /etc/init.d/nginx reload"); works when I run the script ...
-2
votes
0answers
15 views

Access Home router from Internet via PHP/Apache/Home Server [on hold]

So i have been messing around with a linux server i configured a while ago and what im trying to do now is to access my home router through my server because the router does not have an option to ...
0
votes
0answers
6 views

Migrate zend application to IIS 8.5 webserver with PHP 7.0.1 already installed

I'm busy with transferring my web applications from an IIS 5.0 webserver with PHP 5.3 installed to a new server with IIS 8.5 and PHP 7.0.1. installed. I started with transferring a few application ...
-1
votes
0answers
7 views

NAS, Open-e, Apache, PHP, Mysql

Is it possible to install web server (apache, php, mysql) on open-e free OS or I must use another pc-web-server for using resource on NAS who use open-e OS?
0
votes
0answers
16 views

Ajenti automatic backup of websites and databases

Complete noob here so I apologise in advance. Just gotten my first VPS with DigitalOcean. Ubuntu + Ajenty + Ajenty V plugin. Great little panel to host and manage my PHP and NodeJS projects. But I ...
0
votes
1answer
22 views

sendmail and gmail not received

I try to send mail with sendmail (Debian 8) from a PHP script. It does work but only gmail is not working. Sending a mail from root, I got this message xxx@gmail.com... Connecting to ...
0
votes
0answers
14 views

Allow LDAP Authentication (or connection)

I'm trying to make a webapp that authenticate throw a LDAP Server. But i get this error: ldap_bind(): Unable to bind to server: Can't contact LDAP server And when i try this command: ldapwhoami ...
0
votes
0answers
6 views

Read Files from S3FS mount with PHP

We have a S3 bucket we use for video uploading. I also have a script for accessing the Youtube API so I can pull the upload files from a server rather than via the Web interface. This used to work ...
-3
votes
0answers
18 views

LAMP performance on dedicated server [duplicate]

-2 down vote favorite I am rather confused and would appreciate some help. I recently switched from a VPS to a dedicated server (core i7, 12gb ram, raid1 sata drives) but I am not happy with its ...
0
votes
0answers
9 views

PHP-FPM crashes when having too many users while doing a heavy job

I have a Server running Apache/2.2.22 (Debian), PHP 5.6.17 as FPM and MySQL 5.6.25. The project runs using a CMS called Redaxo (I don't think it's that important, but I'll tell ya anyway). In Redaxo ...
-1
votes
0answers
17 views

Site images lost/cropped, was this an attack, looking for clues [duplicate]

I am still putting things together to get this sorted, so apologies if I fall short on details. I am looking for your help to identify what actually happened. I take care of an eCommerce shop. ...
-1
votes
0answers
7 views

PHP reporting to Event Viewer [on hold]

I've succeeded in reporting all errors to the windows event log. Now I am trying to create a custom view to see only PHP errors from the Application log, but PHP does not show up in the "By source" ...
-1
votes
0answers
11 views

SEO URL's, don't know how to properly configure .htaccess

I have been trying for hours to figure out how to use .htaccess properly to make my posts such as http://domain/post.php?id=38 appear to the user as http://domain/post/the-unreal-truth In my ...
-2
votes
0answers
12 views

how to upload socialengine php site to amazon windows server from computer? [on hold]

I purchase socialengine php and create a instance in aws with a windows server. I also launch a remote desktop and install wamp server and did the hello world test and it works in the local host ...
0
votes
1answer
16 views

PHP FPM Timing Out

We have PHP FPM with Apache running Wordpress. Occasionally I have noticed certain plugins that call external URLs have the ability to really mess with FPM resulting in lots of timeouts etc if the ...
0
votes
1answer
32 views

Debian apache2 is not executing php scripts, instead it's showing the source

I know this is probably most discussed topic online, I did search here and stackexchange and tried various answers but none of them seems to be working for me, hence why I am posting this. I have a ...
-2
votes
0answers
17 views

Crippling TTFB/Wait times on Wordpress Apache Setup [duplicate]

We have a Wordpress site running on a VPS Apache setup, and are experiencing significant TTFB/Wait times on page load, and Ajax calls. We have tried: Disabling all plugins Changing the theme ...
0
votes
1answer
23 views

How to remove injected code between two strings recursively in PHP files using SSH

We have in-house Linux(Ubuntu) development server. Few days ago suspicious code was injected. Just to mention here that we have more than 300 projects. Code is injected in almost every file ...
0
votes
0answers
11 views

Separated Java EE and PHP APIs running in the same machine and sharing the same SQL database general workaround

Having in mind the Java EE and the PHP APIs are completely separated (this is not about using java processes from PHP or PHP processes from java) and they will only share the database, is there any ...
-2
votes
1answer
21 views

Shared hosting vs VPS [on hold]

I am looking at the shared hosting vs VPS plans, and I see that although VPS is much more expensive, I have only limited storage. Whereas in shared hosting I have unlimited storage? Why is this? What ...
0
votes
0answers
11 views

Enable Firebird Interbase for PHP on Ubuntu LAMPP

I installed Firebird on Windows along with XAMPP and all went OK. On Ubuntu, after installing Firebird Server following the instructions here. I uncommented the "interbase.so" line in php.ini, but I ...
-1
votes
0answers
22 views

Apache http server has stopped working; getting crash automatically [closed]

I have already checked couple of post present already for this issue, but no help. I am using xampp version 1.7.3, apache server stops when a wired popup window opens up. There is not much details ...
1
vote
0answers
27 views

migrating htaccess from Apache to nginx

I'm trying to start using Homestead for my non-Laravel projects (legacy) and I managed to install box 0.3.3 successfully by cloning laravel/homestead 2.2.1 (with PHP 5.6.15). Now my problem is due to ...
0
votes
0answers
25 views

nginx GEOIP behind cloudflare proxy showing wrong country (not of end user, but if proxy)

I am using Cloudflare and nginx geoip directives: geoip_country /usr/local/share/GeoIP/GeoIP.dat; geoip_city /usr/local/share/GeoIP/GeoLiteCity.dat; They are picking the IP up OK (as pipaddress ...
3
votes
2answers
30 views

Upgrade Php 5.4 to 5.6? Upgrade debian 7 to 8?

My Operating System is Debian 7.9. My dedicated server hosts only a website in PHP (5.4 apparently), and some databases (MySQL). There are also programs like iptables, fail2ban, etc. set up. I made ...
-2
votes
0answers
32 views

Using Screens with a PHP Script [migrated]

I found an external developer to make me a PHP script to 'snipe' Mineraft usernames. In order for it to operate, I have to start the script from the command line using this: php -f sniper.php > ...
0
votes
2answers
25 views

Deleting expired PHP session files on Ubuntu 14.04

Everything started with MySQL not being able to start. After some web searching I found out that the server ran out of inodes. df -i Filesystem Inodes IUsed IFree IUse% Mounted on ...
-1
votes
0answers
14 views

php mail() is 7 hours delay in receiving mails [closed]

I am using amazon server. I use php mail() for sending mails. Sometimes email delivered in proper time. But at times it takes more than 7 hours to deliver a mail(). Please give me a sloution.
1
vote
0answers
10 views

How to upgrade from php 5.2.14 to php 5.3.3 on SLES11

I am in the process of installing dokuwiki on my SLES11 server, but for some reason, dokuwiki only wants php 5.3.3 and up. I realized that after installing php through the system, and it installed ...
1
vote
1answer
22 views

Small queries wait for large queries to resolve MYSQL PHP on Centos 6.5

I have a Centos 6.5, and I'm running Vaadin on Tomcat, This application has really heavy queries for reports and stuffs. My problem is, when I'm connect to MYSQL from PHP, when I made a small query, ...
1
vote
1answer
44 views

Bad Gateway 502 (nginx + php7) on Digital Ocean

Every time when I try to publish my site, I get after a couple of minutes 502 Bad Gateway error, and in my default-error.log file I get this error over and over (file size was 360MB..): 2016/02/03 ...
-1
votes
0answers
22 views

How do you upgrade PHP 5.4 to PHP 7 on Centos 6.7 using Webtatic?

For a while we've been using Webtatic's php54w (along with mysql55w) to get a more recent version of PHP on our CentOS 6 system. We now want to upgrade to PHP 7, but I'm not sure the correct way to go ...
1
vote
0answers
19 views

Getting 404 Not Found while PHP works in background - Nginx

I have noticed that I get 404 - Not Found when calling a .php file even if the script works in background. The php file downloads a long Json and populates a db until I close the window. I am using ...
3
votes
3answers
246 views

Cron appears to run but doesn't execute in the same way as when run manually from the terminal [duplicate]

I have a php script that connects to an external API returns some data and updates a database table. I can run this directly via my command line / SSH terminal and it works fine (takes about 5 minutes ...
2
votes
1answer
29 views

Run a specivic (older) php version with nginx, php-fpm on debian

In order to migrate old php software, I want to run php 5.3.* so I: Removed php via apt-get purge php* Added the corresponding http://snapshot.debian.org/archive/debian/ to the sources Installed ...
0
votes
0answers
18 views

Cannot Upload Files Over A Specific Size to Wordpress

When uploading larger files to any WordPress site running on a local server it fails. If I try outside of the network it works fine, if I switch to the other LAN network running and connect to the ...
1
vote
1answer
21 views

Restrict user from executing shell commands using PHP

Let's say that i have shared hosting and i want to secure that place, from executing shell commands. I'v installed suphp, so that users can execute PHP separately. I also did some other things in ...
3
votes
1answer
38 views

php-fpm and nginx @ high CPU usage?

My server is with DigitalOcean with the following plan: 2 Core Processor 2 GB Memory My website is receiving thousands of visitors, however, both CPU cores are @ 100%: The issue seems to be with ...
1
vote
1answer
28 views

MySQL keeps crashing at unknown intervals

Version: '5.1.73' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution 160130 08:29:38 mysqld_safe Number of ...
1
vote
0answers
23 views

PHP page refuses to appear despite checking php-fpm, SELinux, and nginx

Problem I have a small web server that hosts a small PHP page that performs a very small function. I used to host this on another machine. I move the website to a new machine with a different ...
1
vote
0answers
19 views

How to run root commands form a website? [closed]

Im working on a project, in it I intend to make a website with server administartion functionalities. So far, I'm able to run all guest commands like ping,nmap,etc. But, I want to run root commands as ...
1
vote
0answers
64 views

Enable XSendFile on Apache on Mac OS X 10.10 - “Invalid command 'XSendFile'”

I have compiled and installed sendfile 0.12 on our mac web server. The module is enabled in the httpd.conf file, as below: LoadModule xsendfile_module libexec/apache2/mod_xsendfile.so I've ...
0
votes
0answers
15 views

Identifying PHP module already loaded breaking new Nginx virtual site

This is my first time on Server Fault, so I hope this is something you can help with. I have added a second website to my Nginx server, but the PHP site installation isn't working and gives the ...
0
votes
1answer
25 views

How can I get my mediawiki to stop thinking I have cookies disabled?

I've searched half a day for how to resolve this issue, and can't figure it out. Shortly after I made my wiki a simple private wiki according to the instructions at Mediawiki's website, it started ...
0
votes
2answers
23 views

.htaccess rule gives 500 error for php file

I used a stackoverflow answer to come up with what I was trying to do. I want requests to http://myserver.com/book/1234 to actually show the content form php file http://myserver.com/book.php?id=1234 ...
0
votes
2answers
35 views

How do I send (legitimate) email on a dedicated server as appearing from different domains?

We need to send email using PHP's mail() function (Actually CakePHP, which wraps that function) directly from our dedicated server (app.ourserver.com). We would like to send mail from ...
0
votes
0answers
2 views

Google Cloud App Engine - How to create subdomains and redirect access to another file/folder? [migrated]

I have a PHP5.5 module created on Google Cloud's App Engine and a SQL module on Google Cloud SQL. Here is my PHP app.yaml: application: myapp version: 1 runtime: php55 api_version: 1 handlers: - ...
1
vote
0answers
23 views

php displays code when the first line of the file is <?php but displays results when the first line is a html tag [closed]

When the first line of my php file is <?php the server shows the php code in the browser. But when I add some html code first, e.g. <html><?php, it runs the php code and displays the ...
1
vote
2answers
117 views

PHP 7 conflicts with PHP 5 (Centos 7)

Trying to install PHP 7 now that it's available; (on centos 7) added repo's: rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh ...
1
vote
1answer
25 views

httpd memory usage (Apache/2.4.16 (Amazon))

I'm running an apache server (default configuration, mod_php) on an amazon linux VM with just 1G of RAM. There are two kinds of php applications running: memory heavy ones that are executed not so ...