Hi,
just want to know… is it possible to have RoR Server and PHP Server on my iBook G4 ?
I have installed RoR succesfully and now i want to complete my iBook G4 with PHP server.
If it possible, anyone knows about step by step guidance ?
Web servers have to run on a TCP port, you can't run two on the same port.
the default port for HTTP traffic is 80.
I don't think its possible to get ruby and php to run on the same
instance of apache, but you can install another apache instance and
change the port it runs on to something other then what your RoR server
runs on.
Look in the httpd.conf file for the line that says "Listen..."
as long as the number is different on each apache instance you run, you
can run as many as you want.
My suggestion, use ports 8080 and 8088 are two known HTTP alternate ports.
There's no reason why not. I have a MBPro, but used to use a PBG4 and have
had Apache2 purring along serving PHP and static pages on port 80 and
pointing at virtual hosts on a whole bunch of high number ports (starting at
8000 is not a bad practice). Look into the VirtualHost directive in
httpd.conf.
There's no reason why not. I have a MBPro, but used to use a PBG4 and have
had Apache2 purring along serving PHP and static pages on port 80 and
pointing at virtual hosts on a whole bunch of high number ports (starting at
8000 is not a bad practice). Look into the VirtualHost directive in
httpd.conf.
hint: type *that exact phrase* into Google and see what happens...
Why people don't know how to use Google boggles me a lot as well.
Especially given that asking that question via a mailing list is a
million(exaggeration) times slower in terms of getting results than
google.
<Directory /home/sam/hello/public/>
Options ExecCGI FollowSymLinks
AddHandler cgi-script .cgi
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<Directory /var/www/timereport/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>