PHP is a server-side scripting language, used for building browser-based applications. This includes websites as well as programs that don't really need any form of interaction with the user.

learn more… | top users | synonyms (2)

0
votes
1answer
435 views

Install xdebug in Ubuntu 16 with php5 - error: can't read ltmain.sh

I'm trying to install xdebug in Ubuntu 16 with PHP 5 and it fails. The command that I use is: sudo pecl install xdebug I searched a lot on forums but couldn't find the cause for this one. Could ...
0
votes
0answers
27 views

Postfix is sending emails signed and coded and everything is fine but not when the server sends using php mail function

First of all I must say I have searched a lot for the answer and I am stuck with this problem since 3 days. Postfix is sending emails signed and everything is fine but not when the server sends ...
0
votes
0answers
28 views

Start Java process within a PHP application

Not sure if this is the right place to ask or should I ask on stackoverflow.com but I will try here first. I have a php web application and somewhere within this application I have a button. That ...
1
vote
2answers
80 views

How to check OS version using php (script) file

I have a Linux Server and only having ftp access for it I want to check Server full detail like OS version, RAM, HDD, installed packages etc is it possible using php script file to get information for ...
0
votes
0answers
67 views

Lampp - Virtual Hosts not working

I have installed a fresh package of Xampp on Ubuntu 14.04 I am trying to create a virtual host for my project but it is not working. Below is how I created a virtual host: sudo gedit ...
3
votes
1answer
114 views

php5 and phpmyadmin not installing

I have installed mysql, mysql-server, apache2 and many more. May be I have installed some wrong PPA or programs which cause this problem. Basically, I need to run local server (eg. for wordpress). So ...
0
votes
1answer
63 views

Does MSSQL interfere with MySQL on LAMP SERVER?

I'm currently working on a project that requires me to connect remotely to a MSSQL database on a different server. After some research and crawling of this site and google I think one of the ...
0
votes
1answer
54 views

Accidentally installed libphp-adodb on top of PHP 7 - how to uninstall safely?

On a server with PHP 7, I have accidentally installed the package libphp-adodb $ sudo apt-get install libphp-adodb This seems to have lots of dependencies to PHP 5, which completely broke my system ...
0
votes
0answers
40 views

Can't connect to MySQL

I have an issue that is driving me crazy. I have a php script to connect to a MySQL db and retrieve data. But I get an odd error: ERROR 1042 (HY000): Can't get hostname for your address I've ...
0
votes
1answer
154 views

How to migrate from PHP 5.5.* to PHP 7.0.* and upgrade the entire LAMP stack on Ubuntu Linux 12.04 LTS(64-bit) operating system?

I'm using Ubuntu 12.04 LTS (64-bit) operating system on my local machine. I've already installed LAMP stack (Linux, Apache, MySQL and PHP) on my local machine. Upon running following commands from ...
0
votes
0answers
34 views

How to edit the config file for the personal website deployed in Ubuntu using commandline not manually

I am successfully deployed my PHP website in Azure Ubuntu VM. Now I need one help. I have to connect my website DB with my Azure MySQL DB(Hostname, Username, Password). So I have to edit the ...
1
vote
0answers
54 views

PHP - Update Apache Version Ubuntu

Recently after vulnerability assessment and penetration testing we are asked to upgrade our apache ubuntu version. Below is the screenshot attached. The solution they proposed is Update version of ...
1
vote
0answers
283 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
38 views

mysqli_query no return

I've been trying to create a simple login script with php and mysql. I'm able to connect to the database and enter data into it, but I can't use SELECT to get data from the DB. This is my register ...
0
votes
0answers
21 views

php module not loaded in apache mods-enabled

I've a server with Apache 2 installed, and PHP 5.6.17. The thing is that PHP only work for me in the terminal, but when I go to the browser and call a webpage apache shows me the php code. The, I went ...
0
votes
0answers
81 views

htaccess remove www from subdomain using wildcard ssl

I am having some issues with my htaccess file. I have the following rewrite rules in place to remove the www from the reguest url... # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine ...
0
votes
1answer
1k views

apt-get update errors

Sorry for my english. I have a vServer and everytime then i try to make "apt-get update" this Errors will be come in the end but why? How i can fix that? W: Ignoring Provides line with DepCompareOp ...
1
vote
1answer
130 views

PHP version on Ubuntu Server 14.04.4 LTS

I would like know what specific version of PHP is installed* on stated Ubuntu server. I have read that 14.04.4 upgraded to PHP 5.5, however I need to know if the PHP version is >=5.5.9. I have failed ...
0
votes
0answers
191 views

php permission denied on ubuntu webserver

I have an Ubuntu web-server on Ubuntu Mate 15.10, with php-fpm, and nginx 1.9.3. I tried to do some simple file IO today, but got: failed to open stream: Permission denied from ...
-1
votes
2answers
53 views

php5-curl not installing : 403 Forbidden error

Whenever I try to install php5-curl using apt-get, I get the following error : E: Failed to fetch http://ubuntu.ntc.net.np/ubuntu/pool/main/p/php5/php5-curl_5.6.4+dfsg-4ubuntu6.4_amd64.deb 403 ...
0
votes
0answers
13 views

webserver displaying HTML5 MP4 incorrectly

I'm here because ubuntu 12.04 (apache/php) is displaying my html5 mp4 video incorrectly. It is cutting off the bottom and also displaying very low quality. I've just been serving this same file on an ...
0
votes
1answer
46 views

how to take input from php and execute it in a command-line program in terminal linux

i cant take an input enter by a user to load the input in a Linux terminal to execute it in a command line program...can you help please...for example when a user enter a value and press enter in must ...
3
votes
1answer
38 views

XAMPP: running index.php leads to error (Win/Linux)

I used to use XAMPP on a Windows Computer to see how my homepage (php) works. Everything works fine without any issues. I now installed XAMPP on my Notebook which runs on Linux. Installation went ...
1
vote
1answer
102 views

installing composer

I'm new on Unix-like systems, and using Ubuntu now. Experiencing trouble trying to install Composer with command: (sudo) curl -sS https://getcomposer.org/installer | (sudo) php mv composer.phar ...
0
votes
0answers
27 views

File Rights messed up! :(

For homework I need to manually make an LAMP server (i am a beginner) I did the installation and configuration of Apache, Mysql and php with my "root" user and then after that i came beware of errors ...
0
votes
2answers
74 views

Apache2 error no listening sockets avaliable

Someone help me. This error appeared after I installed without wanting NGINX but had the ispconfig . I want to continue to use the ispconfig . It seems that something is on the port that it is ...
3
votes
1answer
35 views

Why Perl is included into lamp-server^?

I know there are many methods and many questions about LAMP installation. However, non have an answer for... Why does command sudo apt-get install lamp-server^ installs some Perl libraries? As ...
0
votes
0answers
210 views

When installing php from source configure: error: Cannot find OpenSSL's <evp.h>

I am trying to build php from source but ./configure gives error configure: error: Cannot find OpenSSL's my openssl version returns OpenSSL 1.0.2f 28 Jan 2016 and which openssl ...
0
votes
0answers
115 views

PHP doesn't use upgraded MySQL 5.7 on 14.04

I successfully upgraded MySQL to version 5.7 using this tutorial: http://www.devopsservice.com/installation-of-mysql-server-5-7-on-ubuntu-14-04/ However, when I look at phpinfo(), my PHP is still ...
0
votes
0answers
94 views

Can't view any php files stored in var/www/html

Im new to Linux and the whole idea of apache. I created a website using php, html and css. I used wampserver, phpmyadmin and mysql. All worked fine on my laptop. Recently I thought of a project to ...
0
votes
0answers
72 views

Install Php 7.0 and Laravel 5 offline Ubuntu 12.04.3 LTS

I have computer with Ubuntu 12.04.3 LTS with no internet(use as server) and I need to install Laravel 5. I tried to install Php 7.0 that I downloaded from here: http://php.net/downloads.php But still ...
0
votes
0answers
148 views

Call to undefined function sqlsrv_connect()

I want to connect to the database server using my ubuntu on local machine, but I got this error when trying to acess the databse : and this is what I've tried : Download the driver from here ...
0
votes
1answer
36 views

Apache and PHP Error Message

I'm working on a personal project and keep getting this error message: Warning: require(/var/www/html/owncloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift.php): failed to open stream: No such ...
0
votes
0answers
39 views

slow queries on mysql server

I have a lamp server based on UBUNTU. My issue is that if I run the query (not all of them but just two) directly on the server itself they take no more than 5 seconds each. If on the other side I ...
1
vote
0answers
116 views

Not able to configure Fast CGI with Apache 2.4

I am trying to configure fastcgi(fcgi) on my local server . Followed the following steps apt-get remove libapache2-mod-php5 apt-get install libapache2-mod-fcgid apt-get install php5-cgi a2dismod ...
0
votes
0answers
43 views

Phpmyprepaid “setup.php” displays messy code

Help me ! I want to install "phpmyprepaid" on Ubuntu 14.04, on the tutorial they say to open this link on my browser. http://my-ip-address/phpmyprepaid/www/install/setup.php but it show this result ...
0
votes
1answer
25 views

Parse Error:Syntax Error T_String

I have ubuntu as guest on virtualbox and host is Windows 7 ultimate. phpinfo(); in test.php at /var/www/ displays the proper information, yet when I echo something out, I receive : Parse Error:Syntax ...
0
votes
1answer
112 views

Can I use shell_exec or exec as a different user than the apache user?

I have a media server (with only LAN access) that I want to be able to control via some scripts accessed by a web interface. So I want to run the scripts like I would via an SSH terminal. using the ...
0
votes
0answers
19 views

I messed up my php.ini file on ubuntu php 5 [duplicate]

I've made a mistake in my php.ini file. How do I go about resetting the php.ini file?
0
votes
0answers
17 views

I need help (xampp - php)

I install xampp for ubuntu, and the only way to open archives .php is when I creade .php in /opt/lampp/htdocs. But when I write "localhost/example.php" the browser open that file, but the styles and ...
0
votes
0answers
105 views

PHP session files are created very fast and are not deleted automatically

Platform: Linux Ubuntu 14.04 Main problems: PHP session files within /var/lib/php5 are never deleted New session files are constantly being created at a rapid speed The garbage collection is ...
0
votes
1answer
82 views

How to install php5-phpdbg in Trusty (14.04)?

The package php5-phpdbg is not included in the universal repository of trusty. It is included from vivid and ahead as you can se here. So, how can I install phpdbg in Ubuntu 14.04?
0
votes
1answer
43 views

is php5-curl what I want?

I have an NGINX web-server, with php-fpm. I would like to install curl, but I’m not sure that php5-curl is the right package for my server. Should I be concerned? is there a more appropriate package? ...
0
votes
1answer
17 views

Filtering nginx traffic

I have an nginx server running on ubuntu server. I have many websites and hundreds of pages hosted on the server. I want to execute one PHP function on each page when it is requested by a user. It is ...
1
vote
1answer
197 views

Cannot install phpmyadmin on ubuntu 14.04 LTS

I have installed ubuntu along side with window 10 (dual boot). I have set up apache2 server, mysql and install PHP 7, and then I want to install phpmyadmin I cannot install it. I have try many time, ...
0
votes
0answers
35 views

Can not send email to user's mail box in Ubuntu 14.4

I have an issue.I have one app where one can send email to a particular user using PHP and Angular.js.I am using Ubuntu server.Here after sending mail the success message is coming but the sent mail ...
0
votes
1answer
74 views

php -v showing 5.4 and phpinfo show 5.6

I am trying to install laravel that need > 5.5php version. My current php is of version 5.6, but composer detect version 5.4 and gives error. How to remove php 5.4 or make the correct version for ...
0
votes
1answer
123 views

How To Set Up the Ubuntu 14.* Included X-Windows(xUbuntu) / MySql / PHP (Apache 2 ) In VMware

I had used Linux system for near decade , but now I need to use it again because I want to use more open resources and try to use like DevOpe solutions so that I hope I can give me some notices and ...
0
votes
0answers
34 views

Permission denied while using PHP Mail using Postfix

I already asked this question in Stack Overflow (http://stackoverflow.com/questions/35159754/permission-denied-while-using-php-mail-using-postfix) but since I am not sure whether it is a Ubuntu ...
0
votes
1answer
2k views

How to fix error processing package git-daemon-run?

I am trying to install php curl like so: sudo apt-get update sudo apt-get install php5-curl But I keep getting an error. Reading package lists... Done Building dependency tree Reading state ...