LAMP

PHP - MySQL access denied error - Works in other programs

ⅰ亾dé卋堺 提交于 2019-12-20 04:30:14
问题 Access denied for user 'root '@'localhost' (using password: YES) Yes, this error is all too common, and I have spent much time researching it. However nothing solved the problem. I get this error when attempting the first connect in one of my PHP scripts I'm developing. If it helps to know, I'm running Linux Mint with the LAMP configuration detailed at http://community.linuxmint.com/tutorial/view/486 installed. The thing is, any other application works with connecting. Both logging into

PHP + PhantomJS Rasterize

扶醉桌前 提交于 2019-12-20 03:34:22
问题 I'm using PhantomJS 64 bit in my PHP application to dynamically capture an HTML page to be emailed to the user. phantomjs rasterize.js "http://..." /path_to_images/image.png This method works fine when I run the above on the command line but when the PHP script runs the command using exec it fails with no output and returns exit code 11. If I switch it to use the 32 bit phantomJS binary, the command succeeds but fails to load the google JSAPI on the page since with error Reference Error: can

PHP Server Side Printing Ubuntu Server

对着背影说爱祢 提交于 2019-12-20 01:14:32
问题 I have been all over stack looking at what is required to do this and have wound up being slightly confused. Lets get one thing straight this is a local based intra-net and I do understand that PHP is server side. I am running a company management solution on a web based PHP,JAVA,Jquery Idea. and we would like to print reports directly from the "LINUX" server and receipts etc. I have installed cups on the server and the server is printing fine and I am now just stuck on whether or not it is

linux安装配置LAMP服务器(Apache+PHP+MariaDB,RHEL 7.0)

偶尔善良 提交于 2019-12-19 12:26:15
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 准备篇: RHEL 7.0系统安装配置图解教程: http://www.osyunwei.com/archives/7702.html 一、使用系统镜像文件配置本地yum源 1、使用WinSCP.exe等工具上传系统镜像文件 rhel-server-7.0-x86_64-dvd.iso 到/usr/local/src目录 2、使用Putty.exe工具远程连接到RHEL服务器 3、挂载系统镜像文件 mkdir /media/cdrom #新建镜像文件挂载目录 cd /usr/local/src #进入系统镜像文件存放目录 ls #列出目录文件,可以看到刚刚上传的系统镜像文件 mount -t iso9660 -o loop /usr/local/src/rhel-server-7.0-x86_64-dvd.iso /media/cdrom #挂载系统镜像 cd /media/cdrom #进入挂载目录,使用ls命令可以看到已经有文件存在了 备注:umount /media/cdrom #卸载系统镜像 4、设置开机自动挂载系统镜像文件 vi /etc/fstab #添加以下代码。实现开机自动挂载 /usr/local/src/rhel-server-7.0-x86_64-dvd.iso /media/cdrom

httpd-2.4基本使用及lamp基础(01)

孤人 提交于 2019-12-19 04:59:13
Centos 6 默认安装http版本为2.2,如果想安装2.4版本则需要升级apr   centos6默认:apr-1.3.9,apr-util-1.3.9   编译安装步骤:     1.4+版的apr和apr-util   前提:安装开发环境,安装pcre-devel    1:apr   (1):yum groupinstall “Development Tools” “Server Platform Development” -y     yum -y install pcre-devel   (2):下载升级的版本; apr-1.5.0.tar.bz2 ; apr-util-1.5.3.tar.gz2   (3):tar xf apr-1.5.0.tar.bz2   (4):cd apr-1.5.0   (5):./configure --prefix=/usr/local/apr   (6):make && make install 2:apr-util   (1):tar xf apr-util-1.5.3.tar.gz2   (2):cd apr-util-1.5.3   (3):./configire --prefix=/usr/local/apr-util --with-apr=/usr/local/apr   (4):make && make install

LAMP部署

旧巷老猫 提交于 2019-12-19 04:06:19
CENTOS 6.5版本 yum -y install httpd 1.yum install httpd mysql-server php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc -y --(install software) 2.rpm -qa | grep php | xargs rpm -e --(remove-last-php) 3.rpm -qa | grep php 4.rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm 安装php yum 源 5.yum install php56w.x86_64 php56w-cli.x86_64 php56w-common.x86_64 php56w-gd.x86_64 php56w-ldap.x86_64 php56w-mbstring.x86_64 php56w-mysql.x86_64 php56w-pdo.x86_64 php56w-odbc.x86_64 php56w-xml.x86_64 php56w-xmlrpc.x86_64 php56w-soap.x86_64 安装最新php 6.service httpd start service mysqld

SELinux influences "failed to open stream: Permission denied” PHP error

与世无争的帅哥 提交于 2019-12-19 03:24:19
问题 Yesterday I've spent 5 hours straight discovering a seemingly unreasonable error "failed to open stream. permission denied", which was occuring after any operations of writing to file system: fopen (with "w" and "a" flags), move_uploaded_file, file_put_contents. I've rechecked many times directories owner (user and group - chown, chgrp), have change folder attributes to unsecure 777 (rwx with chmod ), but it has no effect. I even reinstalled an Apache and PHP, but still was facing the same

lamp

雨燕双飞 提交于 2019-12-18 16:16:04
目录 1. lamp简介 2. web服务器工作流程 2.1 cgi与fastcgi 2.3 web工作流程 3. lamp平台构建 3.1 安装httpd 3.2 安装mysql 3.3 安装php 3.4 配置apache 3.4.1 启用代理模块 3.4.2 配置虚拟主机 3.5 验证 1. lamp简介 所谓lamp,其实就是由Linux+Apache+Mysql/MariaDB+Php/Perl/Python的一组动态网站或者服务器的开源软件,除Linux外其它各部件本身都是各自独立的程序,但是因为经常被放在一起使用,拥有了越来越高的兼容度,共同组成了一个强大的Web应用程序平台。 LAMP指的是Linux(操作系统)、Apache(HTTP服务器)、MySQL(也指MariaDB,数据库软件)和PHP(有时也是指Perl或Python)的第一个字母,一般用来建立web应用平台。 2. web服务器工作流程 web服务器的资源分为两种,静态资源和动态资源 静态资源就是指静态内容,客户端从服务器获得的资源的表现形式与原文件相同。可以简单的理解为就是直接存储于文件系统中的资源 动态资源则通常是程序文件,需要在服务器执行之后,将执行的结果返回给客户端 那么web服务器如何执行程序并将结果返回给客户端呢?下面通过一张图来说明一下web服务器如何处理客户端的请求 如上图所示

At what point does MySQL INNODB fine tuning become a requirement?

a 夏天 提交于 2019-12-18 11:13:28
问题 I had a look at this: http://www.mysqlperformanceblog.com/2009/01/12/should-you-move-from-myisam-to-innodb/ and: http://www.mysqlperformanceblog.com/2007/11/01/innodb-performance-optimization-basics/ These answer a lot of my questions regarding INNODB vs MyISAM. There is no doubt in my mind that INNODB is the way I should go. However, I am working on my own and for development I have created a LAMP (ubuntu 10.10 x64) VM server. At present the server has 2 GB memory and a single SATA 20GB

How to enable SOAP on CentOS

大兔子大兔子 提交于 2019-12-18 10:39:32
问题 We have VPS with CentOS I have installed soap with following command. yum install php-soap Then I went to php.ini to un-comment soap extension. It was not there so, I added my own following line. extension=soap.so Then i restart server with following command service httpd restart But SOAP is still not enabled. as i get Fatal error: Class 'SoapClient' If i try to install it again. I get following message. Package php-soap-5.3.3-27.el6_5.x86_64 already installed and latest version I tried to re