我和chown和chmod在ubuntu 18.04有问题。当我使用php + nginx时:touch ('/var/www/a.log'); user:own of a.log是nginx:nginx,chmod是rw-r-r--
shell_exec('ffmpeg -i' b.mp3 >a.log 2>&1');
上面的命令无法运行,因为它是does not have access to the a.log file,似乎ffmpeg是在用户ive (这是我的ubuntu登录帐户)下运行的。它无法写入日志文件。我希望你能给我处
我有一个简单的Ubuntu10.10、Nginx、Mercurial、PHP和MySQL堆栈。
当前文件结构:
/opt/nginx/html - document root for nginx (where my website files are)
/opt/nginx/html/.hg - repository data
/usr/share/mercurial/ - where the templates/static folder is
我正在运行hg -serve,它托管在localhost:8000。在此之后,我对汞与其资源的联系并不清楚。
对于我想要的入口点,我有以下Nginx
我指的是在Ubuntu:在Ubuntu13.04上使用PHP5 5(和PHP5 5)和MySQL支持(LEMP)安装Nginx上安装Nginx的链接。
sudo su -运行正常。
apt-get install mysql-server mysql-client
mysql-client is already the newest version.
mysql-server is already the newest version.
然而,当我在火狐上尝试http://localhost时,它并没有显示欢迎页面。(也就是说,Nginx没有运行)。
无法连接Firefox无法在本地主机上