Jump to content
xisto Community

paolocastro

Members
  • Content Count

    3
  • Joined

  • Last visited

  1. Hi, there are many tutorials about this, but i would like to type the steps i followed in order to get cakephp working on my user public_html folder. as many of you probably know, if you have apache's userdir module loaded, you can put your web pages on /home/user/public_html , and access them with the url: LOCALHOST/~user/ . I really prefer this, so all my web pages are on my personal home, but how to configure cakephp to work with these paths, i got a hard time with this, but finally got it!. here's how: in case you don't have apache2's userdir module: sudo ln -s /etc/apache2/mods-available/userdir.load /etc/apache2/mods-enabled/userdir.loadsudo ln -s /etc/apache2/mods-available/userdir.conf /etc/apache2/mods-enabled/userdir.conf you need the rewrite module also... (this could be done with the same method used for userdir) sudo a2enmod rewrite Now lets edit some apache files... sudo vim /etc/apache2/sites-enable/000-defaultinside the first two <directory></directory> tags, change the AllowOverride lines: <Directory /> Options FollowSymLinks AllowOverride All // change here </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All // change here Order allow,deny allow from all # This directive allows us to have apache2's default start page # in /apache2-default/, but still have / go to the right place #RedirectMatch ^/$ /apache2-default/ </Directory>do the same on /etc/apache2/mods-enabled/userdir.conf <Directory /home/*/public_html> AllowOverride All // change here Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec </Directory> Now you need to restart you apache2 server... sudo /etc/init.d/apache2 restart i'll assume you've already downloaded cakephp latest release or that you know where you can find it unpack the downloaded file in /home/user/public_html/ rename the extracted folder (thats the name of your application) cd /home/user/public_html/application_nameedit the .htaccess file so it look like these: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] RewriteBase /~user/application_name/</IfModule> now point your browser to LOCALHOST/~user/application_name and you show see cakephp's default page good luck!
  2. Hi, i'm a ruby on rails fan, and also an ubuntu user, i would like to share the steps i've been through in order to install ruby on rails. Some of you might noticed that there is a rails package available in ubuntu, but i think it's better not user these package. instead i download the rails gem with rubygems package manager. here is the walk through: 1.- install ruby using the apt-get tool 2.- Install rubygems manually from source.download the latest rubygems tarball from RubyForge 3.- Install rails gem 4.- (optional) install Mongrel 5- Since rails 2.0 user sqlite-3 as default database... 6.- for mysql support... For developing rails applications, i would recommend netbeans6, it has a good ruby support, easy generators, plugins manager and also gems manager. but in order to use the gem manager you need to have the proper permissions on the gems folder /usr/lib/ruby/gems/ Hope these helps somebody....
  3. i suppose that by MinuteOS you actually mean MenuetOS, which is an operating system written entirely in assembly and fits on a single floppy.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.