现在我使用的文件路径(在数据库中)如下
“/files/person_1/awatar.png”-它工作,文件_获取_内容(“/文件/个人_1/awatar.png”)=真-是好的!
但是现在我改变了我的web服务器并且...在PHP中我可以看到“目录未找到异常”
服务器上的路径:在PHP中,我用“/”作为第一个字符,我不想改变它。
我该换什么呢?
<VirtualHost *:80>
ServerName test.new_service_xxxxx.pl
ServerAlias www.new_service_xxxxx.pl
DocumentRoot /var/www/public_html/new_service_xxxxx
<Directory /var/www/public_html/new_service_xxxxxk>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<IfModule mod_dir.c>
DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm index.php5
</IfModule>
</VirtualHost>
1条答案
按热度按时间r6vfmomb1#
转到以下位置并将根文件夹更改为桌面上的本地文件夹。
希望能帮上忙。