Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter + VirtualBox problem
#1

[eluser]vollossy[/eluser]
Hello everyone. I have the next problem. I have a ubuntu server 9.10 installed on virtualbox and shared folder on host machine, which contains files of my codeigniter site. And when I trying to open any page of site in browser it returns me empty page with no information.
Here is example of site's config:
Code:
<VirtualHost *:80>
    ServerAdmin roman@localhost
    ServerName rb26
    ServerAlias *.rb26

    DocumentRoot /home/roman/www-root/rb26/
    <Directory />
        Options FollowSymLinks
        AllowOverride All
    </Directory>
    <Directory /home/roman/www-root/rb26/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>
#2

[eluser]WanWizard[/eluser]
Do you try to open the page on the host or the guest? If from the host, how is the network in Virtualbox configured?
#3

[eluser]vollossy[/eluser]
I think, that there's problem in CI, because other sites, written in raw php open correctly
#4

[eluser]cahva[/eluser]
Check the apache error log(which you should do always when you get a blank page) or turn on display_errors which will output the error to browser.
Quote:php_flag display_errors 1
#5

[eluser]vollossy[/eluser]
Hello again. I made changes as you tell and now i get the error: "Fatal error: Cannot redeclare class My_model in /home/roman/www-root/rb26/system/application/libraries/My_model.php on line 30"




Theme © iAndrew 2016 - Forum software by © MyBB