Install WordPress in Ubuntu Server

Open Terminal.

sudo apt-get install apache2
sudo /etc/init.d/apache2 restart
sudo apt-get install mysql-server
sudo apt-get install phpmyadmin
[install ftp server]
sudo apt-get install vsftpd
sudo mkdir /srv/ftp     (hostname:
sudo /etc/init.d/vsftpd restart
sudo apt-get install wordpress

sudo ln -s /usr/share/wordpress /var/www/wordpress
sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost [note: if the remote server means replace localhost —> server ip address]

finally goto browser: type ‘localhost/wordpress’





its used check log file for apache.
-ef | grep apache
cat /var/log/apache2/access.log
cat /var/log/apache2/error.log
sudo /etc/init.d/apache2 start   //#start apache
sudo /etc/init.d/apache2 stop             //#stop apache
sudo /etc/init.d/apache2 restart        // #restart apache


the problem for change the local host address and solve.

mysql -u root -h localhost -p

enter password:

mysql>use wordpress (its database name)
mysql>show tables;
mysql>select * from wp_options;
mysql>update wp_options set option_value=’http://localhost/wordpress’ where option_value=’’;
problem solved.

unzip for a plugins in wordpress manually: and a plugins a flash player in
vinod@vinod-laptop:/var/www/wordpress/wp-content/plugins# unzip /home/vinoth/Downloads/

install any plugins in wordpress follow this steps it doesn’t ask ftp credentials:

In order to fix this issue, you will need to make sure that the scripts which need to write to the filesystem are owned by the same user that apache is running as.
refer this link: and follow this instructions:

ll /var/www/wordpress/
vinod@vinod-laptop:~$ sudo chown -R www-data:www-data /var/www/wp-uploads/
vinod@vinod-laptop:~$ sudo chown -R www-data:www-data /var/www/wordpress/
vinod@vinod-laptop:~$ sudo chown -R www-data:www-data /var/www/
ll /var/www/wordpress/

apache2 server

Not Found

The requested URL /wordpress/lgsoftindia/ was not found on this server.
Apache/2.2.22 (Ubuntu) Server at Port 80

if got this error means go through the above link.

jw player create the sim link for play the video in local host

root@ubuntu-wowza: ln -s /srv/www/wp-uploads/ wp-uploads

not access the wordpress from the remote server throughs the error config.php link the this file to config localhost file means do this command

sudo ln -s config-localhost.php config-

Leave a Reply

Your email address will not be published. Required fields are marked *