在亚马逊EC2上,我设置了LAMP堆栈(使用bitnami堆栈图像)。我已经成功地通过SSH和FTP连接到它。但是,我不确定在哪里上传我的.php站点文件,以便公众访问者可以查看它们。
我试着简单地把它们放到home/bitnami/中,甚至还试着在/var/中创建一个www文件夹来模仿这个指南:
尽管我已经尝试过从ec2服务器的公共域名、从我设置的elasticIP、通过localhost:8888/和http://127.0.0.1:8888/进行连接,但我总是得到显示"Congratulations! You are now running BitNami LAMP Stack
我的git将一个幼虫站点克隆到了bitnami LAMP堆栈中,并产生了这个错误。 UnexpectedValueException
The stream or file "/opt/bitnami/projects/mel/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied
我用bitnami创建了Google虚拟机实例,以启动PHP、MySQL和apache。
我已经允许防火墙在8086端口谷歌云平台。
我创建了两个文件:
server.php,这是
- stored in google cloud
- create server socket on port 8086
- run using SSH with PHP-CLI
- socket is binding and listening to port 8086 successfully
client.php,这是
- stored in my local PC
-