| Server IP : _ / Your IP : 169.254.129.1 Web Server : nginx/1.28.0 System : Linux 89e302d72aa1 6.6.143.1-1.azl3 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 04:01:14 UTC 2026 x86_64 User : nginx ( 103) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/local/bin/ |
Upload File : |
#!/bin/sh
while [ 1 ]
do
if [ -e /run/php/php-fpm.sock ]; then
#echo "exist...chmod... "
chmod 777 /run/php/php-fpm.sock
else
echo "INFO: It's not ready..."
fi
if test ! -e $NGINX_LOG_DIR/access.log; then
touch $NGINX_LOG_DIR/access.log
fi
if test ! -e $NGINX_LOG_DIR/error.log; then
touch $NGINX_LOG_DIR/error.log
fi
if [ ! -e "$NGINX_LOG_DIR/php-error.log" ]; then
touch $NGINX_LOG_DIR/php-error.log;
fi
if [ ! -e "$SUPERVISOR_LOG_DIR/supervisord.log" ]; then
touch $SUPERVISOR_LOG_DIR/supervisord.log;
fi
chmod 666 $NGINX_LOG_DIR/access.log
chmod 666 $NGINX_LOG_DIR/error.log
chmod 666 $NGINX_LOG_DIR/php-error.log
chmod 666 $SUPERVISOR_LOG_DIR/supervisord.log
test ! -d "/var/log/olddir" && echo "INFO: Log folder for nginx olddir not found. creating..." && mkdir -p "/var/log/olddir"
if [ ! $WEBSITES_ENABLE_APP_SERVICE_STORAGE ]; then
echo "INFO: NOT in Azure, chown for $NGINX_LOG_DIR"
chown -R nginx:nginx $NGINX_LOG_DIR
chown -R nginx:nginx /var/log/olddir
fi
sleep 3s
done