Thread: read me first lamp ,phpmyadmin
hello all
when setups lamp server has many questions common here faqs
how setup lamp
here url explain every thing
https://help.ubuntu.com/community/apachemysqlphp
if error
apache2: not determine server's qualified domain name, using 127.0.0.1 servername
open terminal , enter following command
where web server foldercode:echo "servername localhost" | sudo tee /etc/apache2/conf.d/fqdn
loctated in /var/ folder
location:/var/www/
i not getting permission acces /var/www/
and thencode:sudo chown username /var/www/
by have access create,modify , delete files , folderscode:sudo chmod -r 777 /var/www/
other options:
(they might more difficult secure)
http://ubuntuforums.org/showpost.php...98&postcount=5
phpmyadmin not allow no password
open terminal , type
add following line if not exist in configuration file.code:sudo gedit /etc/phpmyadmin/config.inc.php
code:$cfg['servers'][$i]['allownopassword'] = true;
php ini file located
located in
/etc/php5/apache2/php.ini
open open terminal , type following command
how information php server?code:sudo gedit /etc/php5/apache2/php.ini
in php file write following code
i forgot mysql password. how reset it?code:<?php phpinfo()?>
https://help.ubuntu.com/community/mysqlpasswordreset
how set php display errors:
open terminal , type following code:
then search display_errorscode:sudo gedit /etc/php5/apache2/php.ini
off set on
import note:
there more 1 display_error , 1 actual me located @ line no. 538 see image nearby lines
how restart/start/stop apache
restart apache:
open terminal
, type following code:
stop apachecode:sudo /etc/init.d/apache2 restart
start apachecode:sudo /etc/init.d/apache2 stop
how start , stop , restart mysql:code:sudo /etc/init.d/apache2 start
these commands typed in terminal
start
stopcode:sudo /etc/init.d/mysql start
restartcode:sudo /etc/init.d/mysql stop
how check status of mysql:code:sudo /etc/init.d/mysql restart
open terminal , type following code
if need added please post reply here these common questions.code:sudo /etc/init.d/mysql status
firstly post. poor search function on ubuntuforums, , posts don't utilize key words makes finding solutions tough. using search engine such google keywords including "ubuntu server" can yield better results.
i don't think people should making web root world writeable. there several solutions allowing user write web root folder without making world write. although may not easy, can more secure.
example this post shows few options.
heavily talked issue, have yet find solution satisfy everyone's specific needs.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] read me first lamp ,phpmyadmin
Ubuntu

Comments
Post a Comment