lampp

Run a script on a computer from php

人走茶凉 提交于 2021-02-10 06:38:47
问题 I'm unsuccessfully trying to execute a shell command from php. The goal is to switch on/off my music player of my computer/server via internet (with my phone for example). Here is what I would be able to do : I have a very simple file "play.sh" : Code: xdotool key XF86AudioPlay; echo "switched"; if I run it ./play.sh, that works (music player switches on/off) then I have an other very simple php file "play.php" : Code: <?php echo shell_exec("./play.sh"); ?> These two files are in the main

PECL_HTTP is installed, but does not work

僤鯓⒐⒋嵵緔 提交于 2021-02-07 23:53:54
问题 I have installed pecl_http , but when I try to use it, I get an error: Fatal error: Uncaught Error: Call to undefined function http_get() in /opt/lampp/htdocs/tes_http.php:3 Stack trace: #0 {main} thrown in /opt/lampp/htdocs/tes_http.php on line 3 This is my php.ini configuration: extension="propro.so" extension="http.so" extension="raphf.so" [PHP] ;;;;;;;;;;;;;;;;;;; Please help me to figure out why the function is not available. 回答1: The current version of http extension (the package name

How to run `npm install` in Amazon Elastic Beanstalk with .ebextensions

☆樱花仙子☆ 提交于 2021-02-07 03:01:47
问题 I want to deploy my PHP app in a Amazon Elastic Beanstalk with eb deploy command. But my app use gulp to concat and minify scss and js. So I tried these commands to in the file .ebextensios/03npm.config commands: 01-install-node: command: "yum install nodejs npm --enablerepo=epel -y" container_commands: 01-install-dependencies: command: "npm install" 02-build: command: "npm run build" But in the end I receive this error [Instance: i-c7800103] Command failed on instance. Return code: 1 Output:

How to configure local web server such that it should switch between one php version to another

喜夏-厌秋 提交于 2020-01-11 13:56:20
问题 I'm developing one web application, using PHP eclipse IDE. For an instance i want to switch from one PHP version to another version which resides in different location. Below is my working environment : 1) Having Centos OS 2) PHP 5.1.6 have installed already while installing centos OS 3) Above PHP is installed in /usr/bin/ path 4) I have installed LAMPP in /opt/lampp 5) In LAMPP present PHP 5.2.6 version I want to configure local web server such that lampp should choose PHP 5.1.6 (which

Can't find where the socket configuration is in XAMPP for Windows

吃可爱长大的小学妹 提交于 2019-12-25 08:03:04
问题 I'm using Netbeans 7.0.1 in a PHP project. I've installed XAMPP 1.7 in Windows 7 64 bits with the installer we can find in xampp.org. I've changed the port of apache from 80 and 443 to 81 and 442 since I'm using IIS as well. I didn't installed anything as a service, I'm using the Control Panel to start/stop mysql, apache, etc. My problem is that my unit test are failing, and the context is that I'm developing the project with two guys who are working on Macs. They have a configuration file

In localhost it's still showing the lowest version using Ubuntu

删除回忆录丶 提交于 2019-12-25 02:28:06
问题 I have updated my PHP version to 7.2 in my Ubuntu machine. I am getting this version while running this php -v command in my terminal and getting the below output. PHP 7.2.1-1+ubuntu14.04.1+deb.sury.org+1 (cli) (built: Jan 11 2018 22:52:58) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.2.1-1+ubuntu14.04.1+deb.sury.org+1, Copyright (c) 1999-2017, by Zend Technologies But when I am running localhost file

Php composer openssl error

不羁岁月 提交于 2019-12-23 07:41:31
问题 Before asking, i have to say that I have tried every similar question here on stack and elsewhere and failed. I am unable to use composer because of this error: requires ext-openssl * -> the requested PHP extension openssl is missing from your system. I have xampp on ubuntu . What I have tried: I have uncommented ;extension=php_openssl.dll in php.ini (both cli and normal) - did not work Installed openssl through terminal outside of php - did not work Check in phpinfo() if openssl is loaded

Error on creating connection to PDO in PHP

自闭症网瘾萝莉.ら 提交于 2019-12-17 22:45:26
问题 Today, I removed and reinstalled the latest version of lampp in order to move to php 5.30, and suddenly a very simple app is failing to connect to the mysql database. I'm using PDO to connect, and receiving the following error: Warning: PDO::__construct() [pdo.--construct]: [2002] Invalid argument (trying to connect via unix://) in /home/raistlin/www/todoapp/home.php on line 9 Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] Invalid argument' in /home

XAMPP/LAMPP “Connection for controluser as defined in your configuration failed”

微笑、不失礼 提交于 2019-12-12 00:59:38
问题 I see the others who answered this, but the answer says to log in as root and create a new user and database. I can't even get that far. I just installed a brand new XAMPP instance, start it and when I go to localhost/phpmyadmin, I get the error message in the subject line. I also have: 2002 No such file or directory The server is not responding (or the local server's socket is not correctly configured) I checked that as well and I see the socket info in the config is left blank and the

What user does Lampp run under?

最后都变了- 提交于 2019-12-11 19:57:00
问题 I was wondering what user Lampp runs under. For instance, if I install apache without lampp it runs under the user apache. Thank you. 回答1: http://www.apachefriends.org/en/faq-xampp-linux.html#sicherer it says the user name will be lampp I don't know if that's true in general, but it seems to be true for the pages they have you protecting 来源: https://stackoverflow.com/questions/8178527/what-user-does-lampp-run-under