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
0answers
4 views

Apache http server has stopped working; getting crash automatically

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. popup image There is not ...
1
vote
0answers
18 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
14 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
22 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
2answers
31 views

Using Screens with a PHP Script

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
20 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
11 views

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

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
8 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
17 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
31 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
16 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
18 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
231 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
27 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
17 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
37 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
votes
0answers
10 views

Sentrifugo is displaying blank screen after installation is complete, not showing login screen [closed]

I just installed Sentrifugo on my 32 bit vmware machine using the builtin administrator user. After successful completion of installation, i always get blank screen and never seen the login screen. ...
1
vote
1answer
27 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
22 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
42 views
+50

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
14 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
0answers
17 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
22 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
32 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
86 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 ...
0
votes
1answer
16 views

Running cron job manually and immediately with PHP

I just wanted to run all my cronjob manually and immediately, following command works well in command line terminal but not working with shell_exec crontab -l | grep -v '^#' | cut -f 6- -d ' ' | ...
0
votes
1answer
28 views

Nginx .php scripts restriction in subfolder

I would like to deny external (from web) access to some PHP files related to MoxieManager. Whole MoxieManager is in www/moxiemanager folder, where www is accessible from web. Now I tried this ...
0
votes
1answer
18 views

Single Thread CPU Performance with PHP

I have a lamp web server running a website that is getting very feature bloated. I have a few pages that are taking 2-3 seconds of CPU time to render the PHP. Most other pages a processed in about .2 ...
1
vote
2answers
37 views

How to check if php built-in server is running

Recent versions of PHP has a built-in webserver (for non-production environments) that can be started with php -S [...]. How can I check if it's already running on the server before attempting to ...
0
votes
1answer
37 views

Configure Linux and PHP to send email via script instead of SMTP

I have a server with a static IP and also a domain pointing to it. Because it is behind a firewall that blocks SMTP (ingoing and outgoing), I am not able to send any EMail from it. To be able to send ...
0
votes
1answer
6 views

Mercury not sending emails

I have a Mercury SMTP server running on localhost (announcing as 127.0.0.1) right now. Unfortunately, I am unable to send emails from it to GMail. I tested sending an email to myself using ...
0
votes
2answers
38 views

Regarding rewrite engine

My htaccess file contains this Options +FollowSymLinks RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^.*$ ./index.php this redirects all ...
0
votes
0answers
63 views

Cannot start Debian 8 (Jessie) after installing PHP 7

I've just installed PHP 7 on my VirtualBox VM (host Windows 7, guest Debian 8). Links: german how-to on got-tty.org, Dotdeb blog article "PHP 7.0.2 for Jessie", Dotdeb blog article "Instructions". ...
-1
votes
2answers
43 views

Making php use specific network interface / IP

TL;DR: Is there a runtime or php.ini directive for IP/network interface? Setup: Debian, NginX, php-fpm The machine has multiple IPs configured in the network interfaces. Each virtual host in NginX ...
0
votes
1answer
29 views

PHP.ini file causing WordPress site to crash on Windows IIS

I'm running WordPress on Windows IIS (GoDaddy Hosting). The website was created using Visual Composer, which requires an increase in the memory limit. The website is also installed in a subdirectory ...
0
votes
2answers
52 views

Requests made to a website with a different domain/url in log files, hacking attempt?

in one of my websites I am logging all url requests made to the server. I log that data for stats purpose to improve the website. The logs look like http://example.com/search 2016-01-12 ...
1
vote
1answer
28 views

How to allow just one site to use PHP's exec() function

I have a simple Apache with mod_php server on CentOS 7. I've disabled the exec function in php.ini but I need to use it on one Vhost. Now obviously I know I can't use multiple php.ini files and I know ...
1
vote
0answers
8 views

Apache2 mod-fcgi seperate users for two applications

I try to configure my apache like this: https://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-ubuntu-8.10 The point is that I want to have an user for typo3 and one for ...
-1
votes
0answers
90 views

Ioncube 5.3 wont work i have php 5.3.3

Hello please help me i have pronlem with ioncube [root@vps ~]# cat /etc/php.d/00-ioncube.ini zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.3.so [root@vps ~]# php -v Failed loading ...
-2
votes
0answers
27 views

Apache consuming too much CPU (each time when access)

I have some troubles with CPU loading by Apache and would be grateful for your help as I do not understand much (but I am trying to...). I use Kubuntu machine as a server machine for The Bug Genie ...
-1
votes
0answers
14 views

PHP-gd wont work after install

I'm trying to get PHP-gd working on centos 7, I've installed it using YUM and restarted and ensured it is in the php.ini file but it still won't load, phpinfo shows no GD, any ideas what problem could ...
0
votes
1answer
55 views

Nginx - redirecting all requests after a URL path to a PHP script

In our existing Apache setup, we have a .htaccess file in a folder which redirects all requests to a PHP handler. For example: www.example.com/gallery/user01/xyz.png For this URL request: The ...
-2
votes
0answers
16 views

What would trigger haveged process?

Every now and then, I would see /usr/sbin/haveged -w 1024 -v 1 --Foreground process running when I view top. Why is this process running? Could another process like mariadb or apache trigger this ...
0
votes
4answers
70 views

Migrating really old RedHat server to cloud

I've got a client with a really, really, really old PHP3 webapp that runs on an ancient consumer-grade PC with RedHat 7.somethingOld. I've got backups of the software and database but he's very tight ...
1
vote
1answer
22 views

Cannot send email address to office 365 email address

i have a web page used to send direct email set of email addresses stored on my database . all email addresses are receiving my emails fine except office 365 users so my question is do i need extra ...