lampp

PHP can't open uploaded files

时光毁灭记忆、已成空白 提交于 2019-12-11 12:32:00
问题 I have Ubuntu Server with lamp. When i uploading files like xls or images it works fine, but when I trying to open it says me that the Excel file was broken. Same thing happens with images Is it possible that php changes the file? Permissions for /var/www/publick_html/uploads is 777 回答1: The problem was in versions of apache and php. Version of apache was 2.2 and php was 5.4 I upgraded my apache to 2.4 version and now it works fine. 回答2: well, I know,I use windows and maybe this is extremely

Installing Mongodb with Lamp On Ubuntu ( Linux )

♀尐吖头ヾ 提交于 2019-12-10 19:53:46
问题 I followed the following steps to install mongo's php drivers with lampp. http://abstract2paradox.wordpress.com/2012/01/26/adding-mongo-db-driver-to-xampp/ When I start lampp its gives the following error Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/mongo.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/mongo.so: wrong ELF class: ELFCLASS64 in Unknown on line 0 Any ideas? Thanking you 回答1: This means that your PHP

Create a Vhost in Ubuntu 16.04

烈酒焚心 提交于 2019-12-10 10:19:54
问题 I have started working in laravel and using lampp. I have watched many tutorials that use a vhost to make user-friendly url. I want to do it on Ubuntu 16.04. Following tutorial is not working for me: https://ourcodeworld.com/articles/read/302/how-to-setup-a-virtual-host-locally-with-xampp-in-ubuntu <VirtualHost *:80> DocumentRoot "/opt/lampp/htdocs/basicwebsite/public" ServerName mywebsite.dev </VirtualHost> 回答1: Setup a virtual host for a Laravel project First, copy the default configuration

fopen(dbinfo.php): failed to open stream: Permission denied Ubuntu 12.04 LTS

好久不见. 提交于 2019-12-08 06:15:08
问题 I am trying to run a php project on UBuntu . It has an install script which creates the mysql database. When i try to run the script i am getting the following errors: Warning: fopen(dbinfo.php): failed to open stream: Permission denied in /opt/lampp/htdocs/project/install.php on line 12 Warning: fwrite() expects parameter 1 to be resource, boolean given in /opt/lampp/htdocs/project/install.php on line 19 Warning: fclose() expects parameter 1 to be resource, boolean given in /opt/lampp/htdocs

MySQL deactivated in Lampp, Xampp on Linux 12.04

我怕爱的太早我们不能终老 提交于 2019-12-08 05:26:49
问题 I have freshly installed xampp-linux-1.8.1 on my Ubuntu 12.04 (Mint 13 maya) Operating system. When run lampp, I get : /opt/lampp/lampp start Starting XAMPP for Linux 1.8.1... XAMPP: XAMPP-Apache is already running. XAMPP: Another MySQL daemon is already running. XAMPP: XAMPP-ProFTPD is already running. XAMPP for Linux started. In the : localhost/xampp/ MySQL DataBase is Deactivated !!! ps -aux | grep 'mysql' Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html mysql

MySQL deactivated in Lampp, Xampp on Linux 12.04

家住魔仙堡 提交于 2019-12-08 05:17:33
I have freshly installed xampp-linux-1.8.1 on my Ubuntu 12.04 (Mint 13 maya) Operating system. When run lampp, I get : /opt/lampp/lampp start Starting XAMPP for Linux 1.8.1... XAMPP: XAMPP-Apache is already running. XAMPP: Another MySQL daemon is already running. XAMPP: XAMPP-ProFTPD is already running. XAMPP for Linux started. In the : localhost/xampp/ MySQL DataBase is Deactivated !!! ps -aux | grep 'mysql' Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html mysql 3159 0.0 0.9 316264 31880 ? Ssl 16:48 0:00 /usr/sbin/mysqld root 4745 0.0 0.0 4648 840 pts/5 S+ 17:02

svn: Could not open the requested SVN filesystem

情到浓时终转凉″ 提交于 2019-12-06 16:02:24
问题 I tried to set up svn in the LAMPP environment. My svn repositories are in /var/svn/repos , and the repos directory is owned by root:root . Now, when running the command svn import test http://localhost/svn -m 'init' I see this error message: svn: Could not open the requested SVN filesystem How can I make the command run successfully? 回答1: You need the repository to be accessible by the web server (Apache). Change the user:group to something like apache:apache, httpd:httpd, or www-data:www

Create a Vhost in Ubuntu 16.04

狂风中的少年 提交于 2019-12-05 20:02:40
I have started working in laravel and using lampp. I have watched many tutorials that use a vhost to make user-friendly url. I want to do it on Ubuntu 16.04. Following tutorial is not working for me: https://ourcodeworld.com/articles/read/302/how-to-setup-a-virtual-host-locally-with-xampp-in-ubuntu <VirtualHost *:80> DocumentRoot "/opt/lampp/htdocs/basicwebsite/public" ServerName mywebsite.dev </VirtualHost> Setup a virtual host for a Laravel project First, copy the default configuration file and rename it: $sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available

svn: Could not open the requested SVN filesystem

无人久伴 提交于 2019-12-04 18:33:00
I tried to set up svn in the LAMPP environment. My svn repositories are in /var/svn/repos , and the repos directory is owned by root:root . Now, when running the command svn import test http://localhost/svn -m 'init' I see this error message: svn: Could not open the requested SVN filesystem How can I make the command run successfully? You need the repository to be accessible by the web server (Apache). Change the user:group to something like apache:apache, httpd:httpd, or www-data:www-data. I had same problem with my subversion (1.6) on default repository of cent OS. Finally i un-installed svn

Error on creating connection to PDO in PHP

隐身守侯 提交于 2019-11-28 20:22:17
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/raistlin/www/todoapp/home.php:9 Stack trace: #0 /home/raistlin/www/todoapp/home.php(9): PDO->__construct(