Via Synaptic Package Manager
1) install apache2
2) install php5
use static ip address 192.168.1.100
/etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
in apache2
add port 8080 as alternative http port
etc/apache2/ports.conf
NameVirtualHost *:80
NameVirtualHost *:8080
Listen: 80
Listen: 8080
etc/apache2/sites-available/default
virtualhost *:80
....
ServerName joelinux.????.com
....
....
/VirtualHost
virtualhost *:8080
....
ServerName joelinux.????.com
....
....
/VirtualHost
Install firestarter
for incoming policy
add
8080
don't know why the images or photos cannot be displayed
>> solved. Install php-gd via Synaptic package manager
and php-Imagick for creating and modifying images
a nice tutorial on Apache with Centos
1) install apache2
2) install php5
use static ip address 192.168.1.100
/etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
in apache2
add port 8080 as alternative http port
etc/apache2/ports.conf
NameVirtualHost *:80
NameVirtualHost *:8080
Listen: 80
Listen: 8080
etc/apache2/sites-available/default
virtualhost *:80
....
ServerName joelinux.????.com
....
....
/VirtualHost
virtualhost *:8080
....
ServerName joelinux.????.com
....
....
/VirtualHost
Install firestarter
for incoming policy
add
8080
don't know why the images or photos cannot be displayed
>> solved. Install php-gd via Synaptic package manager
and php-Imagick for creating and modifying images
a nice tutorial on Apache with Centos
留言
張貼留言