As the post is becoming too long, Andy, I'll follow your advice at the foot your references. Manuals: apache, php, mysql from FreeBSD made easy.
If you think I'm wrong, tell me and if I have any questions I ask you OK. So stay this post for idiots like me.
Only tell you something, I know a litle about freeBSD because from tame ago I was a server with FreeBSD 6.0, a friend help me and I was operated perfectly, but without php my friend could not. I use the editor ee for convenience but I can use vi without problems.
I install freeBSD 8.0 with the ports tree, during the instalation, I choose the option with ssh,DHCP and I created my user to the group wheel.
The following is to put at my server one static ip
I search the line
and I made
Code:
# ifconf_emo="inet 192.168.1.xxx netmask 250.250.250.0"
# defaultrouter="192.168.1.1"
quit the editor vi and save changes
The following is to set ssh for the remote access and I made
and I search the line ALL : ALL : allow must be without coment (no #)
quit the editor vi and save changes
Code:
# vi /etc/ssh/sshd_config
and I search the line (Listen: 0.0.0.0) must be without coment (no #)
quit the editor vi and save changes
and I search the line (wheel:root) and at the and write (wheel:root,user) for to add my user to the wheel group and then to have privileges of super user.
the following is to install
Code:
# cd /usr/ports/ports-mgmt/portmaster
# make install clean clean-depend
after, I update the ports tree
Code:
# cd /usr/ports
# portsnap fetch extract
# portsnap fetch update
APACHE 2.2.17_1
Code:
# cd /usr/ports/www/apache22
# make install clean clean-depend
all options for default
I install the dependences: PERL with the default options, Options for m4 the default options, Options for libiconv the default options, Options for apr-ipv6-devrandom-gdbm-db42the default options, Option for Phyton 26 the the default options.
the following
add the line
quit the editor and save changes
vi /boot/loader.conf
add the line
quit the editor and save changes
the following
Code:
# vi /usr/local/etc/apache22/httpd.conf
The following lines without coments (no #)
Code:
ServerRoot "/usr/local/"
DocumentRoot "/usr/local/www/apache22/data/"
should appear
Code:
LoadModule unique_id_module libexec/apache22/mod_unique_id-so
I change
Code:
ServerName manyblue.homeunix.com:80
ServerAdmin xxxxx@xxxxx.com
I search the lines
Code:
DocumentRoot "/usr/local/www/apache22/data"
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
AllowOverride None
Order allow,deny
Allow from all
</Directory>
and I made
Code:
DocumentRoot "/usr/local/www/apache22/data"
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
AllowOverride All
Order allow,deny
Allow from all
</Directory>
quit the editor vi and save changes
.............ANDY................
know, the manual of freeBSD made easy say me
Currently in Apache 2.2.x the default directory is /usr/local/www/apache22 instead of
the old default. This should be changed to the standard directory of
/usr/local/www/data in every spot. You can move the folder like this if you do not
have a previous version of apache installed that has created the directory already.
Code:
# mv /usr/local/www/apache22 /usr/local/www/
You can replace it easily with sarep from the ports with this command
Code:
# sarep "/usr/local/www/apache22" "/usr/local/www" httpd.conf
This is enough to get the server going so that you can check that it will run, so do
that now.
Must I do it ????????????
my standar directory is
Code:
/usr/local/www/apache22/data/
To follow, I hope for your analysis, forgive my stupidity or ignorance.
I think that currently the lack of language should not be a barrier to be able to communicate.
ANDY, as always thank you very much for your attention and lost time.