Do I have to restart apache server each time I change a PHP script?

It seems to me that I have to restart apache server: sudo service apache2 restart each time I change a PHP script, if I’m using virtual host. Pointing the browser to http://localhost/php-script-name.php works without Apache2 restart. Pointing the browser to http://virtual-host-domain/php-script-name.php requires Apache2 restart. Is it so?

Details

Problem on terminal uploading VPN

I am attempting to upload/install open VPN (free) from Source Forge site. Following instructions,copy/paste but receive the following: graeme@graeme-ThinkCentre:~$ apt update && apt -y install ca-certificates wget net-tools Reading package lists… Done E: Could not open lock file /var/lib/apt/lists/lock – open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ W: Problem unlinking the file…

Details

Re-use of a regular expression capture group in Python

The following python code does work but the regular expression ‘search’ is evaluated twice: # my_string varies, it gets the following strings = [‘%10s’, ‘comma%11d’, ‘comma%-6.2f’, ‘%-8s’] in a loop output_string = ‘|’ re_compiled_pat_int = re.compile(r’comma%(\d+)d’) re_compiled_pat_fp = re.compile(r’comma%-?(\d+)\.(\d+)f’) re_compiled_pat_str = re.compile(r’%(-?\d+)s’) if re_compiled_pat_int.search(my_string): output_string += f’ %s{re_compiled_pat_int.search (my_string).group(1)}s |’ # results in | %10s…

Details