Answers:
从命令行:
sudo apt-get install tasksel
sudo tasksel install lamp-server
lamp-server^
。它包括phpMyAdmin吗?如何从浏览器访问它?
sudo vi /etc/apache2/mods-available/php5.conf
并评论说php_admin_flag engine Off
“不要仅仅评论它”的行
安装Apache2
sudo apt-get update
sudo apt-get install apache2
sudo apt-get install php mysql-server mysql-client php5-mysql libapache2-mod-auth-mysql php-mbstring php5-gd libapache2-mod-php5
sudo mysql_install_db
设置mysql密码
sudo /usr/bin/mysql_secure_installation
然后安装php
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
sudo apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
然后检查一下PHP
sudo vim /var/www/info.php
<?php
phpinfo();
?>
sudo /etc/init.d/apache2 restart
安装phpmyadmin
apt-get install phpmyadmin
安装时,它会要求您选择一些设置来选择apache服务器或lighthttpd选择apache
选择Apache
为dbconfig-common选择否
现在,导航到Web浏览器并打开/ phpmyadmin /中提到的IP。
eg : http://192.168.122.69/phpmyadmin/
使用您的登录名您用于mysql安装的内容
我一直用于演示目的的登录信息是
root和密码是admin123
vas@LenovoZ580:~/Desktop$ sudo apt-get install php mysql-server mysql-client php5-mysql libapache2-mod-auth-mysql php-mbstring php5-gd libapache2-mod-php5 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package php E: Unable to locate package php-mbstring
我已经制定了一些步骤在Ubuntu 14上安装php 5.3 + Apache。
首先,将以下存储库写入文件 /etc/apt/sources.list.d/ubuntu-old.list
deb http://55.archive.ubuntu.com/ubuntu/ trusty main
deb http://security.ubuntu.com/ubuntu precise-security main universe
deb http://cz.archive.ubuntu.com/ubuntu precise main universe
运行apt-get update
然后
sudo apt-get install php5=5.3.10-1ubuntu3.19 php5-cli=5.3.10-1ubuntu3.19 php5-common=5.3.10-1ubuntu3.19 libapache2-mod-php5=5.3.10-1ubuntu3.19 apache2=2.2.22-1ubuntu1.9 apache2-mpm-prefork=2.2.22-1ubuntu1.9 apache2.2-common=2.2.22-1ubuntu1.9 apache2.2-bin=2.2.22-1ubuntu1.9 php5-pgsql=5.3.10-1ubuntu3.19 php5-xdebug=2.1.0-1
我已经测试了每个命令,它运行良好!
在Ubuntu 13.10上,安装时发生错误phpmyadmin
:
Errors were encountered while processing:
javascript-common
当我在浏览器中加载页面时,它显示为:
error: json missing
在此处找到答案:https : //superuser.com/questions/639945/how-to-fix-the-phpmyadmin-error-json-extension-is-missing。
sudo apt-get install lamp-server^
?