camunha

Experience

250

0 Best Reply Awards

  • Member Since 9 Months Ago
  • 0 Lessons Completed
  • 0 Favorites

14th June, 2018

camunha started a new conversation Connect To SQL Server • 4 months ago

Hi. I have a issue with connection to sql server in Laravel. I have a XAMPP server in windows 10. I have all pdo drivers. My php.info says this:

        PDO

PDO support enabled PDO drivers mysql, odbc, sqlite, sqlsrv

        pdo_mysql

PDO Driver for MySQL enabled Client API version mysqlnd 5.0.12...........

        PDO_ODBC

PDO Driver for ODBC (Win32) enabled ODBC Connection Pooling Enabled, strict matching

        pdo_sqlite

PDO Driver for SQLite 3.x enabled SQLite Library 3.15.1

        pdo_sqlsrv

pdo_sqlsrv support enabled ExtensionVer 5.2.0+10712

Directive Local Value Master Value pdo_sqlsrv.client_buffer_max_kb_size 10240 10240 pdo_sqlsrv.log_severity 0 0

But when I try to connect I get error "PDOException: could not find driver". Dsn in PDO construct is "sqlsrv:Server=127.0.0.1,1433;Database=DataBaseName".

And if I try to connect by ODBC driver I get same error.

I execute my web site in local with server generated by "php artisan serve", I haven't another server installed.

9th January, 2018

camunha left a reply on Is_dir(): Open_basedir Restriction In Effect • 9 months ago

SOLVE!! Only go to folder bootstrap/cache and rename config.php to anything you want and reload site.

camunha started a new conversation Is_dir(): Open_basedir Restriction In Effect • 9 months ago

I'm developing web app in windows local pc. I deployed a first time in shared server running windows and it was worked, but now I have deployed second time and return me this error:

is_dir(): open_basedir restriction in effect. File(D:\Proyectos\Miproyecto\resources\views/vendor/notifications) is not within the allowed path(s): (C:/Inetpub/vhosts//clubhuellas.com;C:\Windows\Temp)

"D:\Proyectos\Miproyecto" is local path where I'm developing.

Between two deployment I made "update composer" for install "maatwebsite/excel", maybe this action is the problem?

8th January, 2018

camunha left a reply on Set Auth Required • 9 months ago

Thanks tykus, this works for me!!

camunha started a new conversation Set Auth Required • 9 months ago

Hello.

In MVC .net I can set auth required or role required in action or controller with attributes like : [CustomAuthorize(Roles = "admin")] public ActionResult Editar(int id) { }

Is this possible in Laravel? How?

5th January, 2018

camunha left a reply on Laravel In Shared Server With IIS • 9 months ago

Sorry I forgot to say. It's working fine, I had wrong database name in .env file.

Thanks mushood.

3rd January, 2018

camunha left a reply on Laravel In Shared Server With IIS • 9 months ago

Sorry, I have seen error.

SQLSTATE[HY000] [1044] Access denied for user 'username'@'%' to database 'databasename' (SQL: select * from users where email = [email protected] limit 1)

But user has permissions in database and issue continue.

camunha left a reply on Laravel In Shared Server With IIS • 9 months ago

Clean cache doesn't works. If I put any URL doesn't works too, although login isn't necessary. Only login, register are works, but if I try to register I can't, in local iisexpres works fine.

camunha started a new conversation Laravel In Shared Server With IIS • 9 months ago

Hello.

I' ve a problem with my laravel 5.5 site in shared server with IIS.

If I access to home page it's works fine, but when I try to login I get laravel error "Whoops, looks like something went wrong." (error 500), when I put any other route I get same error. I am new in laravel world, I've experience in .NET

I check PHP version (7.0.24), module rewrite ($_SERVER['IIS_UrlRewriteModule'] = 7.1.0761.0), module mycript for auth methods is enabled... I have created web.config from .htaccess file: This is web.config: <system.webServer> </system.webServer>

This is .htaccess: Options -MultiViews

RewriteEngine On

RewriteCond %{REQUEST_URI}:: ^(/.+)/(.*)::$
RewriteRule ^(.*) - [E=BASE:%1]

RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^index\.php(/(.*)|$) %{ENV:BASE}/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .? - [L]

RewriteRule ^ /index.php [L]

Any idea??

Thank you!!

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.