{"id":64333,"date":"2024-08-02T03:01:00","date_gmt":"2024-08-01T17:01:00","guid":{"rendered":"https:\/\/65.254.95.247\/ITblog\/?p=64333"},"modified":"2024-08-02T08:14:24","modified_gmt":"2024-08-01T22:14:24","slug":"linux-web-server-soft-link-url-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/linux-web-server-soft-link-url-tutorial\/","title":{"rendered":"Linux Web Server Soft Link URL Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/exif_tester.php\" rel=\"noopener\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Linux Web Server Soft Link URL Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Linux\/SoftLink\/fix_bad_access.gif\" title=\"Linux Web Server Soft Link URL Tutorial\"  \/><\/a><p class=\"wp-caption-text\">Linux Web Server Soft Link URL Tutorial<\/p><\/div>\n<p>We were wondering if Linux (and can work on unix) soft links, as talked about with <a title='Linux and Unix Soft Links Primer Tutorial' href='#luslpt'>Linux and Unix Soft Links Primer Tutorial<\/a>, can be of practical value pointing to the source code of a webpage.  Perhaps you&#8217;d want to do this regarding restrictions applied to executionable server code, such as PHP.<\/p>\n<p>We decided to try this with our new AlmaLinux9 web server (cd<sub>ed<\/sub> to web server Document Root) via &#8230;<\/p>\n<p><code><br \/>\n# ln -s PHP\/exif_tester.php .\/exif_tester.php<br \/>\n<\/code><\/p>\n<p> &#8230; for <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/exif_tester.php-GETME\" rel=\"noopener\">a tweaked<\/a> <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/exif_tester.php-GETME\" rel=\"noopener\">exif_tester.php<\/a> <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/exif_tester.php\" rel=\"noopener\">old style invocation<\/a> with this new AlmaLinux9 <a target=\"_blank\" href=\"https:\/\/65.254.95.247\/exif_tester.php\" rel=\"noopener\">new style invocation from Document Root<\/a> with success, because of the changed internal image relative URL considerations.  This capability is not universal regarding Linux web servers.<\/p>\n<p>Interesting, huh?!<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=\"_blank\" href='\/\/www.rjmprogramming.com.au\/ITblog\/linux-web-server-soft-link-url-tutorial\/' rel=\"noopener\">Linux Web Server Soft Link URL Tutorial<\/a>.<\/p-->\n<hr>\n<p id='luslpt'>Previous relevant <a target=\"_blank\" title='Linux and Unix Soft Links Primer Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/linux-and-unix-soft-links-primer-tutorial\/' rel=\"noopener\">Linux and Unix Soft Links Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/Linux\/SoftLink\/Linux_symbolic_link_Primer.jpg\" rel=\"noopener\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Linux and Unix Soft Links Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Linux\/SoftLink\/Linux_symbolic_link_Primer.jpg\" title=\"Linux and Unix Soft Links Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">Linux and Unix Soft Links Primer Tutorial<\/p><\/div>\n<p>Are there big differences between the Linux and Unix operating system, and Windows, for example?    Deep at the heart of the very file orientated Unix and Linux operating systems (where just about everything can be boiled down to being about files) are the possibilities presented by <a target=\"_blank\" title='Symbolic Link information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Symbolic_link' rel=\"noopener\">Soft Links<\/a> (or Symbolic Links), a concept missing in the original design of Windows\/DOS.   So, as is pretty apparent, there are some huge differences, which partly explains the passion some people feel for their favourite operating system &#8230; or favourite anything &#8230; it is the &#8220;tribal&#8221; in us <a target=\"_blank\" title='Joomla MyFavourites website' href='http:\/\/www.rjmprogramming.com.au\/myfavourites' rel=\"noopener\">methinks<\/a>.<\/p>\n<p>For myself, prefer to marvel at the good bits of (the whole gamut of) all these approaches to software (and cherrypick the appropriate\/good ones for any particular problem\/issue), and have to say, Soft Links, as a concept, in Unix and Linux, was (and is) one of the best things ever invented, and if it was everywhere (on other operating systems) who knows, maybe there would have been some internationalization on this area of I.T., and approaches could have seen the concept used more powerfully (and fully) than now (mind you, maybe it is, and I just need somebody to share their deep insights?! &#8230; please feel free, in the comments) in cute ways that would have opened up many more useful ways to program code that is cross-platform-friendly (or &#8220;networked&#8221;).<\/p>\n<p><b>Background reading for tutorial:<\/p>\n<ul>\n<li><a target=\"_blank\" title='ln' href='http:\/\/linux.die.net\/man\/1\/ln' rel=\"noopener\">ln<\/a><\/li>\n<li><a target=\"_blank\" title='find' href='http:\/\/linux.die.net\/man\/1\/find' rel=\"noopener\">find<\/a><\/li>\n<li><a target=\"_blank\" title='file' href='http:\/\/linux.die.net\/man\/1\/file' rel=\"noopener\">file<\/a><\/li>\n<li><a target=\"_blank\" title='grep' href='http:\/\/linux.die.net\/man\/1\/grep' rel=\"noopener\">grep<\/a><\/li>\n<li><a target=\"_blank\" title='egrep' href='http:\/\/linux.die.net\/man\/1\/egrep' rel=\"noopener\">egrep<\/a><\/li>\n<li><a target=\"_blank\" title='fgrep' href='http:\/\/linux.die.net\/man\/1\/fgrep' rel=\"noopener\">fgrep<\/a><\/li>\n<\/ul>\n<p><\/b>\n<\/p>\n<p>Let&#8217;s see some <a target=\"_blank\" title='click picture' href='http:\/\/www.rjmprogramming.com.au\/Linux\/SoftLink\/Linux_symbolic_link_Primer.jpg' rel=\"noopener\">Linux and Unix Soft Links Primer Tutorial<\/a> steps of interest, hopefully.   These are presented via a Mac laptop&#8217;s Terminal application, whose default shell environment is Bash.<\/p>\n<p>Link to some downloadable code &#8230; rename to <a target=\"_blank\" href='http:\/\/www.rjmprogramming.com.au\/Linux\/SoftLink\/soft_link_tutorial.sh_GETME' title='Download me' rel=\"noopener\">soft_link_tutorial.sh<\/a>  (bit specific to local conditions, but please tailor for your own use).\n<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d4786' onclick='var dv=document.getElementById(\"d4786\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=Linux\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d4786' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d64333' onclick='var dv=document.getElementById(\"d64333\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/soft-link\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d64333' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We were wondering if Linux (and can work on unix) soft links, as talked about with Linux and Unix Soft Links Primer Tutorial, can be of practical value pointing to the source code of a webpage. Perhaps you&#8217;d want to &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/linux-web-server-soft-link-url-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,29,37],"tags":[53,4855,85,4853,1750,707,932,997,4854,1165,1319,1339,1345,1411],"class_list":["post-64333","post","type-post","status-publish","format-standard","hentry","category-elearning","category-operating-system","category-tutorials","tag-access","tag-almalinux","tag-apache","tag-bad-access","tag-document-root","tag-linux","tag-php","tag-programming","tag-restrictions","tag-soft-link","tag-tutorial","tag-unix","tag-url","tag-web-server"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/64333"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=64333"}],"version-history":[{"count":4,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/64333\/revisions"}],"predecessor-version":[{"id":64337,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/64333\/revisions\/64337"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=64333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=64333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=64333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}