if only for local development to strengthen the security settings as follows:
xiaozhihu @ xiaozhihu: ~ $ gksudo >
save the file, and restart apache.
test whether PHP5 successful installation
sudo gedit / var / www / testphp.php
write in it
then in Firefox, open:
http:/ / localhost / testphp.php
should be able to see the following screen, long after reading the testphp.php
deleted, there may be a security risk
save the file,
ugg classic short boots, and then
sudo / etc / init .d/apache2 restart
if the requested URL / phpMyAdmin / was not found on this server error. will have to establish soft connection, linux phpmyadmin under different windows copy the entire site, use the command after the installation is complete, its direc
tory in the / etc / phpmyadmin, and / usr / share / phpmyadmin / two directories, we do not need to copy all files to your site, the only way to build software through the command-line connection, you can access the same way.
First, install the Apache2
sudo apt-get install apache2
and then open in Firefox:
http://localhost/
prompt success
test:
http://localhost/phpmyadmin
Second, install PHP5
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5 (based on the actual test I, This step seems to not need to do, in the previous step has been installed, but it is recommended that you copy / paste if this command)
sudo / etc/init.d/apache2 restart
Third,
flats shoes on sale 秋季影响时尚男人穿衣搭配的八大, install MySql
sudo apt-get install mysql -server
After installation, the next step is to start Apache
MySql The default root password is not set, the unit root user and no password,
pajama jeans reviews 央视禁播的超色情内部晚会(逗逝世我了),
tory burch outlet online, there is risk it, so
mysqladmin-u root password your-new-password
mysqladmin-h root @ local-machine-name-u root -p password your-new-password (here,
birkenstock shoes, how can I not connect mysql server,
christian louboutin greissimo, which eventually changed the mysql-admin)
sudo / etc / init.d / mysql restart
in accordance with the Unofficial Ubuntu 6.06 (Dapper Drake) Linux Starter Guide steps to
five install MYSQL for Apache HTTP Server
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql
sudo apt-get install phpmyadmin
sudo ln-s / usr / share / phpmyadmin / var / www /
IV installation MYSQL Administrator
sudo apt-get install mysql-admin
after installed Gnome-applications - system tools-MySQL Administrator
enter http://localhost in the browser or http://127.0.0.1, if we look at to documents should be placed in this direc
tory.
want to work with PHP and MySql, edit
sudo gedit / etc/php5/apache2/php.ini
cancel; extension = mysql.so comments, like this
...
extension = mysql.so
...
here I encountered a problem, is to run the MySQL Administrator,
dereon jeans 看完这20部电影,你可以去全球任何一家, after Click the User Administrator, the entire MySQL Administrator hanging death,
ugg usa, finally resolved, the method see below
we tested A small example to verify the following php:
terminal, type: sudo gedit / var / www / hello.php
add hello.php in the open at the code:
World
browser address bar http://127.0.0.1/hello.php
where I can modify users, add users, etc., come back to solve the previously mentioned hits User Administrator, the whole issue of death linked to MySQL Administrator, see the following URL:
MySQL Administrator hangs after pressing User Administration Icon
master their solutions vary, the main method:
in the terminal:
export DEBUG_DONT_SPAWN_FETCHES = 1
mysql-admin
so users will be able to successfully modify the
MySql initial only allows the machine (127.0.0.1) connection, if you want to use more than one machine or to the Internet open, edit / etc / mysql / my.cnf
sudo gedit / etc / mysql / my.cnf
find
bind-address = 127.0.0.1
commented out with #, like this
# bind-address = 127.0.0.1
start Apache
$ sudo / usr/sbin/apache2ctl start
stop Apache
$ sudo / usr/sbin/apache2ctl stop
restart Apache
$ sudo / etc/init.d/apache2 restart