note 120153 added to tutorial.firstpage
| From: | raphaellonguinhos at gmail dot com | Date: | Sat, 12 Nov 2016 17:14:46 +0000 |
| Subject: | note 120153 added to tutorial.firstpage | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-207084@lists.php.net to get a copy of this message | ||
Instead of symlink of cp things to the DOCUMENT_ROOT (e.g., /var/www) you can use the mod_alias of
apache (http://httpd.apache.org/docs/2.0/mod/mod_alias.html)
Example: In the http://php.net/manual/en/tutorial.firstpage.php,
save the hello.php at ~/Scratch/php/data. Edit the file /etc/apache2/conf.d/scratch_php.conf:
sudo vim /etc/apache2/conf.d/scratch_php.conf
Alias /data /home/raphaell/Scratch/php/data
<Directory /data>
Order allow,deny
Allow from all
</Directory>
restart the apache:
sudo /etc/init.d/apache2 restart
continuing on the tutorial.firstpage
on your browser
http://localhost/data/hello.php
----
Server IP: 72.52.91.14
Probable Submitter: 191.240.120.193
----
Manual Page -- http://php.net/manual/en/tutorial.firstpage.php
Edit -- https://master.php.net/note/edit/120153
Del: integrated -- https://master.php.net/note/delete/120153/integrated
Del: useless -- https://master.php.net/note/delete/120153/useless
Del: bad code -- https://master.php.net/note/delete/120153/bad+code
Del: spam -- https://master.php.net/note/delete/120153/spam
Del: non-english -- https://master.php.net/note/delete/120153/non-english
Del: in docs -- https://master.php.net/note/delete/120153/in+docs
Del: other reasons-- https://master.php.net/note/delete/120153
Reject -- https://master.php.net/note/reject/120153
Search -- https://master.php.net/manage/user-notes.php