Category : apache2

I have a mini Mac and have just updated to Big Sur (is that pronounced Big Sewer?) The local webserver works sudo apachectl -t gives Syntax OK Path to httpd.conf is /usr/local/etc/apache2/2.4 I changed DocumentRoot successfully here. (There is another httpd.confg but it doesn’t change the DocumentRoot.) Php7 is installed php -v gives PHP 7.3.24 ..

Read more

I found the problem on my old apps, PHP Notice: Undefined offset: 1 This is the code: $uri = "sub.examples.com"; $pageurl = explode("/",$uri); if($uri==’/’) { $homeurl = "https://".$_SERVER[‘HTTP_HOST’]; (isset($pageurl[1])) ? $pg = $pageurl[1] : $pg = ”; (isset($pageurl[2])) ? $ac = $pageurl[2] : $ac = ”; (isset($pageurl[3])) ? $id = $pageurl[3] : $id = 0; ..

Read more

I tried to setup a webserver on my raspberry pie. The php/css/html files stay on the raspberry pi while all the files I upload stay on an external hard drive. I mounted the hard drive into the directory but I can’t write files to the hard drive. move_uploaded_file($_FILES[‘files’][‘tmp_name’][$i],$dirfolder."/".$name) isn’t working with the hardrive. Source: Ask ..

Read more