PHP is a widely-used, general-purpose scripting language that is especially suited for web development. Use this tag when you are dealing with a PHP script, installing PHP, or configuring a PHP installation.

learn more… | top users | synonyms

-2
votes
3answers
33 views

How to set own ip address for localhost [on hold]

I have installed centos 7 i want work on Linux,Apache,Mysql,php(LAMP). Can any guide me how to set my own ip config to work
0
votes
1answer
1k views

Slow DNS resolve from curl/lynx etc

I have a strange issue with DNS resolving: Root of the problem is that I get curl errors: "Error executing HTTP request: name lookup timed out". Tried to ping some sites, all resolved fine (and fast). ...
0
votes
3answers
8k views

Apache httpd cannot parse php on CentOS 7

I'm setting up a new CentOS 7 server, I installed apache httpd successfully and get the html welcome page then I installed php 5.4 then tried to test it using test page: <?php phpinfo(); ?> ...
0
votes
1answer
3k views

mcrypt, EPEL and CentOS 6.4

I am having issues installing php-mcrypt. I am not an administrator of any level. I have performed the following. Installed EPEL Installed REMI Configured EPEL Updated YUM Cleaned YUM Installed ...
7
votes
3answers
39k views

PHP 5.5.13 on CentOS 6.5 with yum

I've got problems with installing PHP 5.5.13 (last stable build) on a CentOS 6.5 (64 bit) machine, through yum. Can somebody guide me through this a little bit? It is not a part of the CentOS, EPEL ...
0
votes
1answer
24 views

Upgrade PHP only

I am using PHP Version 5.4.45 and want to upgrade to PHP 5.5. I tried to upgrade with sudo apt-get install php5. But after the install i still have PHP Version 5.4.45. Of course i restarted the ...
2
votes
2answers
4k views

Git pull error libcurl.so.3 not found

I have a php script to git pull from my github repository set up in my webservice hook urls like so: <?php echo shell_exec('~/git/usr/bin/git pull 2>&1'); ?> When I open this script ...
1
vote
0answers
32 views

nginx proxy - 502 bad gateway

First of all let me tell you that I am not an expert on web-servers and things like that. I'm trying to set-up a cloud system on raspi following this link: RasPi Owncloud However, when I try to ...
1
vote
1answer
1k views

phpmyadmin doesn't work after installing php5-mysqlnd

I am currently running into some problems with phpMyAdmin. I set everything up correctly and made sure everything worked. Then later after some developing on some pages I noticed I couldn't execute ...
0
votes
0answers
50 views

What is the matter with my apache?

Today my apache2 suddenly didn't run. cat /var/www/html/info.php <?php echo phpinfo(); ?> No output, no error info at all, no result when to input http://127.0.0.1/info.php in Firefox. cat ...
1
vote
0answers
28 views

download file/backup from remote server to desktop without SSH or SCP?

Issue Background I was trying to install uTorrent on my PHP site and mid-process I was kicked out of SSH and the website went down. libssl.so.1.0.0 and libcrypto.so.1.0.0 were required for uTorrent ...
0
votes
1answer
64 views

My websites are not visible from Apache on localhost

I have installed Ubuntu-based Mint Mate 17.2 distro. I have configured to my taste. Everything is working fine. I have also installed Apache, PHP and MySQL individually using sudo apt-get install. It ...
4
votes
1answer
1k views

suexec with chrooted environment

I'm trying to get a chrooted Apache environment working running mod_fcgid with suexec. Looking at suexec log inside jail, the wrapper scripts are being executed with no problems, however, when I look ...
1
vote
2answers
220 views

How can I reach an open & listening port on Linux?

After forwarding the port I wish to open, I cannot seem to connect or get any data to this port. The PHP CLI software I have written is listening to the port actively on Ubuntu 14.04. Part of the code ...
4
votes
2answers
10k views

PHP Upgrade Error (PHP 5.3.3 to PHP 5.4.19 on CentOS 6.4)

I'm using CentOS 6.4 and I was following this tutorial in order to upgrade PHP from v 5.3.3 to v 5.4.19 but I got the following error: Error: php54w-common conflicts with php-common-5.3.3-23.el6_4....
1
vote
0answers
74 views

Apache, can't link to Home directory, Alias does not work

I am trying to make a folder in which I can build websites (using php). I have switched from a Windows system where I was using Uniserver (http://www.uniformserver.com/) which is a setup with MySQL, ...
3
votes
1answer
151 views

Access a file in PHP through a symbolic link from a user that normally doesn't have permission

I have this website, where if the user submits a form, a python script is executed through a php page, and the python script creates a zip file and should offer it to the user for download through a ...
4
votes
1answer
67 views

accessing path from outside the root with symlink

I need to add an outside path to my apache configuration. (httpd) so, I made a symlink to this path in my httpd root folder, the path is: /var/log/httpd/ (I want to display logs directly in my ...
1
vote
1answer
137 views

How to update apache, mysql, phpmyadmin and php on Raspbian?

I have my own web server running on my raspberry pi, and all my programs are outdated. I would like to update my PHP, Apache, MySQL, and phpMyAdmin. Can anyone tell me how to update all of these? I'm ...
1
vote
1answer
68 views

php links against system libxml instead of version specified by ./configure --with-libxml-dir

I'm trying to build php-5.5.33 from source on a Debian 8 system; configure and make both run successfully, but when I run make install I get the following error: Installing PEAR environment: /...
4
votes
1answer
3k views

Howto fix my PHP install on FreeBSD using pkg

I've been messing around with pkg install, installing / removing both php5-5.4.29 and php55-5.5.13. But when I run php from the command line, it will give me an error like this: PHP Warning: PHP ...
0
votes
1answer
330 views

Fedora 23 Apache and PHP not working

I am struggling to get an answer to this. I have Fedora 23 install, in place upgrade from Fedora 22. When I go to http://localhost I get a list of files and folder and not the Fedora Test Page as it ...
0
votes
0answers
25 views

ffmpeg-php is showing in phpinfo but not working

Php info result ffmpeg-php version 0.7.0 ffmpeg-php built on Jul 13 2016 22:27:57 ffmpeg-php gd support enabled ffmpeg libavcodec version Lavc57.50.100 ffmpeg libavcodec license nonfree and ...
1
vote
1answer
1k views

PECL memcached installation gets error

I installed Zend Server 6 (debian). Also installed several packages: apt-get install gcc apt-get install g++ apt-get install libncurses5-dev apt-get install zlib1g apt-get install zlib1g-dev apt-...
1
vote
1answer
241 views

Need to grab IP of visitors from the Apache logs

I want to store the IP of the visitors to my website, and I want to use PHP. Should I use cron for it or how will be the visitors' IP will be automatically stored?
0
votes
0answers
16 views

not able to install ffmpeg php

I have installed this ffmpeg in CentOS server using ffmpeg auto installer version N-80962-g70d418c. After that I downloaded ffmpeg-php-0.6.2 and tried to configure and I got this error: configure:...
2
votes
0answers
698 views

proper permissions under HTTP root with Apache2 + FastCGI + Suexec [closed]

I currently have a setup which runs Apache2 + FastCGI PHP + Suexec. As an example, I'm using /mnt/data/www/vhosts/inflex.co.uk/htdocs as a DocRoot for one of my virtual hosts. I have a script /mnt/...
0
votes
2answers
51 views

Remove injected code from all php files in directory on Ubuntu [duplicate]

I have a site where some code was injected into a very large number of php files and removing them manually is not feasible due to the number of files. I can search for a variable name from the ...
1
vote
1answer
40 views

Printing to ubuntu client via network, using php that reside in windows 7 webserver [closed]

I plan to change my windows 7 client to ubuntu 14.04 LTS. The client has a local printer (Epson LX-310) that is used to print an invoice in web app environment built using apache with php (the web ...
0
votes
1answer
104 views

Running SSH command from PHP gives sudo: no tty present and no askpass program specified error even though NOPASSWD settings are done

I am using LAMPP to run apache server. From a php file I am executing a python script which executes ssh, scp commands. But I am getting error: sudo: no tty present and no askpass program specified ...
0
votes
1answer
4k views

How to install Owncloud on CentOS 6.5

I wanted to install Owncloud on my VPS running CentOS 6.5. I followed the instructions on the official owncloud website but when I run the command yum install owncloud it says Error: Package: ...
11
votes
6answers
14k views

Is there any command to enable/disable a php extension from command line?

Is there any command to enable/disable a php extension easily from command line? (php.ini)
0
votes
0answers
322 views

How to install laravel on xampp?

I'm using the latest version of manjaro 64 bit and latest version of xampp. I want to install composer and laravel; I tried many solutions on stackoverflow and askubuntu. Every time I see a different ...
0
votes
0answers
14 views

Unable to Authenticate PhPVirtualBox Remote host - Firewall off - Auth Off

I am trying to get the most very basic setup running that I can build upon for controlling a remote Virtualbox installation. The setup : Server A : 192.168.1.10 Oracle VM VirtualBox web service ...
3
votes
2answers
902 views

PHP app crashes: child pid exits with Illegal instruction (4)

I have a CentOS 6 server with Apache and PHP. I run some application and can constantly reproduce this crash. After some sequential action the app dies and the only trace I found is the following ...
0
votes
1answer
44 views

Build a sitemap from local PHP forum pages

I've been reading stackexchange for years now, and always managed to find an answer to the problems I had to deal with. This time however, I'm going to ask a question as I could not find a solution to ...
1
vote
2answers
61 views

Why my web browser always downloads the .php page rather than show it?

I installed a CentOS7 system in VMware Workstation. The host machine's OS is Win7; I compiled and installed apache2 (httpd) and MySQL in CentOS, and they both work well, I mean I can visit the index....
0
votes
1answer
1k views

Installing oci8 php extension

On a CentOS 7 server, I have installed PHP from remi repository. I need to connect to Oracle 9.2 on a remote machine. Installing oci8 via yum install oci8 results OCI8 Version 2.1.0 which is not ...
0
votes
1answer
274 views

Installing older PHP versions on Debian Jessie

I need to conduct some testing on older version of PHP, and I want to use my laptop running Debian Jessie. At the moment, I've got PHP5.6 installed on it, which I tried to delete with apt-get remove ...
1
vote
1answer
25 views

phpVirtualBox - Control Remote Servers - Central Management

Not sure if this is possible, all my google results come up with RDP stuff, or just basic, how to install phpVirtualBox. I was wondering If I can set up a Central phpVirtualBox and connect it to ...
1
vote
2answers
490 views

How to install lampp (php7) on Manjaro?

I Tried following this guide, didn't work and it's the only guide I can find. I have php7-apache, apache, php7, mariadb, php7-mcrypt, all installed, either through pacman or yaourt, all have their ...
1
vote
1answer
2k views

Why don't I see the XAMPP page on Linux Mint?

I am trying to install PHP MySQL on Mint 12. I downloaded and installed XAMPP. According to the tutorial, when I go to localhost in a browser I should see this: Instead, I see: It works! This is ...
2
votes
3answers
4k views

Troubles installing php with MySQL support

So I wasn't sure if this question would go best here or on Overflow or Server Fault, but decided to try here first. I'm installing LAMP on a VPS, and am running into issues configuring and building ...
2
votes
1answer
727 views

How can I monitor the load of a php script on a server?

We've got a website on our dedicated server which seems to be causing problems. Recently it has been crashing our dedicated server - it's very annoying. It will crash at random times. The tech ...
2
votes
1answer
1k views

Getting PHP fatal errors in vTiger while logging from a normal users [closed]

I am getting the error below and notices in Apache logs when I am trying to login with any normal user on vTiger although admin user is working fine and able to see everything as expected. Below are ...
0
votes
1answer
2k views

Install apache,php and mysql on CentOS VPS

I try to install apache,php and mysql server by these commands. yum install httpd yum install php install mysql-server mysql service httpd start service mysqld start to start your mysql server ...
3
votes
1answer
1k views

Running MPlayer through a PHP script

I'm trying to open an MPlayer instance on my server from a PHP script (using PHP's system() function). I've looked into making mplayer a slave ( http://www.mplayerhq.hu/DOCS/tech/slave.txt ) but when ...
0
votes
2answers
1k views

How find and install PHP 5.3.10 or later on CentOS 6.5?

When I check yum list php it only shows 5.3.3 which is older than 5.3.10. How do I get and install the newer PHP? (Using CentOS 6.5)
1
vote
1answer
53 views

Disk I/O and load average peaks once every hour

We have updated our server from Debian Wheezy to Jessie and from php5.6 to php7.0, but now we have a disk I/O and load average peak exactly every hour. The exact time depends on the system start time. ...
1
vote
2answers
9k views

Apache 2 and PHP 5 not working

I have a test.php file in the web server directory with php phpinfo(); content. When I try to execute php test.php at a shell then it executes correctly. But when I try to open the web page in a ...