
steviewdr
Staff Alumni-
Posts
1,364 -
Joined
-
Last visited
Everything posted by steviewdr
-
Make that .htaccess file and put them 3 lines in it. As for it working on the windows platform, it should, as long as it uses php file commands (as opposed to system() calls). Anyways, if it still aint work, you'll have to go looking elsewhere. Use linux! -steve
-
Yes, its very easy....when its setup correctly. You can even use a .htaccess file! See: http://wiki.kartbuilding.net/index.php/Apache#Apache_Rewrite_via_mod_proxy mkdir /home/user/public_html/internalweb vi /home/user/public_html/internalweb/.htaccess RewriteEngine on Rewriterule ^(.*)$ http://192.168.20.20/$1 [P] -steve
-
Settings for the prefork have mostly to do with memory and cpu available. The following settings are used on a server with the same specs: <IfModule prefork.c> StartServers 8 MinSpareServers 5 MaxSpareServers 20 MaxClients 256 MaxRequestsPerChild 1000 </IfModule> -steve
-
Im a big Xen fan. If you use Debian/Ubuntu, its a walk in the park to setup Xen. If your buying hardware/cpu's, make sure they have virtualisation support built in. Why do I like Xen....well 100's of reasons: Using munin, I can monitor each part of a virtual instance (memory,cpu,traffic etc.). See: http://muninexchange.projects.linpro.no/?search=&cid=0&os%5B4%5D=on&os%5B7%5D=on&os%5B3%5D=on&os%5B2%5D=on&os%5B5%5D=on&os%5B8%5D=on&os%5B1%5D=on&os%5B6%5D=on&pid=39 There is something called xen-shell which will give a user console access to their virtual machine. http://www.xen-tools.org/software/xen-shell/ It comes with a number of networking options built in. Either create a private army of xen vm's or use bridged networking to give each one a public ip etc. Of course there are loads of other options and there are the downsides. Here is my how-to on installing xen: http://wiki.kartbuilding.net/index.php/Debian_Etch_Xen_Install -steve
-
Check: /etc/sysconfig/network-scripts/ifcfg-eth0 Below is a sample based on a rpm distro: -bash-3.1# cat ifcfg-eth0 # Please read /usr/share/doc/initscripts-*/sysconfig.txt # for the documentation of these parameters. TYPE=Ethernet DEVICE=eth0 #BOOTPROTO=dhcp BOOTPROTO=none ONBOOT=yes IPADDR=10.0.0.10 NETMASK=255.255.0.0 GATEWAY=10.0.0.1 -steve
-
When uploading a file, does it give an error? Can the user see the file on their website/login after uploading it? I haven't used that upload on windows. You'll have to check your apache error log and see whats going on. put the following lines in a htaccess file in c:\apache\www\upload\.htaccess php_value max_execution_time 300 php_value upload_max_filesize 40M php_value post_max_size 40M -steve
-
All management/creation of users is done using the admin login. Also, all access to files is done via the web front end. Make sure you chmod 777 the apropriate folders. If you wanted, you chould just chmod -R 777 the upload folder to allow files to be uploaded. (-R is recursive) -steve
-
"I took at look at the link you provided and if i am reading that right, i only need to add SSL Engine and create a cert and key file then point Apache to the cert file and key? I tried that and no dice... What else do you suggest?" Well apart from adding SSL Engine, you need to make sure openssl is installed on your pc. Did the cert create correctly? Is there errors in your error.log Can you try doing a basic static website using ssl firstly. Then config the mod_proxy afterwards once the ssl is working. "Also, if I am not hosting any sites directly from this server what is required in my conf file to just run SSL vhosts?" Well, even if you just want to run SSL vhosts, you still need all of apache configured and installed. You could probably remove some extensions enabled. Again you should google all of the extensions you have enabled, see what they do and then disable them if you are not using them. -steve
-
http://httpd.apache.org/docs/2.2/mod/mod_vhost_alias.html I have not configured this myself. Basically if the following folder structure is created, a vhost will work straight away: /srv/vhost/sitename1 /srv/vhost/sitename2 Once the above folder structure is made, the following vhosts would work immediately: www.sitename1.host.com www.sitename2.host.com You'll have to do the rest yourself -steve
-
Yes. You'll also have to use mod_proxy. Very quick example of how mod_proxy is used: http://wiki.kartbuilding.net/index.php/Apache#Apache_Rewrite_via_mod_proxy -steve
-
"Every time I try to use someone's 443 config tutorial, I get either apache errors " Thats because you have to setup a SSL cert and lots of extra stuff. Its not as simple as putting in a vhost config for 443. http://wiki.kartbuilding.net/index.php/Apache_2_%26_SSL_-_PHP4_-_MySQL_4.1 As for port forwarding a specific port for remote desktop, apache wont be doing this. This port forwarding will have to be done instead by your firewall/router. You'll have to google for the specifics as I dont know off hand. -steve
-
Get wamp and download and install it instead. http://www.wampserver.com/en/ -steve
-
See: http://uploadtool.sourceforge.net/ -steve
-
Create subdomains automatically: You'll have to look into vhost_alias -steve
-
You should really be using something like suPHP. As for logging, you could do a auto_prepend file to log some extra info. -steve
-
You'll want to uncomment: server-status and server-info in your .htaccess to find out info about how apache is running. -steve
-
mod_cache and apache will only start showing its true potential when you put 100's of connections hitting the server. As for dropping load times for 1 access from 1 computer from .4ms to .05ms. You would need to see where the time is spent - it is on establishing the connection/socket and/or the php script itself. P.S. mod_cache rocks also. -steve
-
Apache takes all the server's ram with child processes
steviewdr replied to tibberous's topic in Apache HTTP Server
Here is my tweaked apache2.conf on a box with 190MB doing mail, mysql, web etc. etc.: <IfModule mpm_prefork_module> StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 1000 </IfModule> The MaxRequestPerChild will help if memory is not been released back. There is plenty of reading out there on configuring the above, and I recommend you do some googling. Alas, I dont have a URL handy. -steve -
http://www.google.com/addurl/ -steve
-
how to tell search engine robot not to click a link?
steviewdr replied to ivytony's topic in Miscellaneous
use a javascript onclick(); -steve -
Looks good. Perhaps a larger header image/logo would be nice. Something a little more for the header/top background would be nice. Also the right vertical navigation is a tad wide. Wordpress is pretty nifty. You might want to use wordpress super cache and also put a captcha or spam catcher on the comments. -steve
-
Yep - cheers for the tutorial. php_value auto_append_file '/var/www/ads/footer.php' does the charm. Other methods of doing the above was to mess with frames and rewrite the content on the fly. Note, the php_value auto_append_file mightnt work on all websites. Im sure some html trickery would prevent the ads from showing through at the bottom. -steve
-
muwordpress http://mu.wordpress.org/ -steve
-
50 simultaneous connections: if you use "persistant" mysql connections, then only 50 people can access your website at one time. Persistant mysql connections are not the default with php so you should be ok. 50 simultaneous connections should be fine as long as you dont use persistant connections. -steve