Skip to main content

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
code:
echo "servername localhost" | sudo tee /etc/apache2/conf.d/fqdn
where web server folder
loctated in /var/ folder
location:/var/www/

i not getting permission acces /var/www/
code:
sudo chown username /var/www/
and then
code:
sudo chmod -r 777 /var/www/
by have access create,modify , delete files , folders
other options:
(they might more difficult secure)
http://ubuntuforums.org/showpost.php...98&postcount=5
phpmyadmin not allow no password
open terminal , type
code:
sudo gedit /etc/phpmyadmin/config.inc.php
add following line if not exist in configuration file.
code:
$cfg['servers'][$i]['allownopassword'] = true;

php ini file
located
located in
/etc/php5/apache2/php.ini
open open terminal , type following command
code:
sudo gedit /etc/php5/apache2/php.ini
how information php server?
in php file write following code
code:
<?php phpinfo()?>
i forgot mysql password. how reset it?
https://help.ubuntu.com/community/mysqlpasswordreset
how set php display errors:
open terminal , type following code:
code:
sudo gedit /etc/php5/apache2/php.ini
then search display_errors
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:
code:
sudo /etc/init.d/apache2 restart
stop apache
code:
sudo /etc/init.d/apache2 stop
start apache
code:
sudo /etc/init.d/apache2 start
how start , stop , restart mysql:
these commands typed in terminal
start
code:
sudo /etc/init.d/mysql start
stop
code:
sudo /etc/init.d/mysql stop
restart
code:
sudo /etc/init.d/mysql restart
how check status of mysql:
open terminal , type following code
code:
sudo /etc/init.d/mysql status
if need added please post reply here these common questions.
attached images attached images

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.

quote posted shubham1 view post

i not getting permission acces /var/www/
code:
sudo chown username /var/www/
and then
code:
sudo chmod -r 777 /var/www/
by have access create,modify , delete files , folders
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

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account