The script from under Apache tries to write to the file and gets an error: not write permissions.
f = open('/var/www', 'w')print f
What rights and where to add?
chmod 755 -R /var/www
Not sure what you are doing is generally feasible (are you trying to read a directory? What is this command?)
On the file in which you are trying to write, set rights.
cmod +x /путь/к/файлу/название.файла
Maybe it will help.
Source: https://ru.stackoverflow.com/questions/339320/More articles:Developer access to the combat serverWork with large volumesWhat bitness of OS is better to deliver (32 or 64 bit)Dell PowerConnect 3424 configuration bugFS for movie storageNetwork by landline phone.Wi-Fi connection in LinuxUbuntu on laptop, problem with wifiFlow management "with the issuance of loans"SQL Server 2008 and Net SendAll Articles