Comments on: How to Install WordPress with LAMP Stack on Ubuntu 18.04 https://www.rosehosting.com/blog/how-to-install-wordpress-with-lamp-stack-on-ubuntu-18-04/ Premium Linux Tutorials Since 2001 Tue, 13 Dec 2022 20:27:51 +0000 hourly 1 https://wordpress.org/?v=6.5.4 By: admin https://www.rosehosting.com/blog/how-to-install-wordpress-with-lamp-stack-on-ubuntu-18-04/#comment-48491 Fri, 06 Nov 2020 07:12:13 +0000 https://www.rosehosting.com/blog/?p=29282#comment-48491 In reply to Milagro.

1) There is no need of new PHP version for each new website. The same PHP version can apply for multiple websites.
2) You need to execute these commands one by one in your console on Ubuntu 18.04 in order to install a WordPress website.

]]>
By: Milagro https://www.rosehosting.com/blog/how-to-install-wordpress-with-lamp-stack-on-ubuntu-18-04/#comment-48490 Thu, 05 Nov 2020 15:25:14 +0000 https://www.rosehosting.com/blog/?p=29282#comment-48490 Thanks for this gudie and is my first trying to manage my host. i have a few question ‘

1) Do i need to install PHP anytime i want to host new site on my server
2) assuming i want to install my site on how can i run this command
cd /var/www/html
wget -c http://wordpress.org/latest.zip
unzip latest.zip
chown -R www-data:www-data wordpress
rm latest.zip

to place the file in instead of

]]>
By: admin https://www.rosehosting.com/blog/how-to-install-wordpress-with-lamp-stack-on-ubuntu-18-04/#comment-48144 Fri, 27 Mar 2020 07:38:09 +0000 https://www.rosehosting.com/blog/?p=29282#comment-48144 In reply to Mike.

You need to check if MySQL service is up and running. If MySQL is not running, you need to start it, then run ‘mysql_secure_installation’ .

Do not forget to use a strong password during the mysql_secure_installation process.

]]>
By: Mike https://www.rosehosting.com/blog/how-to-install-wordpress-with-lamp-stack-on-ubuntu-18-04/#comment-48143 Thu, 26 Mar 2020 16:37:34 +0000 https://www.rosehosting.com/blog/?p=29282#comment-48143 Hello, I’m getting an error “Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)” after inputting a password after the “mysql_secure_installation”-command. Any idea how to fix this issue? Thanks!

]]>
By: admin https://www.rosehosting.com/blog/how-to-install-wordpress-with-lamp-stack-on-ubuntu-18-04/#comment-48096 Fri, 14 Feb 2020 13:23:29 +0000 https://www.rosehosting.com/blog/?p=29282#comment-48096 In reply to Jehan.

You need to create a symlink to enable the virtual host:
ln -s /etc/apache2/sites-available/localhost.conf /etc/apache2/sites-enabled/localhost.conf

]]>
By: Jehan https://www.rosehosting.com/blog/how-to-install-wordpress-with-lamp-stack-on-ubuntu-18-04/#comment-48090 Fri, 14 Feb 2020 05:50:48 +0000 https://www.rosehosting.com/blog/?p=29282#comment-48090 In reply to admin.

ubuntu 19
local VM
IP address 192.168.2.13 (local)

I am still getting text displayed of the localhost/wordpress/index.php instead of the WP setup screen.
I already enabled mod_rewrite module and was confirmed through apache message.

Created /www/html/wordpress/.htaccess file and put the following contents:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

=============Contents of /etc/apache2/sites-available/localhost.conf===========

ServerAdmin admin@localhost
ServerName 192.168.2.13t
ServerAlias tnss
DocumentRoot /var/www/html/wordpress

Options Indexes FollowSymLinks
AllowOverride All
Require all granted

ErrorLog ${APACHE_LOG_DIR}/your_domain.com_error.log
CustomLog ${APACHE_LOG_DIR}/your_domain.com_access.log combined

=====

thanks and regards

]]>
By: Ray https://www.rosehosting.com/blog/how-to-install-wordpress-with-lamp-stack-on-ubuntu-18-04/#comment-48038 Sun, 29 Dec 2019 22:47:43 +0000 https://www.rosehosting.com/blog/?p=29282#comment-48038 Thank you for the easy to follow article. Lots of info on the web has errors. Your work rocks!

]]>
By: MrDerfenstien https://www.rosehosting.com/blog/how-to-install-wordpress-with-lamp-stack-on-ubuntu-18-04/#comment-47982 Sat, 02 Nov 2019 01:20:05 +0000 https://www.rosehosting.com/blog/?p=29282#comment-47982 If you get mysql extension missing error page you need to

apt install php-mysql

]]>