Accidentally messed up URLs

Codex has an article on Changing The Site URL, you can edit values in database or override them in config. To have your site work from root you can either relocate WP there altogether or configure it to support root of the site, while still residing in subdirectory. See Giving WordPress Its Own Directory on … Read more

What to do when WordPress posts on a new server return an error 404

Judging from other threads, here are the two most common causes of this problem on freshly built servers: .htaccess override is disabled by apache2.conf Apache mod_rewrite module isn’t enabled. In the file /etc/apache2/apache2.conf: <Directory /var/www/> AllowOverride All </Directory> “AllowOverride” is the switch that tells Apache whether to listen to .htaccess files or not. WordPress relies … Read more

How does WP work in conjunction with a web server?

Apache only runs the index.php of WordPress, and serves static files (images, css, js etc). WP does all the rest, including parsing the request to find out what content to show the user. Apache does not (and needs not) know that there is communication with a data base in PHP, and doesn’t interact with that … Read more

Internal Server Error apache

You might have edited your .htaccess file in Windows notepad or text editor. If you did use Windows text editor then it must have added some special chars in .htaccess file and that will lead to 500 internal server error. Never edit in Windows text editor. Use notepad++ for editing .htaccess and .htpasswd files. second … Read more

WordPress refuses to read the .htaccess file and gives a 404 for sub-pages

Even though the 000-default.conf file had… <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html <Directory /var/www/html/> Options FollowSymLinks AllowOverride All Require all granted </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> I had to place… <Directory /var/www/html/> Options FollowSymLinks AllowOverride All Require all granted </Directory> Into the apache2.conf And use the sudo service apache2 restart command.

Call to undefined function mysql_connect() After upgrading PHP 7.1 to 7.3

I mean your php.ini is changed, check for the entry extension=php_mysqll.dll. (If you has no knowledge where is your used php.ini – see https://stackoverflow.com/questions/8684609/dude-wheres-my-php-ini) Is this entry active, has no ; before the string. After change of the php.ini you need a restart of mysql, like sudo /etc/init.d/mysql restart. Also a note, check that mysql … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)