wordpress not work correctly

Happy New Year, evryone.

I’m beginer. I set a LAMPP in Suse. Evrything is ok. I uploaded, wordpress. I have a free dns. My site is clickcafe.ddns.net . I want to creat a web site and hosting in to my Suse, but site is no visual correctly . I can’t wiew a thems, and lot of things.
Please help me. I can provide any information.:’(

does it render right locally on your machine?

Sure that you have all needed files on the server?

What this mean. I have everything necessary: apache2, mysql, PHP, myphpadmin… Before I tried I have simple index.htm site and work correctly. Tell me what I need to check, and paste here?

Hi,

You can check out the logs for starters

/var/log/apache2/error_log

and

/var/log/apace2/access_log

[Sun Dec 29 21:20:45.056643 2019] [mpm_prefork:notice] [pid 1324] AH00170: caught SIGWINCH, shutting down gracefully
AH00112: Warning: DocumentRoot [/srv/www/vhosts/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [/srv/www/vhosts/dummy-host.example.com] does not exist
AH00558: httpd-prefork: Could not reliably determine the server’s fully qualified domain name, using 192.168.88.88. Set the '$
[Sun Dec 29 21:21:42.350072 2019] [mpm_prefork:notice] [pid 1339] AH00163: Apache/2.4.33 (Linux/SUSE) PHP/7.2.5 configured --$
[Sun Dec 29 21:21:42.350149 2019] [core:notice] [pid 1339] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -D CA$
[Sun Dec 29 21:25:22.500024 2019] [php7:error] [pid 1417] [client 192.168.88.20:4739] PHP Fatal error: Uncaught Error: Call $
[Sun Dec 29 21:25:23.717155 2019] [php7:error] [pid 1418] [client 192.168.88.20:4741] PHP Fatal error: Uncaught Error: Call $
[Sun Dec 29 21:25:24.953968 2019] [php7:error] [pid 1415] [client 192.168.88.20:4742] PHP Fatal error: Uncaught Error: Call $
[Sun Dec 29 21:25:28.055887 2019] [php7:error] [pid 1414] [client 192.168.88.20:4744] PHP Fatal error: Uncaught Error: Call $
[Sun Dec 29 21:25:29.457371 2019] [php7:error] [pid 1416] [client 192.168.88.20:4745] PHP Fatal error: Uncaught Error: Call $
[Sun Dec 29 21:29:25.412086 2019] [php7:notice] [pid 1414] [client 192.168.88.20:4861] WordPress database error Unknown colum$
[Tue Dec 31 18:56:21.375560 2019] [mpm_prefork:notice] [pid 1339] AH00170: caught SIGWINCH, shutting down gracefully
AH00112: Warning: DocumentRoot [/srv/www/vhosts/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [/srv/www/vhosts/dummy-host.example.com] does not exist
AH00558: httpd-prefork: Could not reliably determine the server’s fully qualified domain name, using 192.168.88.88. Set the '$
[Tue Dec 31 18:56:22.530544 2019] [ssl:warn] [pid 12611] AH01873: Init: Session Cache is not configured [hint: SSLSessionCach$
[Tue Dec 31 18:56:22.534192 2019] [mpm_prefork:notice] [pid 12611] AH00163: Apache/2.4.33 (Linux/SUSE) PHP/7.2.5 OpenSSL/1.1.$
[Tue Dec 31 18:56:22.534238 2019] [core:notice] [pid 12611] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -D C$
[Tue Dec 31 18:58:06.006624 2019] [mpm_prefork:notice] [pid 12611] AH00170: caught SIGWINCH, shutting down gracefully
AH00112: Warning: DocumentRoot [/srv/www/vhosts/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [/srv/www/vhosts/dummy-host.example.com] does not exist
AH00558: httpd-prefork: Could not reliably determine the server’s fully qualified domain name, using 192.168.88.88. Set the '$
[Tue Dec 31 18:58:06.126246 2019] [ssl:warn] [pid 12636] AH01873: Init: Session Cache is not configured [hint: SSLSessionCach$
[Tue Dec 31 18:58:06.129873 2019] [mpm_prefork:notice] [pid 12636] AH00163: Apache/2.4.33 (Linux/SUSE) PHP/7.2.5 OpenSSL/1.1.$
[Tue Dec 31 18:58:06.129923 2019] [core:notice] [pid 12636] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -D C$
[Tue Dec 31 18:58:45.560303 2019] [php7:warn] [pid 12646] [client 192.168.88.20:4180] PHP Warning: sprintf(): Too few argume$
[Tue Dec 31 21:31:12.423981 2019] [php7:error] [pid 12644] [client 202.102.90.226:22857] script '/srv/www/htdocs/site1/elrekt$
[Wed Jan 01 12:07:36.414760 2020] [php7:emerg] [pid 13535] [client 77.77.164.112:37183] PHP Parse error: syntax error, unexp$
[Wed Jan 01 12:07:37.875355 2020] [php7:emerg] [pid 12656] [client 77.77.164.112:37184] PHP Parse error: syntax error, unexp$

^
Access_log:

77.77.164.33 - - [29/Dec/2019:05:27:41 +0200] “GET /wp-includes/js/wp-emoji-release.min.js?ver=5.3.2 HTTP/1.1” 200 13866 "htt$
77.77.164.33 - - [29/Dec/2019:05:27:41 +0200] “GET /wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=7.4.4 HTTP/1.1” 200 991$
77.77.164.33 - - [29/Dec/2019:05:27:41 +0200] “GET /wp-includes/js/dist/dom-ready.min.js?ver=2.5.1 HTTP/1.1” 200 1163 "http:/$
77.77.164.33 - - [29/Dec/2019:05:27:41 +0200] “GET /wp-includes/js/dist/a11y.min.js?ver=2.5.1 HTTP/1.1” 200 2236 "http://clic$
77.77.164.33 - - [29/Dec/2019:05:27:41 +0200] “GET /wp-includes/js/wp-sanitize.min.js?ver=5.3.2 HTTP/1.1” 200 423 "http://cli$
77.77.164.33 - - [29/Dec/2019:05:27:41 +0200] “GET /wp-admin/js/updates.min.js?ver=5.3.2 HTTP/1.1” 200 35690 "http://clickcaf$
77.77.164.33 - - [29/Dec/2019:05:27:41 +0200] “GET /wp-admin/images/spinner-2x.gif HTTP/1.1” 200 7536 "http://clickcafe.ddns.$
77.77.164.33 - - [29/Dec/2019:05:27:41 +0200] “GET /wp-admin/js/svg-painter.js?ver=5.3.2 HTTP/1.1” 200 5522 "http://clickcafe$
77.77.164.33 - - [29/Dec/2019:05:27:41 +0200] “GET /wp-includes/js/dist/hooks.min.js?ver=2.6.0 HTTP/1.1” 200 5540 "http://cli$
77.77.164.33 - - [29/Dec/2019:05:27:41 +0200] “GET /wp-includes/js/heartbeat.min.js?ver=5.3.2 HTTP/1.1” 200 5899 "http://clic$
77.77.164.33 - - [29/Dec/2019:05:27:41 +0200] “GET /wp-includes/js/wp-auth-check.min.js?ver=5.3.2 HTTP/1.1” 200 1780 "http://$
77.77.164.33 - - [29/Dec/2019:05:27:41 +0200] “GET /wp-includes/js/thickbox/loadingAnimation.gif HTTP/1.1” 200 15238 "http://$
77.77.164.33 - - [29/Dec/2019:05:27:44 +0200] "GET /wp-admin/update.php?action=install-plugin&plugin=jetpack&_wpnonce=9081c68$
77.77.164.33 - - [29/Dec/2019:05:27:45 +0200] "GET /wp-admin/load-styles.php?c=0&dir=ltr&load%5Bchunk_0%5D=dashicons,admin-ba$
77.77.164.33 - - [29/Dec/2019:05:27:48 +0200] “GET /wp-includes/js/wp-emoji-release.min.js?ver=5.3.2 HTTP/1.1” 200 13866 "htt$
83.228.118.186 - - [29/Dec/2019:06:02:42 +0200] “GET / HTTP/1.1” 301 - “-” "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/5$
192.168.88.1 - - [29/Dec/2019:06:29:23 +0200] “POST /wp-cron.php?doing_wp_cron=1577593762.9728279113769531250000 HTTP/1.1” 20$
82.24.102.76 - - [29/Dec/2019:06:29:22 +0200] “GET / HTTP/1.1” 200 11427 “-” “Firefox/47.0”
82.24.102.76 - - [29/Dec/2019:06:29:23 +0200] “GET /wp-includes/css/dist/block-library/style.min.css?ver=5.3.2 HTTP/1.1” 200 $
82.24.102.76 - - [29/Dec/2019:06:29:23 +0200] “GET /wp-includes/js/wp-embed.min.js?ver=5.3.2 HTTP/1.1” 200 1399 "http://click$
82.24.102.76 - - [29/Dec/2019:06:29:23 +0200] “GET /wp-includes/css/dist/block-library/theme.min.css?ver=5.3.2 HTTP/1.1” 200 $
82.24.102.76 - - [29/Dec/2019:06:29:23 +0200] “GET /wp-content/themes/twentynineteen/style.css?ver=1.4 HTTP/1.1” 200 221297 "$
82.24.102.76 - - [29/Dec/2019:06:29:23 +0200] “GET /wp-includes/js/wp-emoji-release.min.js?ver=5.3.2 HTTP/1.1” 200 13866 "htt$
82.24.102.76 - - [29/Dec/2019:06:29:23 +0200] “GET /wp-content/themes/twentynineteen/print.css?ver=1.4 HTTP/1.1” 200 3949 "ht$
82.24.102.76 - - [29/Dec/2019:06:29:23 +0200] “GET /favicon.ico HTTP/1.1” 404 1127 “http://clickcafe.ddns.net/” “Firefox/47.0”
82.24.102.76 - - [29/Dec/2019:06:30:15 +0200] "GET /index.php/category/%d0%b1%d0%b5%d0%b7-%d0%ba%d0%b0%d1%82%d0%b5%d0%b3%d0%b$
82.24.102.76 - - [29/Dec/2019:06:30:15 +0200] “GET /wp-includes/css/dist/block-library/style.min.css?ver=5.3.2 HTTP/1.1” 200 $
82.24.102.76 - - [29/Dec/2019:06:30:15 +0200] “GET /wp-includes/js/wp-embed.min.js?ver=5.3.2 HTTP/1.1” 200 1399 "http://click$
82.24.102.76 - - [29/Dec/2019:06:30:15 +0200] “GET /wp-includes/css/dist/block-library/theme.min.css?ver=5.3.2 HTTP/1.1” 200 $
82.24.102.76 - - [29/Dec/2019:06:30:15 +0200] “GET /wp-content/themes/twentynineteen/style.css?ver=1.4 HTTP/1.1” 200 221297 "$
82.24.102.76 - - [29/Dec/2019:06:30:15 +0200] “GET /wp-includes/js/wp-emoji-release.min.js?ver=5.3.2 HTTP/1.1” 200 13866 "htt$
82.24.102.76 - - [29/Dec/2019:06:30:15 +0200] “GET /wp-content/themes/twentynineteen/print.css?ver=1.4 HTTP/1.1” 200 3949 "ht$
82.24.102.76 - - [29/Dec/2019:06:30:16 +0200] “GET /favicon.ico HTTP/1.1” 404 1409 "http://clickcafe.ddns.net/index.php/categ$
222.186.19.221 - - [29/Dec/2019:06:30:22 +0200] “CONNECT www.sogou.com:443 HTTP/1.1” 404 9179 “-” “Go-http-client/1.1”
82.24.102.76 - - [29/Dec/2019:06:30:25 +0200] “GET /favicon.ico HTTP/1.1” 404 1409 "http://clickcafe.ddns.net/index.php/categ$
82.24.102.76 - - [29/Dec/2019:06:30:33 +0200] “GET /index.php/ HTTP/1.1” 301 - “-” “Firefox/47.0”

Although your log suggests that many required page resources are downloaded successfully (code 200),
If you open Developer Tools in a web browser and then connect to your website, I see a number of css files which would be essential to rendering a them failing.

You’ll need to verify you’ve built your wordpress site correctly.

When coding anything,
You have to look at your basics…
Do you have all your required Development libraries installed (Typically means configuring special repositories for each technology, the OSS and Update repos generally aren’t sufficient).
Is your chosen development tool installed and working correctly?

And,
Build yourself a staging instance and get that to work before you deploy to an Internet visible site… Although in your case I don’t see any obvious Internet related problems… Your ddns is resolving correctly, and a home page is displaying. But, although your paths to resources appear to be reasonable, all the css and javascript on your page appear to be non-functional, and if links are to other pages, those pages are not being served.

Hard to say,
But I’d recommend you check whether your paths are indeed correct, and then if permissions are correct.
But, I’d also suspect that your Wordpress is just broken which would lead one to ask how and where you set up your Wordpress (I suspect is not just theming, I suspect a fundamtal Wordpress fail).

TSU

TSU

You apache setup is not OK, see these lines:


AH00112: Warning: DocumentRoot [/srv/www/vhosts/dummy-host.example.com] does not exist



Yes, I noticed that too and wondered about that.
Ordinarily, with that kind of error I would have expected that a default homepage file couldn’t be found, and the PHP website wouldn’t work… But the PHP rendered successfully somehow so I speculated that the error was non-critical and resorted to a working default configuration.

Regardless whether my thought was correct or not, I agree that the error should be cleaned up.
And, it’s also possible my conjectures could be all wrong and the mis-configuration is more important than I speculated.

As always, to minimize these kinds of mis-configurations (apache vhosts), you should use the yast2-http-server module to set up the website before building wordpress in that site.

TSU

Ok. I know this. When i wrote systemctl status apache2 , gives me : Jan 02 12:00:23 zala systemd[1]: Starting The Apache Webserver…Jan 02 12:00:23 zala start_apache2[3954]: AH00112: Warning: DocumentRoot [/srv/www/vhosts/dummy-host.example.com] does>
Jan 02 12:00:23 zala start_apache2[3954]: AH00112: Warning: DocumentRoot [/srv/www/vhosts/dummy-host.example.com] does>
Jan 02 12:00:23 zala start_apache2[3954]: AH00558: httpd-prefork: Could not reliably determine the server’s fully qual>
Jan 02 12:00:23 zala systemd[1]: Started The Apache Webserver.
I reinstall apache, again and again… I make this directory but nothing. How to fix this error …

This is almost unreadable and certainly ununderstandable

There is an important, but not easy to find feature on the forums.

Please in the future use CODE tags around copied/pasted computer text in a post. It is the # button in the tool bar of the post editor. When applicable copy/paste complete, that is including the prompt, the command, the output and the next prompt.

An example is here: Using CODE tags Around your paste.

Also, installing a product again and again is next to useless. It will only result inn the same situation again and again. That is what computers are good at: doing the same thing exactly the same way again and again.

Hi,

Not sure how to fix that error exactly, but I always change the permission of the files inside the document root directory, e.g.

chown -Rv wwwrun:www /srv/<whatever_directory_your_files_are_in>

Assuming of course you have the document root inside /srv which is the default for openSUSE.

oK. SORRY for this but this not solve my problem.

Let’s start with some basic questions…

  • Assume you installed apache and MariaDB on your system using the LAMP pattern. If you instead installed apache by itself, then, MariaDB or MySQL and PHP each separately. pls state exactly how you installed each part.

  • When you set up your website, did you manually edit apache configuration files or did you install or use the YaST HTTP Server module?

  • Nowhere can I find where you installed wordpress from. Did you download wordpress from the Wordpress website? Did you install from an openSUSE repository, and if this is the case, did you install from the OSS or some other repository?

  • When you first set up wordpress, did you see a default theme working?

  • Where did you get your existing wordpress theme?

Provide links to references and sources as appropriate so that in those cases we can know what guide you might be following and the specific code you installed.

BTW- I found the following where a person installed wordpress on his LEAP 15.
Frankly, I do not agree with many of his steps, there is plenty to be critical but it’s at least one person’s recipe for what worked for him.
A more experienced openSUSE User familiar with YaST and the LAMP pattern would recommend numerous changes which would likely result in a more stable and replicatable recipe, but for now can serve as at least a guide.

https://www.hiroom2.com/2018/06/25/opensuse-15-wordpress-en/

TSU