Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
170 views
in Technique[技术] by (71.8m points)

mysql - PHP only running in local network with apache2

So I am currently trying to get a apache2 server going. Html pages run fine, domain is set to my home ip, it's portforwarded and everything works fine.

Current issue is that php scripts only run when I try to acces the server from the local network. I tried installing wordpress first, which worked fine for me, but then when I tried to acces it from a different network I got a connection time out.

So I replaced it with the basic php info page and I am running into the same issue. results from a local pc

Could anyone weigh in, I have been struggling with this for days now :(

my httpd.conf only consists of the following:

<VirtualHost :80> 
    #ServerName ayz-abc.mysite.com/ 
    # Other directives here 
    RewriteEngine On 
    RewriteCond %{HTTP_HOST} !^mydomain.yt$ 
    RewriteRule /.
question from:https://stackoverflow.com/questions/65922379/php-only-running-in-local-network-with-apache2

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...