Community

Wordpress on Apache/Centos7: Cannot see my website, only see apache Testing 123 when type public IP

I successfully installed all component for my own home web server. Centos7/Apache/phpmyadmin/mariadb/Wordpress. When I type localhost in browser, it shows Testing 123 which means apache is running. I created wordpress website. When I type in my browser localhost/wordpress, I see my wordpress website. when I type my public ip address, I see testing 123, not my wordpress website. I want to see my website from outside world. I guess I need to do something more. For now I want to type ip address of my web server instead of domain name. please help with this issue. Thanks a lot

 
  • **bold**
  • _italics_
  • `code`
  • ```code block```
  • # Heading 1
  • ## Heading 2
  • > Quote
 

Hello,

What do you get back when you try to visit http://YOUR.IP.V4.ADDRESS/wordpress

Does it show the "Testing 123" or the WordPress content?

Are you trying to configure it so that when someone visits http://<your_ip>/ they do not have to enter http://<your_ip>/wordpress to see the website?

Would you be able to confirm you have Apache 2.4 installed? ( Running httpd -v is a quick way to check.) That should be the default with CentOS 7. It would also help to know what your /etc/httpd/conf/httpd.conf file looks like and if you modified any configuration files under /etc/httpd/conf.d/* when you were configuring phpmyadmin and WordPress.

Eric

Thank you so much for your kind answer. I actually got the answer earlier from another member and resolved the issue. I moved the wordpress file to root directory and then it worked. Followed instruction from How to install and configure wordpress in Centos 7.

sudo cp -avr wordpress/* /var/www/html/

Thanks again.