Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Example of a linux localhost setup
  • I successfully built a laptop with Ubuntu, LAMP, Git, Curl, OIL. The laptop will be strictly for development purposes. I can create a new project with ease via the terrific one line install. I have a directory on Ubuntu called home/webdev/ which contains several projects, like project1, project2... I have gone over apache2 a2ensite documentation, virtualhost docs, forums, etc..., but still haven't been able to grasp how to view a project via localhost. I've tried several things but none seem to work. I really don't need elegant URLS, but they are a plus. I really just want to go to any URL and test the project as it is being developed. For example, [url=http://localhost/project1,]http://localhost/project1,[/url] [url=http://localhost/project2]http://localhost/project2[/url]. Can someone please post a step by step example of how to make this work? I really appreciate your help! Thank you,
  • Do not use 'localhost'. It will lead to misery when using sessions and cookies.
    Setup an alias in your local /etc/hosts file, like 'laptop.local' or so, and use that instead. As to virtual hosts, I have my virtual hosts definitions in separate files in /etc/httpd/vhosts, which are included from /etc/httpd/conf/httpd.conf. I have a script that will generate those files, create a folder in my vhosts directory for the new site, and adds an entry for the site name in my /etc/hosts file so I can name it anything I want. I can paste it somewhere, but I don't know if it will work on Debian derivatives, I'm a Redhat guy...
  • Thank you for your replies. I found this link and now feel pretty good that I'm configured properly. I think the last obstacle is a rights issues on Ubuntu 11.10 and Apache. After restarting the server I get:
     * Restarting web server apache2                                                Warning: DocumentRoot [/home/webdev/i2/public] does not exist
    apache2: Could not reliably determine the server's fully qualified domain name, using for ServerName
     ... waiting Warning: DocumentRoot [/home/webdev/i2/public] does not exist
    apache2: Could not reliably determine the server's fully qualified domain name, using for ServerName
    I'm certain that the directory does in fact exist.
    I've hit Google for past hour and I'm coming up short. I found an article that suggested disbaling selinux, which I did, but it didnt help. Are there commands I need to run against the home/webdev directory so Apcahe can see them? Thanks again,
  • Most obvious reason is that the user that runs your apache daemon has no access to /home/webdev/i2/public, so check the rights on disk.
  • Thank you for replies WanWizard. Its is greatly appreciated! I'm finally all sorted out. I only had one user on this new Ubuntu install, and it was the same user that installed LAMP. But your reply got me digging further. Being new to Ubuntu and Linux here is what I missed and have since resolved: I had the path as /home/webdev/i2/public. I didn't realize I needed the name of the user in the path. Updating it to /home/john/webdev/i2/public did the trick. Another part of the warning from Apache was "Could not reliably determine the servers fully qualified domain name, using for ServerName". The following link took care of that. I hope other people find the links and info posted in this thread as helpful as I have.
    Thanks again,
  • try this link start from installing amp. hope this helps.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion