Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Hard to install it for former CodeIgniter developer on Windows platform
  • Hello, I am a CodeIgniter (CI) developer where installation is so easy, just decompressing the CI zip file and when we check with a browser the path to the CI, it shows the welcome page. Fuelphp is becoming famous in French-speaking developers community but our real problem to test it is the lack of tuto showing how to install it in WAMP server for example. Looking for the filesystem tree, the MVC structure is so clear for CI but blurry for Fuelphp. Thanks in advance. Regards, Allan
  • Hi, did you looked at http://docs.fuelphp.com/installation/instructions.html?
    Personally I prefer 'manual installation'.
  • I also prefer manual installation but all documents are for Linux or Mac OS installation but not for Windows. What I do for my local development is to unzip the "fuelphp-v1.1-rc1" folder in my local root document (wamp server)! So, how to configure the .htaccess to get a welcome page when browsing [url=http://localhost/fuelphp-v1.1-rc1/]http://localhost/fuelphp-v1.1-rc1/[/url]
  • That depends on the webserver you use. If you use WAMP, there should not be any difference between linux and Windows in terms of installation. If you install inside the docroot (which from the looks of it you do), use the htaccess example for that on the same docs page. In this case you have to do something more, as you don't install in the docroot directly, but in a folder of the docroot. The actual fuel docroot is /fuelphp-v1.1-rc1/public. Which .htaccess you need depends on what you want. Assuming you have installed other things in your docroot, you will need a .htaccess in /fuelphp-v1.1-rc1:
    <IfModule mod_rewrite.c>
        RewriteEngine on
    
        RewriteBase /fuelphp-v1.1-rc1/public
    
        RewriteRule ^(.*)$ /fuelphp-v1.1-rc1/public/public/index.php/$1 [L]
    
    </IfModule>
    

    The default .htaccess in public you can leave as is. This works for me in a similar situation.
  • I use the htaccess in the docs page so I browse to [url=http://localhost/fuelphp-v1.1-rc1/public/]http://localhost/fuelphp-v1.1-rc1/public/[/url] I got the errors: Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in D:\wamp\www\fuelphp-v1.1-rc1\public\index.php on line 11 Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in D:\wamp\www\fuelphp-v1.1-rc1\public\index.php on line 16 Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in D:\wamp\www\fuelphp-v1.1-rc1\public\index.php on line 21 Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in D:\wamp\www\fuelphp-v1.1-rc1\public\index.php on line 26 Warning: require(\bootstrap.php) [function.require]: failed to open stream: No such file or directory in D:\wamp\www\fuelphp-v1.1-rc1\public\index.php on line 33 Fatal error: require() [function.require]: Failed opening required '\bootstrap.php' (include_path='.;C:\\\\php5\\\\pear') in D:\wamp\www\fuelphp-v1.1-rc1\public\index.php on line 33
  • You don't have PHP 5.3 installed, the __DIR__ constant was introduced with 5.3 but doesn't exist yet in earlier versions.
  • Ah ok, I just have actually the 5.2 version!
  • That's not going to work, FuelPHP requires PHP 5.3+.
  • Harro Verton wrote on Monday 5th of December 2011:
    That's not going to work, FuelPHP requires PHP 5.3+.
    Yes, it is! I've just downloaded the latest version of Wamp which supports 5.3 and MySql 5.5. In fact, what MySql version is good for FuelPHP?
  • There is no requirement, FuelPHP has mysql (3.x/4.x), mysqli (5.x) and PDO drivers.
    You can choose the desired one in your database configuration.

Howdy, Stranger!

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

In this Discussion